Skip to content

Delete Ad Campaign

DELETE
/ad-campaigns/{campaign_id}

Stop and remove a campaign.

THIS STOPS A LIVE CAMPAIGN ON THE PLATFORM FIRST, then removes graph8’s row. There is no undo: the platform-side removal is the platform’s, and the campaign’s history goes with the local row.

502 - not 404 - when the platform refuses the removal, because the campaign is then still LIVE AND SPENDING and reporting success would be the worst possible answer.

Authorizations

Parameters

Path Parameters

campaign_id
required

The ad campaign’s id.

integer

The ad campaign’s id.

Header Parameters

X-Target-Org-Id
Any of:
string

Responses

200

Successful Response

object
data
required

One ad-platform object, or one handler response.

object
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string