Guides
Edit, pause and budget
Changing status, archiving and deleting, editing ad sets and budget, the edit limits and the rules for deleted and archived objects.
Campaigns, ad sets and ads are edited with POST /{id} and the parameters that change. The response is {"success":true}. DELETE /{id} is the same as status=DELETED.
Status
curl -s "https://meta-ads.mimicr.dev/v27.0/120200539998049712" \ -H 'Authorization: Bearer <token>' -F status=PAUSED
| From | To | Rule |
|---|---|---|
ACTIVE / PAUSED | ACTIVE, PAUSED, ARCHIVED, DELETED | Free |
ARCHIVED | DELETED | Only that and name; anything else answers 100 (ads: 1885088) |
DELETED | — | Only name changes: campaign 1487566, ad set 1487056 |
Values outside the list answer (#100) param status must be one of {ACTIVE, PAUSED, DELETED, ARCHIVED}.
To put a campaign live, activate all three levels: ads, ad set and campaign. To pause everything, pausing the campaign is enough: the children become CAMPAIGN_PAUSED. DELETED and ARCHIVED objects disappear from lists (/act_{id}/campaigns, /adsets, /ads), unless the effective_status filter asks for them, but they still answer by id and in Insights.
curl --globoff --url 'https://meta-ads.mimicr.dev/v27.0/act_100539998049706/campaigns?fields=id,name,effective_status&effective_status=["ACTIVE","PAUSED","DELETED"]' \ --header 'Authorization: Bearer <token>'
Edit an ad set
POST /{adset_id} accepts the same parameters as the create: targeting, end_time, daily_budget or lifetime_budget, pacing_type, adset_schedule, bid_amount, promoted_object. Restrictions:
| Rule | Error |
|---|---|
start_time doesn't change after the ad set has started | 100/1487101 |
| You can't switch between daily and lifetime budget | 100/1487046 |
end_time in the past | 1487033 |
| The budget changes at most 4 times per hour per ad set | 613/1487632 |
Every request that carries daily_budget or lifetime_budget counts as a budget change, even with the same value. If your application resends the budget on every edit, the fifth edit in the same hour fails with 613/1487632. Send the budget only when it changes.
{
"error": {
"message": "(#613) You can only change your ad set budget 4 times per hour. Please wait to make more changes.",
"type": "OAuthException",
"code": 613,
"error_subcode": 1487632,
"is_transient": false,
"error_user_title": "Too many budget changes",
"error_user_msg": "You can only change your ad set budget 4 times per hour. Please wait to make more changes.",
"fbtrace_id": "AlurO83SxCU"
}
}The limit is the budgetChangeLimit toggle (on by default). The window is one hour of the sandbox clock.
Back-to-back edits on the same object
Meta documents a limit of one edit per object every 30 seconds (613/4841018). In Mimicr it's the objectEditInterval toggle, off by default. Turn it on to test pause-and-resume flows in sequence:
npx mimicr put /v1/meta-ads/homolog objectEditInterval=true
Edit an ad
POST /{ad_id} changes name, status and creative. The adset_id doesn't change. A new creative puts the ad back into review; changing only the status doesn't. Creatives themselves aren't editable beyond name and status (1885184): create another one.
Campaign budget and spend cap
- Campaigns with
daily_budgetorlifetime_budgetsplit the budget among the eligible ad sets. spend_capon the campaign or the account stops delivery when reached;922337203685478removes the cap.- The account spend cap can change up to 10 times per day (
17/1885172).
Validate first
execution_options=["validate_only"] also works on edits: it runs the validations and answers {"success":true} without saving.
Reference: Update campaign, Update ad set, Update ad and Delete campaign.