List of accessible clients

Attention.

Access tokens will not be accepted in URL parameters starting February 13, 2019. To continue working with the Yandex.Metrica API, set up authorization by passing the token in the HTTP header.

The outdated authorization method will be temporarily disabled on January 23, January 30, and February 6 for maintenance. Authorization using URL parameters will be unavailable on these dates.

Returns data about Yandex.Direct clients to campaigns which are accessible to the owner of the Metrica counter.

  1. Request syntax
  2. Response format

Request syntax

https://api-metrica.yandex.net/management/v1/clients
 ? [counters=<list>]
Query parameters
countersYandex.Metrica counter ID. You can specify several counters separated via comma.

Response format


{
    "clients" : [ {
        "id" :  < int > ,
        "name" :  < string > ,
        "chief_login" :  < string > 
    }, ... ]
}
ParametersDescription
clientsList of Yandex.Direct clients to whose campaigns the owner of this Yandex.Metrica counter has access
clients
idYandex.Direct client ID.
nameName of client specified in Yandex.Direct settings.
chief_loginLogin of the chief representative in Yandex.Direct. Used for generating the Yandex.Direct - costs report.