You can use the geo endpoint to retrieve the following information for targeting:
-
Countries, states, or cities, and their IDs
-
Countries or states that support DMA targeting, or DMAs available for a specific state
-
Countries or states that support area code targeting, or area codes available for a specific state
-
Countries that support postal code targeting
-
Countries that support ISP targeting
-
ISPs available for a specific country
HTTP Method |
URI |
Description |
---|---|---|
|
Retrieves all available countries and their IDs for targeting. |
|
|
Retrieves all available states and their IDs for targeting. |
|
|
Retrieves all available cities and their IDs for targeting. |
|
|
Retrieves all available countries that support DMA targeting. |
|
|
Retrieves all available states that support DMA targeting. |
|
|
Retrieves all DMAs available for targeting for a specific state. |
|
|
Retrieves all available countries that support area code targeting. |
|
|
Retrieves all available states that support area code targeting. |
|
|
Retrieves all area codes available for targeting for a specific state. |
|
|
Retrieves all available countries that suppport postal code targeting. |
|
|
Retrieves all available countries that support ISP targeting. |
|
|
Retrieves all ISPs availabe for targeting for a specific country. |
Important
Important:
-
For PUT calls, do the following:
-
For any PUT method that updates an object, make sure that you include the entire "result": object from the GET response in the request body. If there is missing information, even if it is read-only, the request might fail or override the existing fields with the new values.
-
You must also change the "result": to "entities": and make the entities contents into an array. For example, here is the output from the GET request:
{ "result": { "type": "Advertiser", ... } }
You should make the following modifications, including your specific modifications, to the json object that you submit for the request.
{ "entities": [{ "type": "Advertiser", ... }] }
-
-
For POST calls, do the following:
-
Include the fields marked as Required, as indicated in the corresponding Object article.
-
Format the JSON object as follows:
{ "entities": [{ "type": "Advertiser", ... }] }
-
Retrieves all available countries and their IDs for targeting.
GET https://adapi.sizmek.com/sas/csb/strategies/targetingData/countriesadvertisers?from=0&max=250
Retrieves all available states and their IDs for targeting.
GET https://adapi.sizmek.com/sas/csb/strategies/targetingData/states?countryId=840&from=0&max=250&order=asc&sort=name
Retrieves all available cities and their IDs for targeting.
GET https://adapi.sizmek.com/sas/csb/strategies/targetingData/cities?from=0&max=250&order=asc&sort=name&stateId=33
Retrieves all countries that support DMA targeting.
GET https://adapi.sizmek.com/sas/csb/strategies/targetingData/countries?from=0&max=250&order=asc&sort=name&type=dma
Retrieves all states that support DMA targeting.
GET https://adapi.sizmek.com/sas/csb/strategies/targetingData/states?countryId=840&from=0&max=250&order=asc&sort=name&type=dma
Retrieves DMAs available for targeting for a specific state.
GET https://adapi.sizmek.com/sas/csb/strategies/targetingData/dmas?from=0&max=250&order=asc&sort=name&stateId=33
Retrieves all available countries that support area code targeting.
GET https://adapi.sizmek.com/sas/csb/strategies/targetingData/countries?from=0&max=250&order=asc&sort=name&type=areaCode
Depending on the API user that was created for you, use one of the following request formats:
Retrieves all available states that support area code targeting.
GET https://adapi.sizmek.com/sas/csb/strategies/targetingData/states?countryId=840&from=0&max=250&order=asc&sort=namecsb/strategies/targetingData/countriesadvertisers?from=0&max=250
GET https://api.sizmek.com/rest/csb/strategies/targetingData/states?countryId=840&from=0&max=250&order=asc&sort=name&type=areaCode
Retrieves all area codes available for targeting for a specific state.
GET https://adapi.sizmek.com/sas/csb/strategies/targetingData/areaCodes?from=0&max=250&order=asc&sort=name&stateId=33
Retrieves all available countries that support postal code targeting.
GET https://adapi.sizmek.com/sas/csb/strategies/targetingData/countries?from=0&max=250&order=asc&sort=name&type=postalCode
Retrieves all available countries that support ISP targeting.
GET https://adapi.sizmek.com/sas/csb/strategies/targetingData/countries?&from=0&max=250&order=asc&sort=name&type=isp
Retrieves all ISPs availabe for targeting for a specific country.
GET https://adapi.sizmek.com/sas/csb/strategies/targetingData/isps?countryId=840&from=0&max=250&order=asc&sort=name
Comments