direct_set_negatives
Update negative keywords for Yandex Direct campaigns. Choose merge to add phrases or replace to overwrite existing negatives, with dry-run support.
Instructions
WRITE: campaign NegativeKeywords. mode=merge|replace. Phrases as Direct expects (morphology; avoid bare +). 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": {
"phrases": "<phrases>"
},
"name": "direct_set_negatives"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| dry_run | No | ||
| phrases | Yes | ||
| project | No | Ключ бренда из projects.json, либо all | unknown. Write: только ключ из projects.json (не all). | |
| allow_write | No | Must be true to mutate live cabinet. Without it tools return dry plan only. | |
| campaign_id | No | ||
| campaign_ids | No |