Offer::addGeoTargeting Method

Add new locations—cities, countries, and regions—to an offer's geotargeting definition.

On exclusions: Geotargeting exclusion flags can only be created or updated with Offer::setGeoTargeting. To remove exclusion flags, use Offer::removeAllGeoTargeting.

NameTypeDescription
NetworkId UrlNetwork ID
NetworkToken StringNetwork token
Target StringThis calls action target
Method StringThis calls action method
dry_runBooleanSet to true to return the resulting geotargeting rules this update would cause without actually applying changes
id IntegerID of Offer object
location_ids ObjectNested array of location IDs for cities, countries, and regions. These IDs will be used as the new geotargeting definition. To get the ID of a location, use Application::findCities, Application::findAllRegions, or Application::findAllCountries.

GET Response Notes

Array containing: (1) summary of the targeting differences caused by this update, (2) the new Geotargeting for this offer, (3) a flag indicating whether changes were applied

API Call Builder

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