Creative API

WARNING

Authentication token is required when calling this API. See Token Usage Guide for details.

Request URL

https://scaler.taurusx.com/openapi/creative_info

Request Method

GET

Request Parameters

FieldRequiredTypeDefaultDescription
campaign_idsNostring-Campaign IDs, separated by commas (,)
adgroup_idsNostring-Ad Group IDs, separated by commas (,)
creative_idsNostring-Creative IDs, separated by commas (,)
pageYesint1Page number, must be an integer ≥ 1
page_sizeYesint50Number of results per page, maximum value is 100

Note:

To handle results in batches, you can include a batch-id field in the request header. It can be any unique string such as a timestamp or an MD5 hash.

Response Field Description

NameParentTypeDescription
code-int200 indicates success; other values indicate failure
data-jsonResult object
data_listdataarray<json>List of creatives
campaign_namedata_liststringCampaign name
campaign_iddata_liststringCampaign ID
adgroup_namedata_liststringAd Group name
adgroup_iddata_liststringAd Group ID
creative_namedata_liststringCreative name
creative_iddata_liststringCreative ID
ad_typedata_liststringCreative type: video or image
infodata_listjsonCreative asset information
typeinfostringAsset type: image or video
winfointAsset width
hinfointAsset height
bit_rateinfonumberVideo bitrate (only for video creatives)
durationinfonumberVideo duration in seconds (only for video creatives)
companiondata_listjsonCompanion ad information
typecompanionstringAsset type: image
wcompanionintAsset width
hcompanionintAsset height

Example Response

json
{
  "code": 200,
  "data": {
    "data_list": [
      {
        "campaign_id": 138,
        "campaign_name": "name",
        "adgroup_id": 138,
        "adgroup_name": "name",
        "creative_id": 138,
        "creative_name": "E-commerce Promo",
        "ad_type": "video",
        "info": {
          "type": "video",
          "bit_rate": 1521.651,
          "duration": 29.68,
          "w": 1280,
          "h": 720
        },
        "companion": {
          "type": "image",
          "w": 704,
          "h": 396
        }
      }
    ],
    "total": 1
  },
  "msg": "ok"
}
{
  "code": 200,
  "data": {
    "data_list": [
      {
        "campaign_id": 138,
        "campaign_name": "name",
        "adgroup_id": 138,
        "adgroup_name": "name",
        "creative_id": 138,
        "creative_name": "E-commerce Promo",
        "ad_type": "video",
        "info": {
          "type": "video",
          "bit_rate": 1521.651,
          "duration": 29.68,
          "w": 1280,
          "h": 720
        },
        "companion": {
          "type": "image",
          "w": 704,
          "h": 396
        }
      }
    ],
    "total": 1
  },
  "msg": "ok"
}