PeumeAPI

Ads

Update ad account settings

Changes a Meta ad account's name, spend cap or default EU DSA beneficiary and payor.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/update-ad-account-settings \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "accountId": "your accountId",
    "adAccountId": "your adAccountId"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: update-ad-account-settings.

Parameters

stageboolean

Send true to store this write as a staged change instead of applying it. The response is `202` with the change, and POST /v1/ads/changes/{changeId}/confirm applies it later. Cannot be combined with `validateOnly`.

accountIdRequiredstring

Account ID (metaads, or a facebook/instagram posting account)

adAccountIdRequiredstring

Meta ad account ID (act_...)

namestring

New ad account name.

spendCapnumber

Account spend cap in whole currency units; null removes it.

resetAmountSpentboolean

Restart the amount counted against the cap from zero. Cannot be combined with spendCap null.

defaultDsaBeneficiarystring

Legal entity benefiting from ads on this ad account

defaultDsaPayorstring

Legal entity paying for ads on this ad account. Defaults to defaultDsaBeneficiary when omitted. Requires defaultDsaBeneficiary.

trackingUrlTemplatestring

**Google only.** Account tracking template (customer.tracking_url_template); an empty string clears it.

finalUrlSuffixstring

**Google only.** Account final URL suffix (customer.final_url_suffix); an empty string clears it.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.