Browse the help center

Create advertiser country targeting

Creates one or more country/geo targeting rules for the specified advertiser and enables targeting if it was previously disabled.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/advertiser/{advertiserId}/targeting/country/create.do

Creates one or more country/geo targeting rules for the specified advertiser and enables targeting if it was previously disabled. Accepts an array of country codes. Returns the created targeting rules as a JSON array. Requires COUNTRY targeting permission and UPDATE permission on the advertiser.

Path Params

advertiserId integer required

Unique numeric ID of the advertiser

1234

Form Params

rule string required

Targeting rule type: INCLUDE or EXCLUDE

INCLUDE

countryCode array<string> required

Array of ISO 3166-1 alpha-2 country codes to target (e.g., US, GB, DE)

US

Responses

200

Success

400

Invalid country code

401

Unauthorized

403

Forbidden

404

Advertiser not found

500

Internal server error

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.