Действие с объявлениями
ad_actionApply moderation, suspension, resumption, archiving, unarchiving, or deletion to Yandex Direct ads by ID. Use it to pause, restore, or remove ads in bulk without manual editing.
Instructions
Выполняет действие над объявлениями по id: moderate, suspend, resume, archive, unarchive или delete.
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": {
"action": "<action>",
"ids": "<ids>"
},
"name": "ad_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Id объявлений, к которым применить действие. Длинный id (приходит в ответах строкой) передавать строкой как есть. | |
| action | Yes | ||
| client_login | No | Логин клиента агентства или кабинета в управлении (из list_clients). Если не указан — YANDEX_DIRECT_LOGIN из конфигурации, а без него собственный аккаунт токена. |