Update targeting exclusions
update_targeting_exclusionsExcludes custom audiences, geo locations, and interests or behaviors from an ad set by merging into its existing targeting. Previews changes first; confirm to execute.
Instructions
Manages exclusion audiences on an ad set: excluded custom/lookalike audiences, excluded geo locations, and excluded interests/behaviors. Merges into the ad set's existing targeting. Always previews the change first — call again with confirm: true to execute.
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": {
"adset_id": "<adset_id>"
},
"name": "update_targeting_exclusions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to actually execute this action. Omit or pass false to get a preview (current state, proposed change, computed deltas) without making any changes. | |
| adset_id | Yes | Ad set id to update. | |
| client_id | No | Client identifier from accounts.config.json. Omit to use the default META_ACCESS_TOKEN. | |
| exclusions | No | Raw targeting.exclusions object for interest/behavior exclusions, e.g. { "interests": [{ "id": "...", "name": "..." }] } (replaces the current value). | |
| excluded_geo_locations | No | Raw excluded_geo_locations object, e.g. { "countries": ["CI"] } (replaces the current value). | |
| excluded_custom_audience_ids | No | Custom/lookalike audience ids to exclude (replaces the current list). |