direct_set_region_excludes
Exclude specific regions from all ad groups of Yandex Direct campaigns, preserving existing positive region settings.
Instructions
WRITE: add negative RegionIds on all ad groups of campaigns (exclude subjects under Russia 225). Pass positive region ids (e.g. 11010 Дагестан) — tool stores negatives. Preserves existing positives (225 etc). allow_write=true.
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": {
"region_ids": "<region_ids>"
},
"name": "direct_set_region_excludes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| project | No | Ключ бренда из projects.json, либо all | unknown. Write: только ключ из projects.json (не all). | |
| region_ids | Yes | Positive GeoRegionId of subjects to EXCLUDE | |
| allow_write | No | Must be true to execute write. Default false = dry plan only if dry_run. | |
| campaign_ids | No |