The read-only Designated Market Area (DMA) Service allows you to retrieve the IDs of designated market areas for targeting in campaigns (see dma_targets in the Profile Service).
REST API
HTTP Method
Endpoint
Description
GET
https://api.appnexus.com/dma
View all designated market areas
GET
https://api.appnexus.com/dma?id=ID
View a specific designated market area
GET
https://api.appnexus.com/dma?name=NAME
View a specific designated market area
GET
https://api.appnexus.com/dma?like_name=XX
View all designated market areas in a specific state where XX is the state code
GET
https://api.appnexus.com/dma/meta
Find out which fields you can filter and sort by
JSON fields
Field
Type
Description
active
Boolean
If true, the DMA is available for targeting. If false, there is no geolocation data for the DMA and so delivery is not possible.
code
string
The code of the DMA.
country_code
string
The ISO code for the country to which the DMA belongs. You can use the Country Service to retrieve a complete list of country codes.
country_id
int
The ID of the country to which the DMA belongs. You can use the Country Service to retrieve a complete list of country IDs.
country_name
string
The name of the country to which the DMA belongs. You can use the Country Service to retrieve a complete list of country names.