Ads API •References / Targets / Search Geo Targets
Search Geo Targets
Returns data for a specific targetable geo (country, region, DMA, or city) based on either name or id. Either the 'q' or 'ids' parameter must be specified in request.
Request
- idsstring
- qstring
Search for geo location by name. Ex: 'New', 'New York'
- typestring
Filter results by the type of geo. Ex: 'Country'
Allowed values:"COUNTRY"
,"REGION"
,"DMA_REGION"
,"CITY"
- pageSizeinteger
- offsetinteger
Response
Geo targeting information
- Required
- country_codestringExample:
"US"
- idinteger [int32]Required
- namestringRequired
- typestringAllowed values:
"COUNTRY"
,"REGION"
,"DMA_REGION"
,"CITY"
Example:"COUNTRY"
Response sample
{ "geo-targets": [ { "country_code": "US", "id": 1, "name": "name", "type": "COUNTRY" }, { "country_code": "US", "id": 1, "name": "name", "type": "COUNTRY" } ]}