Yandex Direct

Yandex Direct

Let your AI analyse your Yandex Direct advertising, read-only: campaigns, ad groups, ads, keywords and bids, sitelinks and callouts, agency clients, dictionaries, change tracking and statistics reports by day, campaign, ad or search query.

7 天免费 · 无需信用卡 · EU 托管

问 Yandex 任何事

通过 AnythingMCP 对 Yandex Direct 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。

在 Cloud 上安装 Yandex
Yandex Direct · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

2 分钟设置

  1. 1在 cloud.anythingmcp.com 开始免费试用。
  2. 2在连接器商店点击 Yandex Direct。提示时粘贴凭据。
  3. 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
立即安装 Yandex Direct

Yandex 指南

面向主流 AI 客户端的逐步设置。

配置 Yandex Direct

直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。

Yandex Direct

This connector reads Yandex Direct API v5 (https://api.direct.yandex.com/json/v501) with an OAuth token: the advertiser account, campaigns, ad groups, ads, keywords and bids, sitelinks, callouts, negative keyword sets, retargeting lists, agency clients, dictionaries, change tracking and statistics reports. Every tool is read-only; nothing here creates, changes, pauses or pays for anything.

Setup (about 10 minutes, once)

  1. Register an app at https://oauth.yandex.ru (platform: web services, permission Yandex Direct API, direct:api). Note its ClientID.
  2. In the Yandex Direct web interface open Tools, API and submit an API access request for that ClientID (it needs at least one campaign in the account; approval takes from an hour to a few business days). Accept the API user agreement there.
  3. Get a token: sign in with the Direct account and open https://oauth.yandex.ru/authorize?response_type=token&client_id=<ClientID>; copy the access_token (it starts with y0_) into YANDEX_DIRECT_TOKEN. It is valid for about a year and is extended while it is used. It is sent as Authorization: Bearer ... and only to api.direct.yandex.com.
  4. Agencies only: set YANDEX_DIRECT_CLIENT_LOGIN to the advertiser's login to read that advertiser (sent as Client-Login); yandex_direct_list_agency_clients lists the logins. Leave it empty for your own account.

Where to start: yandex_direct_get_client (account, currency), yandex_direct_list_campaigns, then yandex_direct_list_ad_groups, yandex_direct_list_ads and yandex_direct_list_keywords with up to 10 campaign_ids. Performance numbers come from yandex_direct_get_report.

Money: object amounts (bids, budgets, Funds) are integers in micros: 2500000 = 2.50 in the account currency (yandex_direct_get_client gives it). Reports return decimals instead.

Reports (yandex_direct_get_report): the answer is tab-separated text, the first line the column names. report_name must be unique for each set of parameters. Small reports come back at once; larger ones are built offline: the answer is then empty with a retryin header (seconds). Call again with exactly the same parameters and name after that time. At most 5 offline reports can be queued; search query reports are offline only and cover the last 180 days. With CUSTOM_DATE pass date_from and date_to; with any other period leave them out.

Paging: lists return up to limit objects (default 500, at most 10,000). If the answer has LimitedBy, pass that number as offset for the next page.

Points (units): every call spends API points from the advertiser's daily allowance (the Units limit); a failed call costs 20. Prefer one call with several ids over many single calls and ask only for the fields you need.

Errors arrive as {"error": {"error_code", "error_string", "error_detail"}} and are passed on as errors: 53 the token is invalid or expired (get a new one, step 3), 54 or 3000/3001 no API access or no rights (the access request of step 2, or a Client-Login the token may not read), 513 the login is not connected to Direct, 152 not enough points today, 506 too many parallel requests, 8000 and 4000 to 4006 a wrong parameter, 8800 not found, 9300 too many ids in one call.

Out of scope: creating or editing campaigns, ads, keywords and bids, moderation, budgets and payments, the Sandbox and Wordstat.

你的 AI 距离 Yandex Direct 仅两次点击。

安装连接器、粘贴凭据、向 AI 提问。7 天免费,无需信用卡。