API ReferenceAnnouncementsCommunity Discussion
API ReferenceCommunity DiscussionAnnouncementsSubscribeLog In
API Reference

city_targeting

NameModifier & DefaultsTypeDescription
city_targetingDefault:
Targeting Object with type = ALL and value = [] (empty collection)
Targeting Object

Use the Dictionary to fetch possible values.

Usage:

1. Target 1 country only.
2. Target 1 or more cities in the above country.
List of cities that the campaign will target or exclude.

city_targeting uses numeric codes (not names). Use the Dictionary to fetch possible values.

The city_targeting field is updated directly via the campaigns endpoint - and the targeted collection is stored directly in the value property:

{
   "id": "1234",
   //...
   "city_targeting": {
      "type": "INCLUDE",
      "value": [
         "229",
         "301",
         "149"
      ],
      "href": null
   }
   //...
}

📘

city_targeting uses numeric codes (not names). Use the Dictionary to fetch possible values.

📘

The href property is always null.

📘

In order to apply city_targeting, you must target that country only.

📘

You can apply city targeting or region targeting - but not both.