Update Entity
adsap_update_entityEdit an existing Meta campaign, ad set, or ad: change name, status (PAUSED/ACTIVE), budget, schedule, ad-set targeting, or ad-set spend limits (daily/lifetime min spend and cap, absolute cents or min/max_spend_percentage of the campaign daily budget on Advantage-campaign-budget campaigns; 0 removes a limit). Put ONLY the fields you want to change in updates. Use dry_run: true to preview the diff (current vs new) without applying anything. Budgets are in cents and apply to campaign (CBO) or ad set (ABO) only; targeting and spend limits apply to ad sets only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity_type": "<entity_type>",
"entity_id": "<entity_id>",
"ad_account_id": "<ad_account_id>",
"updates": "<updates>"
},
"name": "adsap_update_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| updates | Yes | Only the fields you want to change. At least one is required. | |
| entity_id | Yes | ||
| entity_type | Yes | ||
| ad_account_id | Yes |