Creates one country targeting rule per ISO 3166-1 alpha-2 code (e.g.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/site/{siteId}/targeting/country/create.do
Creates one country targeting rule per ISO 3166-1 alpha-2 code (e.g. US, GB, DE) for the specified site — several codes are accepted, repeated or comma-separated. Returns the created targeting rules as a JSON array. A rule that already exists is not created again: its entry is the stored rule, marked alreadyExisted=true. Requires COUNTRY targeting permission.
Path Params
siteIdintegerrequired
Unique numeric ID of the site
3001
Form Params
rulestringrequired
Targeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist
INCLUDE
countryCodearray<string>required
ISO 3166-1 alpha-2 country code(s) to target — repeat the parameter or separate codes with commas (e.g. DE,FR)