Returns the countries a country targeting rule accepts, as a JSON object of ISO country code to country name.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/targeting/country/values.do
Returns the countries a country targeting rule accepts, as a JSON object of ISO country code to country name. Needs no entity, unlike the per-entity lookups. Requires MANAGE_DEMAND_TARGETING or MANAGE_SUPPLY_PRE_TARGETING permission.
Responses
200
Success
400
Bad request — invalid or missing parameters
401
Unauthorized
403
Forbidden
500
Internal server error
503
The geo service holding the country list did not answer; retry later
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/targeting/country/values.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());