GetCampaignsTags (Live)

Returns a list of tags for the specified campaign or multiple campaigns.

Input data

The input data structure in JSON is shown below.

{
   "method": "GetCampaignsTags",
   "param": {
      /* CampaignIDSInfo */
      "CampaignIDS": [
         (int)
         ...
      ]
   }
}

Parameters are described below.

Parameter Description Required
CampaignIDSInfo object
CampaignIDS Array with IDs of campaigns to get tags for. Yes

Output data

The method returns an array of CampaignTagsInfo objects. Each object contains tags for a single campaign that was specified in the call.

{
   "data": [
      {  /* CampaignTagsInfo */
         "CampaignID": (int),
         "Tags": [
            {  /* TagInfo */
               "TagID": (int),
               "Tag": (string)
            }
            ...
         ]
      }
      ...
   ]
}

Parameters are described below.

Parameter Description
CampaignTagsInfo object
CampaignID The campaign ID.
Tags

Array of TagInfo objects, each of which defines a single tag. The array can contain no more than 200 objects (tags).

TagInfo object
TagID Unique tag ID.
Tag Textual tag.

Examples of input data

Python

{
   'CampaignIDS': [3193279, 1634563]
}

PHP

array(
   'CampaignIDS' => array(3193279, 1634563)
)

Perl

{
   'CampaignIDS' => [3193279, 1634563]
}