共用方式為


Ad Sizes service

The Ad Size Service returns the ad sizes that are accepted by the member associated with the Prebid Server Premium (PSP) configuration. These Ad sizes are set at the member level and derived from standard_sizes field in the Member Service documentation. Ad sizes cannot be set in PSP and are instead retrieved via the endpoint described below.

The is_standard field indicates that the size is a standard size for a creative and not a custom size added to the member.

REST API

HTTP Method Endpoint Description
GET https://api.appnexus.com/prebid/ad-sizes Return all ad sizes.

Example response

The response is a JSON array of ad size objects.

[
  {
    "height": 150,
    "is_standard": false,
    "width": 180
  },
  {
    "height": 250,
    "is_standard": false,
    "width": 300
  },
  {
    "height": 480,
    "is_standard": false,
    "width": 640
  },
  {
    "height": 120,
    "is_standard": false,
    "width": 980
  }
]