Offer::setTargetCountries Method

Associates an existing offer with one or more countries or with specified regions within countries, for the purposes of geo-targeting. This method overwrites all pre-existing country/region associations to that offer.

See our support article on geo-targeting for more on this topic.

City Targeting Note: This method does not work with city locations, and will fail if used on an offer that has cities in its targeting definition.

NetworkId UrlNetwork ID
NetworkToken String Network token
Target String This calls action target
Method String This calls action method
id IntegerID of Offer object
country_codesArray List of country codes
For region-level targeting, pass as an object where each property is a country code and the value for each country code is an array of region codes for that country.

GET Response Notes

Boolean: true if action succeeds; false otherwise

API Call Builder

Javascript is required to use the API Call Builder.
Have a Question? Please contact for technical support.