Read from the account
direct_readFetch Yandex.Direct data via any read-only API method (campaigns.get, ads.get, keywords.get). Returns results while blocking state-changing calls, ensuring safe queries.
Instructions
Call any reading method of the Direct API v501 — campaigns.get, ads.get, keywords.get and so on — and get the result. Refuses anything that changes state: those go through direct_plan and direct_apply.
Cost in API units is checked before the call, not read from a header afterwards. Read knowledge://traps first: several read methods return an empty-looking answer unless the right field names are asked for, which looks like 'nothing was saved'.
Easy to miss: keywordsresearch.hassearchvolume answers whether a phrase has search demand (a boolean, not a figure), and dictionaries.get returns the reference books — regions and minimum bids among them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | a reading method, usually 'get' | |
| params | No | the params object of the API call | |
| service | Yes | campaigns, ads, adgroups, keywords, … | |
| client_login | No | Read an account this login represents rather than its own. Reading only: the tools that change something have no such parameter, so a write cannot be aimed at another account by passing a string. |