update
Changes the parameters of retargeting lists.## Learn more
Restrictions
Maximum of 1000 retargeting lists per method call.
Request
Request structure in JSON format:
{
"method": "update",
"params": { /* params */
"RetargetingLists": [{ /* RetargetingListUpdateItem */
"Id": (long), /* required */
"Name": (string),
"Description": (string),
"Rules": [{ /* RetargetingListRuleItem */
"Arguments": [{ /* RetargetingListRuleArgumentItem */
"MembershipLifeSpan": (int),
"ExternalId": (long) /* required */
}, ... ], /* required */
"Operator": ( "ALL" | "ANY" | "NONE" ) /* required */
}, ... ]
}, ... ] /* required */
}
}
Parameter |
Type |
Description |
Required |
params structure (for JSON) / UpdateRequest structure (for SOAP) |
|||
|
array of RetargetingListUpdateItem |
Retargeting lists to modify. |
Yes |
RetargetingListUpdateItem structure |
|||
|
long |
ID of the retargeting list. |
Yes |
|
string |
Name of the retargeting list (maximum of 250 characters). |
No |
|
string |
Text note for the retargeting list (maximum of 4096 characters). |
No |
|
array of RetargetingListRuleItem |
Rules for selecting site users. In order for the retargeting list to apply, the user must meet all the rules at once. |
No |
RetargetingListRuleItem structure |
|||
|
array of RetargetingListRuleArgumentItem |
Goals and segments. See the section Goals and segments. |
Yes |
|
RetargetingListRuleOperatorEnum |
Logical operator for the retargeting list:
|
Yes |
RetargetingListRuleArgumentItem structure |
|||
|
int |
The number of days (from 1 to 540) for checking for a goal conversion. For Yandex Metrica and Yandex Audience segments, this parameter is not used and the passed value is ignored. |
For Yandex Metrica goals |
|
long |
ID of the goal or segment. For segments by user interestsuser interests, use identifier prefixes to specify interest types:
For example, the segment ID |
Yes |
Response
Response structure in JSON format:
{
"result": { /* result */
"UpdateResults": [{ /* ActionResult */
"Id": (long),
"Warnings": [{ /* ExceptionNotification */
"Code": (int), /* required */
"Message": (string), /* required */
"Details": (string)
}, ...
],
"Errors": [{ /* ExceptionNotification */
"Code": (int), /* required */
"Message": (string), /* required */
"Details": (string)
}, ...
]
}, ... ] /* required */
}
}
Parameter |
Type |
Description |
result structure (for JSON) / UpdateResponse structure (for SOAP) |
||
|
array of ActionResult |
Results of changing parameters for retargeting lists. |
ActionResult structure |
||
|
long |
ID of the retargeting list. Returned if there aren't any errors. See the section Operations on object arrays. |
|
array of ExceptionNotification |
Warnings that occurred during the operation. |
|
array of ExceptionNotification |
Errors that occurred during the operation. |