Returns a JSON array of available city names for the specified country and region, used when creating location targeting rules.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/advertiser/{advertiserId}/targeting/country/region/city/values.do
Returns a JSON array of available city names for the specified country and region, used when creating location targeting rules. Requires UPDATE permission on the advertiser and MANAGE_DEMAND_TARGETING user permission.
Path Params
advertiserIdintegerrequired
Unique numeric ID of the advertiser
1234
Query Params
countryCodestringrequired
ISO 3166-1 alpha-2 country code (e.g., US, GB, DE)
US
regionNamestringrequired
Region name within the specified country, as returned by the country regions endpoint
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/advertiser/1234/targeting/country/region/city/values.do?countryCode=US®ionName=California");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());