GeoSearchPostRequest
Request body for querying geo locations.
Declaration
object GeoSearchPostRequestProperties
| Name | Type | Description |
|---|---|---|
geoRequest Required | [GeoRequest] | Array of GeoRequest objects. Each entry specifies a geo entity to look up. Supports ( |
supplySource Required | GeoSearchPostRequest.SupplySource | Supply source context for eligibility scoping. Case-insensitive. Values: |
pagination | GeoSearchPagination | Optional pagination parameters controlling page size and offset. See GeoSearchPagination. Defaults to |
Discussion
The GeoSearchPostRequest object is the request body for the POST /v1/search/geo (Query Geo Locations) endpoint. It accepts an array of GeoRequest objects, each specifying a geo entity, and returns eligibility data for all of them in a single call scoped to the specified supplySource. Use this for batch-validating a list of location IDs before setting them as ad group targeting values.
Each GeoRequest must supply exactly one of id (numeric geo_location_id) or legacyId (pipe-delimited string such as US|CA|San Francisco) plus the required entity field. The response is a GeoSearchResponse containing a result array of matching entities.
Available results and entity restrictions differ by supplySource, as shown below:
| Behavior |
|---|---|
| Returns results for App Store campaigns. |
| Returns results for Apple Maps campaigns. Restricted to US and CA. |
Example
{
"geoRequest": [
{
"id": "123456789",
"entity": "AdminArea"
},
{
"legacyId": "US|CA|San Francisco",
"entity": "Locality"
}
],
"supplySource": "APPSTORE",
"pagination": {
"offset": 0,
"pageSize": 20
}
}