Get
Returns retargeting parameters.
Alert
Disabled method. Use version 5 of the API.
For information about the compatibility of methods between versions Live 4 and 5, see the Migration guide.
Input data
The input data structure in JSON is shown below.
{
"method": "Retargeting",
"param": {
/* RetargetingRequest */
"Action": (string),
"Login": (string),
"SelectionCriteria": {
/* RetargetingSelectionCriteria */
"RetargetingConditionIDS": [
(int)
...
],
"RetargetingIDS": [
(int)
...
],
"AdIDS": [
(long)
...
]
},
"Options": {
"Currency": (string)
}
}
}
Parameters are described below.
Parameter |
Description |
Required |
RetargetingRequest object |
||
|
Action: Get. |
Yes |
|
The username of the client to get the retargeting for. For advertisers, this parameter is ignored. |
For agencies |
|
The |
Yes |
|
The |
Yes |
RetargetingSelectionCriteria object |
||
|
Array of IDs of retargeting conditions to perform the operation for. Maximum of 1000 items in the array. |
One of the parameters |
|
Array of retargeting IDs to perform the operation for. Maximum of 1000 items in the array. |
|
|
Array of ad IDs to perform the operation for. Maximum of 1000 items in the array. |
|
RetargetingRequestOptions object |
||
|
The currency to use for bids in the response. Acceptable values: RUB, CHF, EUR, KZT, TRY, UAH, USD, BYN. The value must match the campaign currency; otherwise, an error is returned with code 245. |
Yes |
Notes |
||
If the |
Output data
The output data structure in JSON is shown below.
{
"data": {
/* RetargetingResponse */
"Retargetings": [
{ /* Retargeting */
"RetargetingID": (int),
"AdID": (long),
"AdGroupID": (long),
"RetargetingConditionID": (int),
"ContextPrice": (float),
"Currency": (string),
"AutoBudgetPriority": (string),
"StatusPaused": (string)
}
...
]
}
}
Parameters are described below.
Parameter |
Description |
RetargetingResponse object |
|
|
Array of |
Retargeting object |
|
|
ID of the retargeting. |
|
ID of the ad group. |
|
The ad ID. |
|
ID of the retargeting condition. |
|
Bid for the Yandex Advertising Network when using the MaximumCoverage and Default strategies (in the currency specified in the |
|
The currency the bid is shown in. Acceptable values: RUB, CHF, EUR, KZT, TRY, UAH, USD, BYN. |
|
Priority of the retargeting when using automatic strategies. Possible values:
|
|
Retargeting is temporarily disabled (not used for displaying ads) — Yes/No. The predefined value is No. |
Examples of input data
Python
{
'Action': 'Get',
'SelectionCriteria': {
'AdIDS': [2571703, 2571705, 2571707]
}
}
PHP
array(
'Action' => 'Get',
'SelectionCriteria' => array(
'AdIDS' => array(2571703, 2571705, 2571707)
)
)
Perl
{
'Action' => 'Get',
'SelectionCriteria' ={
'AdIDS' => [2571703, 2571705, 2571707]
}
}