Обновить группу объявлений
update_ad_groupUpdate an ad group's name, display regions, or negative keywords in Yandex Direct to revise targeting settings for an existing group.
Instructions
Обновляет название и/или регионы показа группы объявлений (adgroups/update). Запрос идёт в API v501, в песочнице — в v5.
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": {
"id": "<id>"
},
"name": "update_ad_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id группы, которую нужно обновить. | |
| name | No | Новое название группы. | |
| regionIds | No | Новые id регионов показа. | |
| client_login | No | Логин клиента агентства или кабинета в управлении (из list_clients). Если не указан — YANDEX_DIRECT_LOGIN из конфигурации, а без него собственный аккаунт токена. | |
| negativeKeywords | No | Заменяет минус-фразы группы; пустой массив очищает их. Чтобы дописать или убрать отдельные фразы, не затирая список, — update_negative_keywords. |