kadam_adv_get_dictionary
Retrieve reference dictionary IDs for campaign targeting—browsers, platforms, devices, countries, regions, cities, ISPs, categories, and conversion templates—to set targeting fields without guessing.
Instructions
Gets one reference dictionary used to build campaign targeting: campaign-types, browsers, platforms (OS), devices, connection-types, categories, isps, conversion-templates, countries, regions or cities. Call this instead of guessing IDs — every targeting field expects the numeric ids returned here. campaign-types only lists the types this account may actually create. categories requires campaignType because the allowed set differs per type. isps, regions and cities require countryId, and are paginated and searchable because a single country can hold tens of thousands of entries. countries is the entry point of the geo chain: its ids are what a campaign stores in countries and what countryId expects here, while regions and cities give the ids a campaign stores in cities. cities can be narrowed to one region with regionId. platforms, devices and categories are trees: children are nested under their parent. conversion-templates entries carry the approved/hold/reject postback status strings, which are what a campaign's conversion field needs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page; applies to isps, regions and cities | |
| type | Yes | Which dictionary to return | |
| search | No | Substring filter on the entry name; applies to isps, countries, regions, cities | |
| perPage | No | Page size, max 200; applies to isps, regions and cities | |
| regionId | No | Narrows type=cities to one region; ignored otherwise | |
| countryId | No | Required for type=isps, regions and cities. Country id from type=countries | |
| campaignType | No | Required for type=categories; ignored otherwise |