Contents

Query Location Groups

Retrieve a paginated list of location groups using filters and sorting.

URL

POST https://api.ads.apple.com/v1/location-groups/query

Header Parameters

NameTypeDescription
X-Ap-Context Requiredstring

Response Codes

StatusReasonTypeDescription
200OK
Content-Type: application/json
LocationGroupQueryResponse
400Bad Request
Content-Type: application/json
LocationGroupQueryResponse
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 paginated list of location groups accessible to the authenticated ad account. An empty request body returns all non-deleted groups with default pagination applied.

See QueryFilterOperator for the full set of supported comparison operators.

Request Body

See QueryRequest.

Field

Type

Required

Description

filters

array

No

Filter conditions to narrow results.

sorting

array

No

Sort order for results (field + ASC/DESC).

pagination

object

No

Offset and page size. Defaults apply if omitted.

Filterable Fields

The system combines multiple filters with AND logic. The id filter matches the group’s system-assigned identifier, the same id value returned in create and get responses, not the provider object ID. Filtering by brandId is the most common way to scope results to a single brand’s groups.

The system excludes soft-deleted groups from results by default. To include them, add a filter with field: "deleted", operator: "EQUALS", value: true.

Field

Type

Operators

Sortable

Description

id

string

EQUALS, IN

Yes

Matches the group’s system-assigned identifier.

name

string

EQUALS, CONTAINS

Yes

Group display name.

brandId

string

EQUALS

Yes

Parent brand.

groupType

string (enum)

EQUALS, IN

Yes

STATIC or DYNAMIC.

deleted

boolean

EQUALS

Yes

Soft-delete flag. Defaults to excluding deleted groups.

isAllLocationsGroup

boolean

EQUALS

Yes

All-locations group flag.

eligibility.status

string (enum)

EQUALS, IN

Yes

Eligibility status.

eligibility.blockedGroups.supplyPlacement

string

CONTAINS_ANY

Yes

Blocked placement.

eligibility.blockedGroups.countryOrRegion

string

CONTAINS_ANY

Yes

Blocked country.

eligibility.allowedGroups.supplyPlacement

string

CONTAINS_ANY

Yes

Allowed placement.

eligibility.allowedGroups.countryOrRegion

string

CONTAINS_ANY

Yes

Allowed country.

Sorting and Pagination

You can sort results by any filterable field using the sorting array; see QuerySort (QuerySortOrder) and QueryPagination for the request shape. The response includes a pagination object with totalCount, offset, and pageSize. Page through large result sets by incrementing offset.

Payload Examples

See Also