snap_set_targeting
Change an ad squad's targeting for countries, age, gender, interests, device OS, include segments, or stop excluding segments. Preview first, then apply with an approval token.
Instructions
Change an ad squad's targeting: countries, age, gender, interests, device OS, include segments, or stop excluding segments. Everything not mentioned is kept; countries that stay in the list keep their regional geo entries. Previews unless confirm=true. Two steps: confirm=false returns a preview and an approval_token; to apply, repeat the same arguments with confirm=true and that approval_token.
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": {
"adsquad_id": "<adsquad_id>"
},
"name": "snap_set_targeting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gender | No | ||
| confirm | No | false = preview only (nothing sent). true = apply; needs approval_token from the preview. | |
| max_age | No | ||
| min_age | No | ||
| os_type | No | ||
| countries | No | ||
| interests | No | Replace interests with these ids (e.g. SLC_11); use snap_targeting_options to find ids | |
| adsquad_id | Yes | ||
| clear_devices | No | ||
| approval_token | No | The approval_token returned by the preview of this exact request. Required with confirm=true. | |
| clear_interests | No | ||
| include_segments | No | ||
| remove_exclusions | No | Segment ids to stop excluding |