Contents

Query Geo Locations

Search for geographic locations by entity type and ID for use in ad group geo targeting.

URL

POST https://api.ads.apple.com/v1/search/geo

Header Parameters

NameTypeDescription
X-Ap-Context Requiredstring

Response Codes

StatusReasonTypeDescription
200OK
Content-Type: application/json
GeoSearchResponse
400Bad Request
Content-Type: application/json
Error
401Unauthorized
Content-Type: application/json
Error
403Forbidden
Content-Type: application/json
Error
404Not Found
Content-Type: application/json
Error
429Too Many Requests
Content-Type: application/json
Error
500Internal Server Error
Content-Type: application/json
Error

Discussion

This endpoint returns a list of geographic locations matching the specified entity criteria. To look up valid geo IDs and names before assigning geo targets to an ad group, use this endpoint.

The API sorts results alphabetically by displayName and paginates them using GeoSearchPagination. Each result is a SearchEntity and includes a hierarchy identifier in legacyId, which is a pipe-delimited string that encodes the full geographic hierarchy, such as US|CA|San Francisco. See GeoEntityType for the full list of entity granularities.

The supplySource field controls which entity types appear in the response. Use APPSTORE for App Store campaigns and MAPS for Apple Maps campaigns. Unlike the GET endpoint, the POST endpoint doesn’t filter by eligibility. The API always returns soft-blocked geos with their eligibility data included.

Payload Examples

See Also