GetBannersTags (Live)

Returns IDs of tags that are assigned to ads.

Input data

The input data structure in JSON is shown below.

{
   "method": "GetBannersTags",
   "param": {
      /* BannersRequestInfo */
      "CampaignIDS": [
         (int)
         ...
      ],
      "BannerIDS": [
         (long)
         ...
      ]
   }
}

Parameters are described below.

ParameterDescriptionRequired
BannersRequestInfo object
CampaignIDS

Array with campaign IDs (no more than 10).

The method returns IDs of tags that are assigned to ads of the specified campaigns.

One of the parameters CampaignIDS or BannerIDS.
BannerIDS

Array with ad IDs ( no more than 2000).

The method returns IDs of tags that are assigned to the specified ads.

Output data

The method returns an array of BannerTagsInfo objects. Each object contains tags for a single ad.

{
   "data": [
      {  /* BannerTagsInfo */
         "BannerID": (long),
         "TagIDS": [
            (int)
            ...
         ]
      }
      ...
   ]
}

Parameters are described below.

ParameterDescription
BannerTagsInfo object
BannerIDThe ad ID.
TagIDSArray with tag IDs.

Examples of input data

Python

{
   'BannerIDS': [2571700, 2571745]
}

PHP

array(
   'BannerIDS' => array(2571700, 2571745)
)

Perl

{
   'BannerIDS' => [2571700, 2571745]
}