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"
}
}'const res = await fetch("https://api.peume.com/v1/call/update-ad-account-settings", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/update-ad-account-settings",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId"
}
},
)
print(res.json()["output"])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
stagebooleanSend 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`.
accountIdRequiredstringAccount ID (metaads, or a facebook/instagram posting account)
adAccountIdRequiredstringMeta ad account ID (act_...)
namestringNew ad account name.
spendCapnumberAccount spend cap in whole currency units; null removes it.
resetAmountSpentbooleanRestart the amount counted against the cap from zero. Cannot be combined with spendCap null.
defaultDsaBeneficiarystringLegal entity benefiting from ads on this ad account
defaultDsaPayorstringLegal 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.
