Client

The Client object corresponds to an advertiser or advertising agency.

Advertisers are divided into direct advertisers and agency clients.

Advertising campaigns belong to the advertiser.

Advertisers are logically subordinate to the agency that they are clients of.

An advertiser's campaigns are managed by Yandex Direct users in accordance with the assigned role.

Yandex Direct users and their roles

A user who has a Yandex username becomes a Yandex Direct user (gets a Yandex Direct account) when this user becomes the representative of an advertiser or agency, meaning one of the following roles is assigned:

  • Chief representative of an advertiser.

  • Representative of an advertiser.

  • Chief representative of an agency.

  • Representative of an agency.

  • Agency client representative.

For example:

  • The user creates an account in Yandex Direct by selecting a country and currency. This creates an advertiser that is a direct client, and the user becomes the chief representative of this advertiser.

  • An agency representative registers a username for the new client in Yandex Direct. This creates an advertiser that is an agency's client, and the user with the specified username becomes the chief representative for this advertiser.

  • A different user assigns the user as a representative of an advertiser or agency.

If a Yandex user is not a Yandex Direct user, you can still get an OAuth token for the user, but requests to the Yandex Direct API on behalf of this user will result in an error.

Attention.

The user's ID is the Yandex username. When we refer to the username of the advertiser or the agency, we mean the username of the chief representative. The advertiser's ID is ClientId.

Methods

For advertisers

For managing advertiser parameters and user settings for the advertiser's representative, use the Clients service.

Methods: update | get

Any advertiser representative can get and edit the advertiser's parameters as well as their own settings.

The advertiser's chief representative can also get and edit the settings of another representative (in addition to their own settings). To do this, pass the representative's username in the Client-Login request header.

For agencies

For managing advertisers who are agency clients, use the AgencyClients service. Requests to the service must be made on behalf of the agency representative.

Methods: add | update | get

The Clients.get method is for getting the parameters of an agency and the user settings of the agency's representative.

For details, see the section For agencies.