retargeting.lists.create
Create retargeting lists with 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 |
{ |
|
struct |
attributes { |
|
string |
name |
Name of retargeting list.
|
int |
membership |
Duration in days user will be in this
|
bool |
useHistoricData |
Include users by url requests requested
|
bool |
takeAllUsers |
Include all url requests to retargeting list.
|
string |
description |
(optional) Description of retargeting list.
|
|
} |
|
|
array |
conditionGroups ( |
(optional) Groups of url conditions
|
struct |
{ |
|
array |
conditions ( |
List of url conditions (in that group)
|
struct |
{ |
|
string |
type |
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 |
Value of condition (for example 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
|
array |
listIds ( |
(optional) seznam ID vytvorenych
|
|
) |
|
|
|
} |
|
|
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:
retargeting_groups_empty
retargeting_list_condition_empty
retargeting_list_membership_out_of_range
retargeting_list_name_unique
user_access_denied