Query Campaigns
Query campaigns using filters, sorting, and pagination.
URL
POST https://api.ads.apple.com/v1/campaigns/queryHeader Parameters
| Name | Type | Description |
|---|---|---|
X-Ap-Context Required | string |
Response Codes
| Status | Reason | Type | Description |
|---|---|---|---|
| 200 | OK Content-Type: application/json | CampaignQueryResponse | |
| 400 | Bad Request Content-Type: application/json | ErrorResponse | |
| 401 | Unauthorized Content-Type: application/json | ErrorResponse | |
| 403 | Forbidden Content-Type: application/json | ErrorResponse | |
| 404 | Not Found Content-Type: application/json | ErrorResponse | |
| 429 | Too Many Requests Content-Type: application/json | ErrorResponse | |
| 500 | Internal Server Error Content-Type: application/json | ErrorResponse |
Discussion
This endpoint queries campaigns using a standard QueryRequest body. An empty request body returns all campaigns for the ad account with default pagination.
See QueryFilterOperator for the full set of supported comparison operators.
Filterable Fields
Field | Type | Operators | Sortable | Description |
|---|---|---|---|---|
| integer |
| Yes | System-assigned unique identifier for the campaign. |
| string |
| Yes | Campaign name. |
| string (enum) |
| Yes | Captures the advertiser’s intent for the campaign to serve. See Campaignstatus. |
| string (enum) |
| Yes | System-computed operational status reflecting the campaign’s serving state. See Campaignsystemstatus. |
| array of strings |
| No | Reasons contributing to the current |
| array of strings |
| No | Reasons limiting delivery below maximum potential. See Campaignsystemlimitedstatusreason. |
| string (enum) |
| Yes | The event type that triggers a charge. See Billingevent. |
| string (enum) |
| Yes | The payment model for the campaign. See Paymentmodel. |
| string (enum) |
| Yes | Whether the campaign promotes an App Store app or a brand. See Promotedobjecttype. |
| string |
| Yes | The identifier of the promoted entity. |
| string (ISO 8601) |
| Yes | The scheduled start date and time of the campaign. |
| string (ISO 8601) |
| Yes | The scheduled end date and time of the campaign. |
| string (ISO 8601) |
| Yes | Timestamp when the campaign was created. |
| string (ISO 8601) |
| Yes | Timestamp of the last modification to the campaign. |
| boolean |
| Yes | Whether the campaign has been soft-deleted. |
The request body is a QueryRequest composed of QueryFilter conditions and QuerySort directives (QuerySortOrder), controlled by QueryPagination. This endpoint caps pageSize at 1000.