Appearance
Delete a campaign
Deletes the whole campaign on the platform, cascading to its ad sets and ads. Locally, all Ad documents for this campaign are marked status: cancelled.
Meta-only for now. Other platforms return 501 Not Implemented — fall back to DELETE /v1/ads/{adId} per ad in the meantime.
DELETE /v1/ads/campaigns/{campaignId}
Deletes the whole campaign on the platform, cascading to its ad sets and ads. Locally, all Ad documents for this campaign are marked status: cancelled.
Meta-only for now. Other platforms return 501 Not Implemented — fall back to DELETE /v1/ads/{adId} per ad in the meantime.
Parameters
campaignId(path, string) required — Platform campaign ID
Request body
Content-Type: application/json
platform(string) required (enum: facebook, instagram)
Responses
200 — Campaign deleted
deleted(boolean)adCount(integer) — Number of local Ad docs marked cancelled
401
404 — Campaign not found
501 — Operation not supported on this platform