GetSubClients
Returns a list of subclients of the specified user.
Disabled method. Use version 5 of the API.
For information about the compatibility of methods between versions 4 and 5, see the Migration guide.
For an advertising agency, returns a list of clients and delegates. For a direct advertiser, returns a list of delegates.
Input data
The input data structure in JSON is shown below.
{
"method": "GetSubClients",
"param": {
/* GetSubClientsRequest */
"Login": (string),
"Filter": {
/* ClientFilter */
"StatusArch": (string)
}
}
}
Parameters are described below.
Parameter | Description | Required |
GetSubClientsRequest object | ||
---|---|---|
Login | Username of the Yandex user that the list of subclients is requested for. | yes |
Filter | The ClientFilter object, which sets conditions for filtering subclients. | no |
ClientFilter object | ||
StatusArch | Yes — Select only subclients whose accounts are archived. No — Select only active subclients. | yes |
Parameter | Description | Required |
GetSubClientsRequest object | ||
---|---|---|
Login | Username of the Yandex user that the list of subclients is requested for. | yes |
Filter | The ClientFilter object, which sets conditions for filtering subclients. | no |
ClientFilter object | ||
StatusArch | Yes — Select only subclients whose accounts are archived. No — Select only active subclients. | yes |
Output data
Returns an array of ShortClientInfo objects with data for associated subclients. The output data structure in JSON is shown below.
{
"data": [
{ /* ShortClientInfo */
"Login": (string),
"FIO": (string),
"Role": (string)
}
...
]
}
Parameters are described below.
ShortClientInfo object | |
---|---|
Login | The Yandex username. |
FIO | Last name and initials. |
Role | Subclient's role:
|
ShortClientInfo object | |
---|---|
Login | The Yandex username. |
FIO | Last name and initials. |
Role | Subclient's role:
|
Examples of input data
Python
{
'Login': 'agrom',
'Filter': {
'StatusArch': 'No'
},
}
PHP
array(
'Login' => 'agrom',
'Filter' => array(
'StatusArch' => 'No'
),
)
Perl
{
'Login' => 'agrom',
'Filter' => {
'StatusArch' => 'No'
},
}