Contents

Delete a Campaign

Soft-delete a campaign by its unique identifier, cascading to its ad groups, keywords, and ads.

URL

DELETE https://api.ads.apple.com/v1/campaigns/{id}

Path Parameters

NameTypeDescription
id Requiredstring

Header Parameters

NameTypeDescription
X-Ap-Context Requiredstring

Response Codes

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

Discussion

This endpoint deletes a campaign by its ID. The campaign is soft-deleted: it’s marked with deleted: true and excluded from query results by default, but the record and all its fields are preserved.

After deletion, the query API will no longer include the deleted campaign by default. To retrieve deleted campaigns via the query API, pass an explicit filter with deleted IN [true, false]. To confirm deletion, use GET /v1/campaigns/{id} (Get a Campaign) and verify that Campaign.deleted is true. You can also check that systemStatus is NOT_RUNNING and that systemStatusReasons contains DELETED_BY_USER.

Keep the following in mind when relying on this endpoint’s soft-delete behavior:

Constraint

Detail

Soft delete only

The campaign is marked deleted: true but not physically removed. The record is retained.

Deleted campaigns excluded from queries by default

POST /v1/campaigns/query results automatically exclude campaigns with deleted: true unless explicitly filtered.

Active ad groups are also deleted

Deleting a campaign cascades to its associated ad groups, keywords, and ads.

Payload Examples

See Also