retargeting.lists.update
Update retargeting lists with new attributes and groups of conditions
Parameters
| struct |
user { |
|
| string |
session |
Session (as retrieved from client.loginByToken())
|
| int |
userId |
(optional) Managed user ID
|
|
} |
|
|
| array |
lists ( |
Array of retargeting lists
|
| struct |
{ |
|
| int |
listId |
Retargeting list ID
|
| struct |
attributes { |
(optional)
|
| string |
name |
(optional) Name of retargeting list
|
| int |
membership |
(optional) Duration in days user will be in this
|
| bool |
useHistoricData |
(optional) Include users by url requests requested
|
| string |
description |
(optional) Description of Retargeting list.
|
| string |
status |
(optional) Status of retargeting list:
-
active:
active list
-
suspend:
suspended list
|
|
} |
|
|
| array |
conditionGroups ( |
(optional) Groups of conditions
|
| struct |
{ |
|
| int |
conditionGroupId |
(optional) Id of group of conditions
|
| bool |
delete |
(optional) If true, this group will be deleted
|
| array |
conditions ( |
(optional) List of Conditions (in that group)
|
| struct |
{ |
|
| int |
conditionId |
(optional) Id of condition
|
| bool |
delete |
(optional) If true, this condition will be deleted
|
| string |
type |
(optional) Type of condition:
-
contains:
contains
-
not_contains:
not contains
-
equals:
equals
-
not_equals:
not equals
-
starts:
starts
-
not_starts:
not starts
-
ends:
ends
-
not_ends:
not ends
|
| string |
value |
(optional) Value of condition (ex. part of url)
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
|
) |
|
|
Response
| struct |
{ |
|
| int |
status |
Status code (see below)
|
| string |
statusMessage |
Status code description
|
| struct |
diagnostics { |
(optional) Additional information about processed request (see below)
|
} |
|
|
| string |
session |
(optional) Refreshed session
|
| int |
count |
Number of updated lists
|
|
} |
|
|
Response status codes:
List of all possible response status codes:
200: OK
206: Partially OK
301: User is serviced
400: Bad arguments
401: Invalid session
403: Access Denied
404: Not found
406: Bad values of attributes
413: Too many items requested.
429: Too many requests. Has to wait.
500: Server Error.
409: Conflict
Diagnostics:
List of all possible diagnostics:
attribute_conditions_must_be_present_for_create_condition_group
attribute_id_must_be_present_for_delete_condition
attribute_id_must_be_present_for_delete_condition_group
attribute_id_must_be_present_for_update_condition
attribute_type_must_be_present_for_create_condition
attribute_value_must_be_present_for_create_condition
retargeting_list_condition_empty
retargeting_list_condition_group_not_found
retargeting_list_condition_not_found
retargeting_list_membership_out_of_range
retargeting_list_name_empty
retargeting_list_name_unique
retargeting_list_not_exist
retargeting_list_not_found
user_access_denied