direct_set_priority_goals
Assign monetary values to conversion goals to optimize Yandex Direct campaigns for high-value actions.
Instructions
WRITE: PriorityGoals SET (no REMOVE in API). goals=[{goal_id, value_rub}]. Weights in ₽. allow_write=true. Prefer payment-heavy; avoid max-conv on form alone.
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": {
"campaign_id": "<campaign_id>",
"goals": "<goals>"
},
"name": "direct_set_priority_goals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goals | Yes | ||
| dry_run | No | ||
| 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 | Yes |