Get
Returns retargeting conditions.
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": "RetargetingCondition",
"param": {
/* RetargetingConditionRequest */
"Action": (string),
"SelectionCriteria": {
/* RetargetingConditionSelectionCriteria */
"RetargetingConditionIDS": [
(int)
...
],
"Logins": [
(string)
...
]
}
}
}
Parameters are described below.
Parameter |
Description |
Required |
RetargetingConditionRequest object |
||
|
Action: Get. |
Yes |
|
The |
Yes |
RetargetingConditionSelectionCriteria object |
||
|
Array containing the IDs of retargeting conditions to perform the operation for. |
No |
|
Array containing usernames of clients to perform the operation for. For direct advertisers, this parameter is ignored. |
No |
Notes |
||
Alert
|
Output data
The output data structure in JSON is shown below.
{
"data": {
/* RetargetingConditionResponse */
"RetargetingConditions": [
{ /* RetargetingCondition */
"IsAccessible": (string),
"RetargetingConditionName": (string),
"RetargetingConditionDescription": (string),
"Login": (string),
"RetargetingConditionID": (int),
"RetargetingCondition": [
{ /* RetargetingConditionItem */
"Type": (string),
"Goals": [
{ /* RetargetingConditionGoalItem */
"Time": (int),
"GoalID": (long)
}
...
]
}
...
]
}
...
]
}
}
Parameters are described below.
Parameter |
Description |
RetargetingConditionResponse object |
|
|
The method returns an array of |
RetargetingCondition object |
|
|
Yes — all the goals and segments in the retargeting condition are available; No — the condition has an inaccessible goal or segment, and impressions are not possible for this condition. A goal or segment becomes unavailable if it is deleted, or if the owner revokes access (see Managing tag accessManaging tag access in the Help for Yandex Metrica). |
|
Name of the retargeting condition (maximum 250 characters). |
|
Text description of the retargeting condition (maximum 4096 characters). |
|
Username of the condition's owner. |
|
ID of the retargeting condition. |
|
Array of |
RetargetingConditionItem object |
|
|
Type of group:
A retargeting condition that uses Yandex Metrica segments or Yandex Audience segments must contain at least one "all" or "or" type of group. A retargeting condition that consists solely of "not" groups can only use Yandex Metrica goals. |
|
Array of goals and segments ( |
RetargetingConditionGoalItem object |
|
|
Number of days (from 1 to 90) for checking whether goals are completed or segments are matched. |
|
ID of the goal or segment. |
Examples of input data
Python
{
'Action': 'Get',
'SelectionCriteria': {
'Logins': ['agrom','larry']
}
}
PHP
array(
'Action' => 'Get',
'SelectionCriteria' => array(
'Logins' => array('agrom','larry')
)
)
Perl
{
'Action' => 'Get',
'SelectionCriteria' ={
'Logins' => ['agrom','larry']
}
}