Query for Locations
Retrieve a paginated list of business locations using filters and sorting.
URL
POST https://api.ads.apple.com/v1/locations/queryHeader Parameters
| Name | Type | Description |
|---|---|---|
X-Ap-Context Required | string |
Response Codes
| Status | Reason | Type | Description |
|---|---|---|---|
| 200 | OK Content-Type: application/json | LocationQueryResponse | |
| 400 | Bad Request Content-Type: application/json | LocationQueryResponse | |
| 401 | Unauthorized Content-Type: application/json | Error | |
| 403 | Forbidden Content-Type: application/json | Error | |
| 404 | Not Found Content-Type: application/json | Error | |
| 429 | Too Many Requests Content-Type: application/json | Error | |
| 500 | Internal Server Error Content-Type: application/json | Error |
Discussion
This endpoint retrieves a paginated list of physical business locations associated with a brand. Locations are the physical stores or venues that BUSINESS_BRAND campaigns advertise. When creating ad groups for these campaigns, use location id values from this endpoint to scope delivery to specific stores or venues.
Locations are registered entities that represent physical places of business, such as retail stores, restaurants, and service centers. An empty request body returns all locations with default pagination. Filter by brandId to retrieve locations for a specific brand.
See QueryFilterOperator for the full set of supported comparison operators.
Filterable Fields
Field | Type | Operators | Sortable | Description |
|---|---|---|---|---|
| string |
| Filter by the brand the location belongs to. | |
| string |
| Yes | Filter by location display name or prefix. |
| string (enum) |
| Filter by operational status: | |
| string |
| Filter by ISO 3166-1 alpha-2 country or region code. | |
| string |
| Filter by state or province name. | |
| string |
| Filter by city or town name. | |
| string |
| Filter by postal or ZIP code. | |
| string (enum) |
| Filter by eligibility status: |
The request body is a QueryRequest composed of QueryFilter conditions and QuerySort directives (QuerySortOrder), controlled by QueryPagination.
Request Body
See QueryRequest.
Each location record returned by this endpoint includes the following fields:
Field | Type | Description |
|---|---|---|
| string | Unique identifier for the location. Used in ad group targeting. |
| string | Display name of the location. |
| string | ISO 3166-1 alpha-2 country code. |
| string | State or province name. |
| string | City or town name. |
| string | Postal or ZIP code. |
| string | Operational status: |
| object | System-managed eligibility for ad targeting. |
A few limitations apply to querying locations and using the results for targeting:
Constraint | Detail |
|---|---|
Filter by | Omitting this returns locations across all brands, which may be a large result set. |
Location IDs in targeting | Add location |
Open locations only | Only locations with |