Get
Returns parameters of shared accounts.
Input data
The input data structure in JSON is shown below.
{
"method": "AccountManagement",
"param": {
/* AccountManagementRequest */
"Action": (string),
"SelectionCriteria": {
/* AccountSelectionCriteria */
"Logins": [
(string)
...
],
"AccountIDS": [
(int)
...
]
}
}
}
Parameters are described below.
Parameter |
Description |
Required |
AccountManagementRequest object |
||
|
Action: Get. |
Yes |
|
The |
For agencies |
AccountSelectionCriteria object |
||
|
For agencies, an array containing the usernames of advertisers (no more than 50) to get the shared accounts for. For advertisers, it is acceptable to specify a single username (your own). |
For agencies, one of the parameters |
|
Array of IDS for shared accounts (no more than 100). |
|
Notes |
||
|
Output data
The output data structure in JSON is shown below.
{
"data": {
/* AccountManagementResponse */
"Accounts": [
{ /* Account */
"AccountID": (int),
"Amount": (float),
"AmountAvailableForTransfer": (float),
"Currency": (string),
"Login": (string),
"Discount": (float),
"AgencyName": (string),
"AccountDayBudget": {
/* AccountDayBudgetInfo */
"Amount": (float),
"SpendMode": (string)
},
"SmsNotification": {
/* SmsNotificationInfo */
"MoneyInSms": (string),
"MoneyOutSms": (string),
"PausedByDayBudgetSms": (string),
"SmsTimeFrom": (string),
"SmsTimeTo": (string)
},
"EmailNotification": {
/* EmailNotificationInfo */
"Email": (string),
"MoneyWarningValue": (int),
"PausedByDayBudget": (string)
}
}
...
],
"ActionsResult": [
{ /* AccountActionResult */
"AccountID": (int),
"Login": (string),
"Errors": [
{ /* Error */
"FaultCode": (int),
"FaultString": (string),
"FaultDetail": (string)
}
...
]
}
...
]
}
}
Parameters are described below.
Parameter |
Description |
AccountManagementResponse object |
|
|
Array of |
|
Array of |
Account object |
|
|
ID of the shared account. |
|
The current balance of the shared account (in the shared account currency specified in the |
|
The amount available to transfer using the TransferMoney operation (in the currency specified in the |
|
The currency used for the shared account. Acceptable values: RUB, CHF, EUR, KZT, TRY, UAH, USD, BYN. |
|
The username of the advertiser who owns the shared account. |
|
The advertiser's current discount, as a percent. Currently not used. |
|
Name of the advertising agency that maintains the account. For accounts that are maintained by the advertiser without assistance, this parameter is omitted or equal to NULL. |
|
The |
|
The To get notifications, you must subscribe to them (see the Help section Subscribe to SMS notificationsSubscribe to SMS notifications). The phone number to send notifications to is taken from the user data (see the Help section Mobile numbersMobile numbers). |
|
The |
AccountDayBudgetInfo object |
|
|
The daily budget of the shared account (in the shared account currency specified in the |
|
Mode for displaying ads:
See Daily budgetDaily budget under “Shared account” in the Help for Yandex Direct. The mode applies to all campaigns, and the corresponding setting on the campaign level is ignored. |
SmsNotificationInfo object |
|
|
Notify when funds are credited to the shared account — Yes/No. |
|
Notify when funds are debited from the shared account — Yes/No. |
|
Notify when campaigns are stopped because of reaching the daily limit on the shared account— Yes/No. |
|
The allowed starting time for sending SMS notifications related to the shared account. Specified in the format HH:MM; minutes are set in multiples of 15 (0, 15, 30, 45). |
|
The ending time for sending SMS notifications related to the shared account. Specified in the format HH:MM; minutes are set in multiples of 15 (0, 15, 30, 45). |
EmailNotificationInfo object |
|
|
The email address for sending notifications of events related to the shared account. |
|
The minimal balance; notification is sent when the account balance is reduced to this amount. Set as a percentage of the amount of the last payment. The predefined value is 20. |
|
Notify when campaigns are stopped because of reaching the daily limit on the shared account— Yes/No. |
AccountActionResult object |
|
|
ID of the shared account that the error occurred for (if the |
|
Username of the advertiser that the error occurred for (if the |
|
Array of |
Error object |
|
|
Error code. |
|
Textual message about the error. |
|
Detailed description of the reason for the error. |
Examples of input data
Python
{
'Action': 'Get',
'SelectionCriteria': {
'AccountIDS': [1327944, 1327974]
}
}
PHP
array(
'Action' => 'Get',
'SelectionCriteria' => array(
'AccountIDS' => array(1327944, 1327974)
)
)
Perl
{
'Action' => 'Get',
'SelectionCriteria' ={
'AccountIDS' => [1327944, 1327974]
}
}