direct_set_excluded_sites
Prevent ads on unwanted placements by setting excluded sites for Yandex Direct campaigns. Supports merging or replacing the exclusion list.
Instructions
WRITE: set campaign ExcludedSites (RSYA junk packages/DSP). mode=merge (default) or replace. allow_write=true required. Never auto-exclude dsp.yandex.ru unless sites list includes it.
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": {
"sites": "<sites>"
},
"name": "direct_set_excluded_sites"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | merge=union with live; replace=only sites[] | |
| sites | Yes | Site/package names, e.g. com.vitastudio.mahjong | |
| dry_run | No | ||
| project | No | Ключ бренда из projects.json, либо all | unknown. Write: только ключ из projects.json (не all). | |
| allow_write | No | Must be true to execute write. Default false = dry plan only if dry_run. | |
| campaign_ids | No |