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.
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 |