Update a marketing message campaign
Update a marketing message campaign — rename it, pause / reactivate it, change its budget, or rename its ad / ad set. At least one of `name` / `status` / a budget field is required.
/campaigns/{campaignId}Beta
Authorization
x-api-key x-date x-signature x-api-version Your API key (the ApiKeys document id).
In: header
Current timestamp as an IMF-fixdate string (GMT, US locale) "EEE, dd MMM yyyy HH:mm:ss z", e.g. "Sun, 06 Dec 2020 12:59:11 GMT". 30-second TTL.
In: header
HMAC-SHA256 of the x-date string keyed by your secret, lowercase hex.
In: header
API version you're coding against — currently 1. Required; a missing or unsupported value returns 400 with Missing or unsupported x-api-version header. Supported versions: 1.
In: header
Path Parameters
The Meta campaign id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Update a marketing message campaign. At least one of name / status / a budget field is required; at most one budget field, and a budget change also requires adsetId.
Response Body
application/json
application/json
application/json
application/json
application/json
Try it
live — writes real dataKept in this tab only and signed in your browser — your secret never leaves your device.
Path
Body
This sends a real PATCH to your live organization.
Enter your key and secret to send.
curl -X PATCH "https://example.com/campaigns/120210000000000000" \ -H "Content-Type: application/json" \ -d '{ "name": "Renamed campaign", "status": "PAUSED", "lifetimeBudget": "80000", "adsetId": "120210000000000001" }'{ "campaign": { "success": true }, "adset": { "success": true }}{ "message": "string"}{ "message": "string"}{ "message": "string"}{ "error": [ { "message": "string", "path": [ "string" ], "type": "string", "context": {} } ]}Get a marketing message campaign
One marketing message campaign's metadata, in the **same shape as a list item** (`GET /ad-accounts/{adAccountId}/campaigns`) — so callers holding just a `campaignId` don't have to page an ad account's list. Fetched live from Meta. Returns `404` when the id doesn't resolve on Meta **or** resolves to a non-message campaign — this surface is message campaigns only, matching the list's filter.
Delete a marketing message campaign
Delete a marketing message campaign. The id is passed straight to Meta's delete — identical to the in-app delete, with **no reference checks**: deleting a campaign that an existing marketing message still points at is allowed (that message's sends will then fail). Pass the list item's top-level `campaignId` to remove the whole campaign.