Developers » API methods » Ads API » ads.getAdsTargeting
Ads APIads.getAdsTargeting
Retuns ad targeting parameters.
This method can be called with a user token. Access rights required: ads.
account_idAdvertising account ID.
required parameter, int (number)
client_idFor advertising agencies. ID of the client ads are retrieved from.
int (number)
include_deletedflag that specifies whether archived ads shall be shown:
  • 0 show only active ads;
  • 1 show all ads.
flag, either 1 or 0
flag, either 1 or 0
campaign_idsFilter by advertising campaigns.
Serialized JSON array with campaign IDs. If the parameter is null, ads of all campaigns will be shown.
ad_idsFilter by ads.
Serialized JSON array with ad IDs. If the parameter is null, all ads will be shown.
limitLimit of number of returned ads. Used only if ad_ids parameter is null, and campaign_ids parameter contains ID of only one campaign.
int (number)
offsetOffset needed to return a specific subset of results.
int (number)
Returns an array of objects descriptions of ad targeting.
Negative id values in cities fields mean id of regions with the reverse sign.
count field contains the size of target audience at the time the ad is saved.

601Permission denied. You have requested too many actions this day. Try later.
Global errors can occur while running. See their descriptions on this page.
Version historyShow all
Schools field is divided into two fields: schools and universities. Their id field is correct now.