Offer::setTargetCountries Method

This endpoint is being deprecated in favor of Offer::setGeoTargeting.

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 geotargeting 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.

NameTypeDescription
NetworkId UrlNetwork ID
NetworkToken StringNetwork token
Target StringThis calls action target
Method StringThis calls action method
id IntegerID of Offer object
country_codesArrayList 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

Have a Question? Please contact [email protected] for technical support.