Yandex Direct — costs

You can use the Yandex Metrica API to generate a report with data on the number and cost of clicks on Yandex Direct ads. To create this report, you need access to the Yandex Direct campaigns that you want to get information about. The request must specify the direct_client_logins parameter and use a specific set of dimensions and metrics.

You can supplement the report with additional information by using the appropriate dimensions and metrics (for example, you may include bounces or session depth). You can also use other Yandex Metrica features, such as segmentation and sampling.

More information about direct_client_logins

This is the login of the Yandex Direct client's chief representative whose campaigns can be accessed by the owner of the Yandex Metrica tag.

To get a list of IDs that are available for the Yandex Metrica tag in use (ids), send a special request.

When getting data for a report, you can specify multiple logins in the request if needed. Separate them with commas (direct_client_logins=XXXXXX,YYYYYY,ZZZZZZ).

Sample request

https://api-metrika.yandex.net/stat/v1/data?offset=1&limit=1&include_undefined=true&date1=2015-11-08&date2=2015-12-09&dimensions=ym%3Aad%3AdirectOrder&sort=&ids=2138128&filters=ym%3Aad%3AdirectOrder!n&currency=YND&direct_client_logins=wildberries1%2COzon1112006&accuracy=low&metrics=ym%3Aad%3Avisits&lang=ru&request_domain=ru&uid=229516980&oauth_token=05dd3dd84ff948fdae2bc4fb91f13e22bb1f289ceef0037