Track spend and conversions across Yandex Direct campaigns
Connect Yandex Direct to the AI agent: campaigns, ads, keywords and bids. The agent matches spend against conversions and finds keywords that burn budget.
How the agent works with Яндекс Директ
The agent works with version five of the Direct API at https://api.direct.yandex.com/json/v5: campaigns, ad groups, ads, keywords and autotargetings with their bids, negative keywords, portfolio strategies, bid adjustments, region reference books and reports. Out of that it assembles spend, impressions, clicks, CTR and conversions for a period, goes down from the campaign level to an individual keyword and on to the actual search query, and finds what burns budget without bringing in a single conversion.
An enabled campaign in Direct does not mean a running one: state and status are different things here, and a campaign can be stalled by rejected moderation, an exhausted daily budget or an empty account while still being «enabled». The agent reads both fields together with the payment status and names the real reason for the stop. Statistics for the current day are still being written in, so it builds comparisons on closed days and always names the period the figures were taken for.
The unified performance campaign lives at its own API address, and the former dynamic campaigns and smart banners have been migrated into it and are no longer created anew. The agent reads such campaigns where they actually sit rather than reporting «nothing found» for advertising that exists. Autotargeting is shown next to keywords: in a unified campaign it is on by default, and spend without a single keyword is usually exactly that.
The agent can change bids and pause campaigns if the login has edit rights: permissions carry over from the web interface one to one, and with read-only access you still get the analytics. But a bid is money in real time, so the agent first shows the current value, the proposed one and the number of keywords affected, waits for confirmation and re-reads the result after applying it — Direct answers «success» even for a batch in which some rows were rejected.
The connection is made by confirming a code on a Yandex page — there are no tokens to copy, and access is renewed on its own afterwards. Direct counts Units against a daily quota: every request costs points and a failed one costs twenty, so the agent asks only for the fields it needs and does not hammer the API with the same broken body. No more than five requests run in parallel, so it paginates through selections, orders heavy reports in offline mode and waits until they are ready, and states any shortage of data or permissions directly.
Integration scenarios
Spend and conversions by campaign
The agent pulls a report on impressions, clicks, CTR, spend and conversions for the period and shows which campaigns pay off and which just burn budget.
Search queries that burn budget
The agent pulls the report on the actual search queries, matches them against keywords and autotargeting and names the ones with spend and zero conversions.
Bids and budget stoppages
The agent checks keyword bids, campaign state and moderation status and names the ones stalled by a daily budget cap, by rejected ads or by an empty account.
Daily spend digest
The agent posts yesterday's spend in chat, compares it with last week and names the campaigns whose CTR slipped or whose cost per conversion went up.
Where the clicks come from
The agent breaks impressions, clicks and spend down by display region and names the cities where the cost per conversion sits well above the campaign average.
Bid changes you confirm
The agent shows the current bid, the proposed one and the number of keywords affected, applies the change or pauses the campaign once you agree, and re-reads the result.
Яндекс Директ examples
23 фразы съели 61 400 ₽ за месяц при нуле конверсий.
- «купить станок бу» — 14 200 ₽, 312 кликов, ни одной заявки
- Группа «Общие запросы» даёт 40% расхода и 6% конверсий
- Готов снизить ставки по этим фразам до 12 ₽ и добавить 9 минус-слов
Применять?
How to connect
Before you connect
- An approved Direct API access request
- The API agreement terms accepted in Direct API settings
- An empty allowed IP list in the Direct API settings
- The login that actually owns the campaigns — access is granted under it
- The daily Units quota per advertiser
- 1
Pick a login registered in Direct
The API admits a business representative, an agency, or an agency client granted access. Decide which login to use and sign out of your other accounts.
- 2
Check where the campaigns live
The agent works with campaigns of the login that confirmed access. Client campaigns under an agency login won't show up — use the advertiser's login.
- 3
Check your rights on the campaigns
Web interface rights carry over as is: with read-only access the agent can only fetch data, not change bids or statuses. The agency grants edit rights.
FAQ
By signing in to your Yandex account: you confirm a code on a Yandex page, with no tokens to copy. Sign in with the login that owns the campaigns — client campaigns under an agency login will not be pulled in on their own. The agreement terms and the access request live on the API Settings page.
Campaigns of every type including unified performance ones, ad groups, ads, keywords and autotargetings with bids, negative keywords, portfolio strategies, bid adjustments, feeds, retargeting, region reference books and API v5 reports — for the advertiser whose login authorized access.
Yes, if the login has edit rights: the agent pauses and resumes campaigns and sets keyword bids and adjustments. Permissions carry over from the web interface one to one, and with read-only access you still get the analytics. Every change goes through confirmation and is re-read after it is applied.
From API reports over closed days: spend, impressions, clicks, CTR, cost per click and conversions arrive already in roubles for the named period. Direct is still writing in today's figures, so the agent keeps them out of comparisons and always names the period boundaries.
Direct counts Units and holds a daily quota per advertiser, allows no more than five parallel requests, and no more than twenty requests to the reports service per ten seconds with five reports in the queue. The agent paginates through selections and orders heavy reports in offline mode, waiting until they are ready.