Meta Ads

Edit a Meta campaign

Changes a campaign's name, status or lifetime spend cap. The spend cap is a hard ceiling on everything the campaign will ever spend, expressed as a decimal in the account currency. Use when: renaming for clarity, or putting a hard ceiling on a campaign the user wants to bound. Do not use to pause or resume — meta_pause_entity and meta_resume_entity exist so the risk of the change is stated correctly to the user. Do not set a spend cap below what the campaign has already spent: Meta stops delivery immediately and the campaign cannot be revived by lowering it further. Returns the campaign read back from Meta. At least one of name, status or spend_cap must be given.

post/api/v1/tools/meta_update_campaign/execute

Request

  • Base URL: https://adako.ai
  • URL: https://adako.ai/api/v1/tools/meta_update_campaign/execute
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

Optional 8-128 character key. A successful envelope is cached for 24 hours; replaying the key with the same arguments returns it again with Idempotent-Replayed: true, and replaying it with different arguments answers 409.

Request body

Response

The tool ran. A write returns proposal_id and approve_url while the change waits for approval.

successunknown required
toolstring required
dataobject required

Machine-readable result.

markdownstring required

The same result written for a person or a model.

proposal_idstring

Present for writes. Nothing changes on the ad platform until it is approved.

approve_urlstring

Where a person approves the proposal.

request_idstring required

Changes

No recorded changes to this operation across all 1 revision of this API.