get
Returns a list of advertisers who are agency clients, their parameters, and settings for each advertiser's chief representative.
Note
For requests to the AgencyClients service:
- In the
Authorizationheader, specify the access token you obtained for the agency representative. - Don't specify the
Client-Loginheader.
Learn more
Request
Request structure in JSON format:
{
"method": "get",
"params": { /* params */
"SelectionCriteria": { /* AgencyClientsSelectionCriteria */
"Logins": [(string), ... ],
"Archived": ( "YES" | "NO" )
}, /* required */
"FieldNames": [( "AccountQuality" | "Archived" | "ClientId" | "ClientInfo" | "CountryId" | "CreatedAt" | "Currency" | "Grants" | "Bonuses" | "Login" | "Notification" | "OverdraftSumAvailable" | "Phone" | "Representatives" | "Restrictions" | "Settings" | "Type" | "VatRate" | "ForbiddenPlatform" | "AvailableCampaignTypes" ), ... ], /* required */
"TinInfoFieldNames" : [( "TinType" | "Tin"), ... ],
"OrganizationFieldNames": [( "Name" | "Kpp" | "EpayNumber" | "RegNumber" | "OksmNumber" | "OkvedCode" ), ... ],
"ContractFieldNames": [( "Number" | "Date" | "Price" | "Type" | "ActionType" | "SubjectType" ), ... ],
"ContragentFieldNames": [( "Name" | "Kpp" | "Phone" | "EpayNumber" | "RegNumber" | "OksmNumber" ), ... ],
"ContragentTinInfoFieldNames": [( "TinType" | "Tin" ), ... ],
"Page": { /* LimitOffset */
"Limit": (long),
"Offset": (long)
}
}
}
|
Parameter |
Type |
Description |
Required |
|
params structure (for JSON) / GetRequest (for SOAP) |
|||
|
|
AgencyClientsSelectionCriteria |
Client selection criteria. To retrieve parameters for all of the agency's clients, specify an empty |
Yes |
|
|
array of AgencyClientFieldEnum |
The names of parameters to get. |
Yes |
|
|
array of TinInfoFieldEnum |
Names of parameters with the required tax details of the end-advertiser. |
No |
|
|
array of OrganizationFieldEnum |
Names of parameters with the required details about the organization of the end advertiser. |
No |
|
|
array of ContractFieldEnum |
Names of parameters with the required details about the client counterparty contract with the end-advertiser. |
No |
|
|
array of ContragentFieldEnum |
Names of parameters with the required details about the counterparty. |
No |
|
|
array of TinInfoFieldEnum |
Names of parameters with the required tax details of the counterparty. |
No |
|
|
LimitOffset |
Structure that defines the page for paginated selection of data. |
No |
|
AgencyClientsSelectionCriteria structure |
|||
|
|
array of string |
Selects clients with the specified representative usernames. Maximum of 10,000 items in the array. |
No |
|
|
YesNoEnum |
Selects clients based on whether they are archived: YES – archived clients, NO – active clients. |
No |
Response
Note
-
The
Login,ClientInfo,CreatedAt,Notification, andPhoneparameters belong to the advertiser's chief representative (see Roles and access of Yandex Direct users). The other parameters relate to the advertiser. -
If the
Loginsparameter in the request specifies the username of a representative other than the chief representative, the response contains the username of the advertiser's chief representative instead of the username from the request. -
If the
Loginsparameter in the request specifies usernames of multiple representatives for the same advertiser, this advertiser (and their chief representative) is only listed once in the response. -
All the advertiser's representatives are listed in the
Representativesparameter.
Response structure in JSON format:
{
"result": { /* result */
"Clients": [{ /* ClientGetItem */
"AccountQuality": (decimal), /* nillable */
"Archived": ( "YES" | "NO" ),
"ClientId": (long),
"ClientInfo": (string),
"CountryId": (int),
"CreatedAt": (string),
"Currency": ( "RUB" | "BYN" | "CHF" | "EUR" | "KZT" | "TRY" | "UAH" | "USD" ),
"Grants": [{ /* GrantGetItem */
"Privilege": ( "EDIT_CAMPAIGNS" | "IMPORT_XLS" | "TRANSFER_MONEY" ), /* required */
"Value": ( "YES" | "NO" ), /* required */
"Agency": (string)
}, ... ],
"Bonuses" : { /* BonusesGet */
"AwaitingBonus" : (long) /* required */,
"AwaitingBonusWithoutNds" : (long) /* required */
},
"Login": (string),
"Notification": { /* NotificationGet */
"Lang": ( "RU" | "UK" | "EN" | "TR" ), /* required */
"SmsPhoneNumber": (string), /* required */
"Email": (string), /* required */
"EmailSubscriptions": [{ /* EmailSubscriptionItem */
"Option": ( "RECEIVE_RECOMMENDATIONS" | "TRACK_MANAGED_CAMPAIGNS" | "TRACK_POSITION_CHANGES" ), /* required */
"Value": ( "YES" | "NO" ) /* required */
}, ... ] /* required */
},
"OverdraftSumAvailable": (long),
"Phone": (string),
"Representatives": [{ /* Representative */
"Login": (string), /* required */
"Email": (string), /* required */
"Role": ( "CHIEF" | "DELEGATE" | "READONLY" | "UNKNOWN" ) /* required */
}, ... ],
"Restrictions": [{ /* ClientRestrictionItem */
"Element": ( "CAMPAIGNS_TOTAL_PER_CLIENT" | "CAMPAIGNS_UNARCHIVED_PER_CLIENT" | "ADGROUPS_TOTAL_PER_CAMPAIGN" | "ADS_TOTAL_PER_ADGROUP" | "KEYWORDS_TOTAL_PER_ADGROUP" | "AD_EXTENSIONS_TOTAL" | "STAT_REPORTS_TOTAL_IN_QUEUE" | "FORECAST_REPORTS_TOTAL_IN_QUEUE" | "WORDSTAT_REPORTS_TOTAL_IN_QUEUE" | "API_POINTS" | "GENERAL_DOMAIN_BLACKLIST_SIZE" | "VIDEO_DOMAIN_BLACKLIST_SIZE" ), /* required */
"Value": (int) /* required */
}, ... ],
"Settings": [{ /* ClientSettingGetItem */
"Option": ( "CORRECT_TYPOS_AUTOMATICALLY" | "DISPLAY_STORE_RATING" | "SHARED_ACCOUNT_ENABLED" ), /* required */
"Value": ( "YES" | "NO" ) /* required */
}, ... ],
"Type": (string),
"VatRate": (decimal), /* nillable */
"ForbiddenPlatform": ("SEARCH" | "NETWORK" | "NONE"),
"AvailableCampaignTypes": ("TEXT_CAMPAIGN" | "MOBILE_APP_CAMPAIGN" | "DYNAMIC_TEXT_CAMPAIGN" | "CPM_BANNER_CAMPAIGN" | "SMART_CAMPAIGN" | "CONTENT_PROMOTION" | "BILLING_AGGREGATE" | "UNIFIED_CAMPAIGN" ),
"TinInfo": { /* TinInfoGet */
"TinType": ( "PHYSICAL" | "FOREIGN_PHYSICAL" | "LEGAL" | "FOREIGN_LEGAL" | "INDIVIDUAL" ),
"Tin": (string) /* nillable */
},
"ErirAttributes": { /* ErirAttributesGet */
"Organization": { /* OrganizationGet */
"Name": (string), /* nillable */
"Kpp": (string), /* nillable */
"EpayNumber": (string), /* nillable */
"RegNumber": (string), /* nillable */
"OksmNumber": (string), /* nillable */
"OkvedCode": (string) /* nillable */
},
"Contract": { /* ContractGet */
"Number": (string), /* nillable */
"Date": (string), /* nillable */
"Type": ( "CONTRACT" | "INTERMEDIARY_CONTRACT" | "ADDITIONAL_AGREEMENT" ), /* nillable */
"ActionType": ( "COMMERCIAL" | "DISTRIBUTION" | "CONCLUDE" | "OTHER" ), /* nillable */
"SubjectType": ( "REPRESENTATION" | "MEDIATION" | "DISTRIBUTION" | "ORG_DISTRIBUTION" | "OTHER" ), /* nillable */
"Price": { /* PriceGet */
"Amount": (decimal), /* required */
"IncludingVat": ( "YES" | "NO" ) /* required */
}
},
"Contragent": { /* ContragentGet */
"Name": (string), /* nillable */
"Kpp": (string), /* nillable */
"Phone": (string), /* nillable */
"EpayNumber": (string), /* nillable */
"RegNumber": (string), /* nillable */
"OksmNumber": (string), /* nillable */
"TinInfo": { /* TinInfoGet */
"TinType": ( "PHYSICAL" | "FOREIGN_PHYSICAL" | "LEGAL" | "FOREIGN_LEGAL" | "INDIVIDUAL" ),
"Tin": (string) /* nillable */
}
}
}
}, ... ],
"LimitedBy": (long)
}
}
|
Parameter |
Type |
Description |
|
result structure (for JSON) / GetResponse (for SOAP) |
||
|
|
array of ClientGetItem |
Advertisers – agency clients and their chief representatives. |
|
|
long |
Sequential number of the last object returned. It is included if there was a limit on the number of objects in the response. See the section Paginated data selection. |
|
ClientGetItem structure |
||
|
|
decimal, nillable |
Account quality index. |
|
|
YesNoEnum |
Indicates that the advertiser is archived (inactive). |
|
|
long |
Advertiser ID. |
|
|
string |
Client name (maximum of 255 characters). |
|
|
int |
ID of the advertiser's country from the reference list of regions. To get the list of regions, use the Dictionaries.get method. |
|
|
string |
Date the user was registered in Yandex Direct, in the format YYYY-MM-DD. |
|
|
CurrencyEnum |
The advertiser's currency. To get the list of currencies, use the Dictionaries.get method. |
|
|
array of GrantGetItem |
The advertiser's permissions for campaign management. |
|
|
BonusesGet |
The pending bonus to be credited. This parameter can be used only with the RUB currency. |
|
|
string |
Username of the Yandex Direct user. |
|
|
NotificationGet |
The Yandex Direct user's settings for SMS and email notifications. |
|
|
long |
The overdraft limit currently available to the advertiser (see Payment deferral in Help for Yandex Direct). Returns an integer representing the overdraft limit in the user's currency, multiplied by 1,000,000. |
|
|
string |
Phone number of the Yandex Direct user (50 characters maximum, only numbers allowed, starting with the country code). |
|
|
array of Representative |
Representatives of the advertiser. |
|
|
array of ClientRestrictionItem |
Limits on the number of objects for an advertiser. |
|
|
array of ClientSettingGetItem |
Advertiser settings that only allow YES or NO values. |
|
|
string |
Client type: SUBCLIENT. |
|
|
decimal, nillable |
The agency's VAT rate. |
|
|
ForbiddenPlatformEnum |
Blocked sites:
|
|
|
AvailableCampaignTypesEnum |
Campaign types available by login:
|
|
|
TinInfoGet |
Tax data of the end-advertiser. |
|
|
ErirAttributesGet |
Additional advertiser data to label ads with. |
|
GrantGetItem structure |
||
|
|
PrivilegeEnum |
Name of the permission:
|
|
|
YesNoEnum |
Whether the client has this permission. |
|
|
string |
The name of the advertising agency, if the permission is granted by an agency. |
|
BonusesGet structure |
||
|
|
long |
The bonus amount to be credited, with VAT. Returned as an integer multiplied by 1,000,000. |
|
|
long |
The bonus amount to be credited, without VAT. Returned as an integer multiplied by 1,000,000. |
|
NotificationGet structure |
||
|
|
LangEnum |
Language for notifications. |
|
|
string |
The phone number for sending SMS notifications from the user's Yandex profile (see Linking phone numbers in the Yandex ID Help). |
|
|
string |
The email address for sending notifications related to the account (no more than 255 characters). |
|
|
array of EmailSubscriptionItem |
Types of notifications to send by email. |
|
EmailSubscriptionItem structure |
||
|
|
EmailSubscriptionEnum |
Type of notification:
|
|
|
YesNoEnum |
Whether to send this type of notification. |
|
Representative structure |
||
|
|
string |
Username. |
|
|
string |
Email address to send notifications to. |
|
|
RepresentativeRoleEnum |
The user's role:
|
|
ClientRestrictionItem structure |
||
|
|
ClientRestrictionEnum |
Name of the restriction:
|
|
|
int |
The limit value. |
|
ClientSettingGetItem structure |
||
|
|
ClientSettingGetEnum |
Setting name:
|
|
|
YesNoEnum |
Setting value. |
|
TinInfoGet structure |
||
|
|
TinTypeEnum |
Organization type:
|
|
|
string |
The taxpayer number or its equivalent in the country of registration. |
|
ErirAttributesGet structure |
||
|
|
OrganizationGet |
Details about the organization of the end-advertiser. |
|
|
ContractGet |
Details of the contract of the client counterparty with the end-advertiser. |
|
|
ContragentGet |
Information about the counterparty of the end-advertiser. |
|
OrganizationGet structure |
||
|
|
string |
Organization name (up to 255 characters). |
|
|
string |
Organization's Tax Registration Reason Code (KPP), no more than 255 characters. |
|
|
string |
Digital payment method's account number (3 to 255 Latin characters, no spaces at the beginning or end, internal spaces must be preserved). |
|
|
string |
Registration number or its equivalent (up to 255 characters). |
|
|
string |
Legal entity's code of the country of registration according to OKSM (up to 3 characters, numbers only). |
|
|
string |
Business category code according to OKVED. |
|
ContractGet structure |
||
|
|
string |
Contract number (up to 255 characters). |
|
|
string |
Contract date in YYYY-MM-DD format (no earlier than January 1, 1991). |
|
|
ContractTypeEnum |
Type of contract:
|
|
|
ContractActionTypeEnum |
Types of activities of the intermediary representative:
|
|
|
ContractSubjectTypeEnum |
Contract subject:
|
|
|
ContractPrice |
Contract price (no more than two decimal digits allowed). |
|
ContractPrice structure |
||
|
|
decimal |
The value of the contract. |
|
|
YesNoEnum |
Whether VAT is included in the contract value. |
|
ContragentGet structure |
||
|
|
string |
Name (up to 255 characters). |
|
|
string |
Organization's Tax Registration Reason Code (KPP), no more than 255 characters. |
|
|
string |
Phone number (50 characters maximum, numbers only, starting with the country code). |
|
|
string |
Digital payment method's account number (3 to 255 Latin characters, no spaces at the beginning or end, internal spaces must be preserved). |
|
|
string |
Registration number or its equivalent (up to 255 characters). |
|
|
string |
Legal entity's code of the country of registration according to OKSM (up to 3 characters, numbers only). |
|
|
TinInfoGet |
Tax details of the counterparty. |