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.

ParameterDescriptionRequired
CampaignIDSInfo object
CampaignIDSArray 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.

ParameterDescription
CampaignTagsInfo object
CampaignIDThe 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
TagIDUnique tag ID.
TagTextual tag.

Examples of input data

Python

{
   'CampaignIDS': [3193279, 1634563]
}

PHP

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

Perl

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