get
For an advertiser's representative, returns advertiser parameters and user settings; for an agency's representative, returns agency parameters and user settings.
Request on behalf of an advertiser's representative
Any representative of an advertiser can get the advertiser's parameters and their own personal settings.
The advertiser's chief representative can also get the settings of another representative. To do this, pass the representative's username in the Client-Login
request header.
Request on behalf of an agency's representative
Any agency representative can also get the advertiser parameters for an agency client and the user settings for the advertiser's representative. To do this, pass the login of the advertiser's representative within the Client-Login
request header.
Any agency representative can get the agency parameters and their own personal settings.
The agency's chief representative can also get the settings of another agency representative. To do this, pass the representative's username in the Client-Login
request header.
Learn more
Request
Request structure in JSON format:
{
"method": "get",
"params": { /* params */
"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" | "EpayNumber" | "RegNumber" | "OksmNumber" | "OkvedCode" ), ... ],
"ContractFieldNames": [( "Number" | "Date" | "Price" | "Type" | "ActionType" | "SubjectType" ), ... ],
"ContragentFieldNames": [( "Name" | "Phone" | "EpayNumber" | "RegNumber" | "OksmNumber" ), ... ],
"ContragentTinInfoFieldNames": [( "TinType" | "Tin" ), ... ]
}
}
Parameter |
Type |
Description |
Mandatory |
params structure (for JSON) / GetRequest (for SOAP) |
|||
|
array of ClientFieldEnum |
The names of parameters to get. Alert The response does not return the agency parameters |
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 |
Response
Note
The Login
, ClientInfo
, CreatedAt
, Notification
, and Phone
parameters belong to the representative, not to the advertiser or agency:
-
The user the request is made on behalf of, if the HTTP
Client-Login
header is not included in the request. -
The user whose username is specified in the HTTP
Client-Login
header, if the request has the HTTPClient-Login
header.
The other parameters are related to the advertiser or the agency, regardless of who the representative is.
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 */
}, ... ]
},
"OverdraftSumAvailable": (long),
"Phone": (string),
"Representatives": [{ /* Representative */
"Login": (string), /* required */
"Email": (string), /* required */
"Role": ( "CHIEF" | "DELEGATE" | "LIMITED" | "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 */
"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 */
"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 */
}
}
}
}, ... ]
}
}
Parameter |
Type |
For an advertiser |
For an agency |
result structure (for JSON) / GetResponse (for SOAP) |
|||
|
array of ClientGetItem |
Advertiser parameters and user settings for the advertiser's representative. |
Agency parameters and user settings for the agency's representative. |
ClientGetItem structure |
|||
|
decimal, nillable |
Account quality index. |
— |
|
YesNoEnum |
Indicates that the advertiser is archived (inactive). |
Indicates that the agency is archived (inactive). |
|
long |
Advertiser ID. |
Agency ID. |
|
string |
First and last name of the Yandex Direct user (no more than 255 characters). |
First and last name of the Yandex Direct user (no more than 255 characters). |
|
int |
ID of the advertiser's country from the reference list of regions. |
ID of the agency's country from the reference list of regions. |
|
string |
Date the user was registered in Yandex Direct, in the format YYYY-MM-DD. |
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. |
The pending bonus to be credited. This parameter can be used only with the RUB currency. |
|
string |
Username of the Yandex Direct user. |
Username of the Yandex Direct user. |
|
NotificationGet |
The Yandex Direct user's settings for SMS and email notifications. |
The Yandex Direct user's settings for SMS and email notifications. |
|
long |
The overdraft limit currently available to the advertiser (see Payment deferral in the Help for Yandex Direct). It's returned as an integer that represents the overdraft limit in the advertiser's currency, multiplied by 1,000,000. |
— |
|
string |
Phone number of the Yandex Direct user (255 characters maximum). |
Phone number of the Yandex Direct user (255 characters maximum). |
|
array of Representative |
Advertiser representatives (see Register representatives in the Yandex Direct Help). Returns all the representatives for the chief representative, or just the chief representative for a normal representative. |
Agency representatives (see Managing agency representatives in the Yandex Direct Help). For the chief representative, returns all the representatives; for all other representatives, returns just the chief representative. |
|
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 |
Type of client:
See Client (Client). |
Type of client: AGENCY. |
|
decimal, nillable |
The VAT rate of the client who is making the payment, meaning the advertiser or agency. |
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 |
|||
|
decimal |
The bonus amount to be credited, with VAT. Returned as an integer multiplied by 1,000,000. |
The bonus amount to be credited, with VAT. Returned as an integer multiplied by 1,000,000. |
|
decimal |
The bonus amount to be credited, without VAT. Returned as an integer multiplied by 1,000,000. |
The bonus amount to be credited, without VAT. Returned as an integer multiplied by 1,000,000. |
NotificationGet structure |
|||
|
LangEnum |
Language for notifications. |
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). |
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). |
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. |
Username. |
|
string |
Email address to send notifications to. |
Email address to send notifications to. |
|
RepresentativeRoleEnum |
The user's role:
|
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. |
— |
|
string |
The number of the electronic payment instrument. |
— |
|
string |
Registration number or its equivalent. |
— |
|
string |
Legal entity's code of the country of registration according to OKSM. |
— |
|
string |
Business category code according to OKVED. |
— |
ContractGet structure |
|||
|
string |
Contract number. |
— |
|
string |
Contract date in the format YYYY-MM-DD. |
— |
|
ContractTypeEnum |
Type of contract:
|
— |
|
ContractActionTypeEnum |
Types of activities of the intermediary representative:
|
— |
|
ContractSubjectTypeEnum |
Contract subject:
|
— |
|
ContractPrice |
The value of the contract. |
— |
ContractPrice structure |
|||
|
decimal |
The value of the contract. |
— |
|
YesNoEnum |
Whether VAT is included in the contract value. |
— |
ContragentGet structure |
|||
|
string |
Name. |
— |
|
string |
Phone number. |
— |
|
string |
The number of the electronic payment instrument. |
— |
|
string |
Registration number or its equivalent. |
— |
|
string |
Legal entity's code of the country of registration according to OKSM. |
— |
|
TinInfoGet |
Tax details of the counterparty. |
— |