themes.negative.createReport
Prepare report for themes.
Parameters
struct |
user { |
|
string |
session |
Session (as retrieved from client.loginByToken() )
|
int |
userId |
(optional) Managed user ID
|
|
} |
|
|
struct |
restrictionFilter { |
|
array |
ids ( |
(optional) display themes by given ids
|
|
) |
|
|
bool |
isDeleted |
(optional) return deleted/not-deleted. Returns both when not set.
|
struct |
categories { |
(optional) filter only themes with following categories
|
array |
ids ( |
(optional) filter following category ids.
|
|
) |
|
|
|
} |
|
|
struct |
group { |
(optional) filters for theme's parent group
|
array |
ids ( |
(optional) display themes from following groups (excludes: names)
|
|
) |
|
|
array |
names ( |
(optional) definition of parent group name filter
|
struct |
{ |
|
string |
operator |
comparison for following operators:
-
CONTAINS :
contains
-
NOT_CONTAINS :
does not contain
-
PHRASE :
phrase (contains phrase)
-
NEGATIVE_PHRASE :
negative phrase(does not contain phrase)
-
STARTS_WITH :
starts with
-
NOT_STARTS_WITH :
does not start with
-
ENDS_WITH :
ends with
-
NOT_ENDS_WITH :
does not end with
|
|
} |
|
|
|
) |
|
|
array |
mixedStatus ( |
(optional) return themes with following mixed states of their parent groups:
|
string
|
|
|
states:
-
active :
active
-
noactive :
suspended by system
-
suspended :
suspended by user
-
deleted :
deleted
|
|
) |
|
|
array |
status ( |
(optional) return themes with following states of their groups:
|
string
|
|
|
states:
-
active :
active
-
noactive :
suspended by system
-
suspend :
suspended by user
|
|
) |
|
|
bool |
isDeleted |
(optional) return themes with their parent group deleted/not-deleted.
|
|
} |
|
|
struct |
campaign { |
(optional) (optional) filters for theme's parent campaign
|
array |
ids ( |
(optional) display themes from following campaigns (excludes: names)
|
|
) |
|
|
array |
names ( |
(optional) definition of parent campaign name filter
|
struct |
{ |
|
string |
operator |
comparison for following operators:
-
CONTAINS :
contains
-
NOT_CONTAINS :
does not contain
-
PHRASE :
phrase (contains phrase)
-
NEGATIVE_PHRASE :
negative phrase(does not contain phrase)
-
STARTS_WITH :
starts with
-
NOT_STARTS_WITH :
does not start with
-
ENDS_WITH :
ends with
-
NOT_ENDS_WITH :
does not end with
|
|
} |
|
|
|
) |
|
|
array |
mixedStatus ( |
(optional) return only themes with following mixed states of their parent campaigns
|
string
|
|
|
allowed states:
-
active :
active
-
active-exhausted_day_budget :
exhausted day budget
-
active-expired_budget :
expired budget
-
active-expired_clicks :
max number of clicks has been reached
-
active-expired_time :
outside time plan
-
active-low_budget :
low budget
-
active-waiting :
waiting for confirmation
-
suspended :
suspended by user
-
deleted :
deleted
|
|
) |
|
|
array |
status ( |
(optional) return only themes with following states of their parent campaign:
|
string
|
|
|
states:
-
active :
active
-
noactive :
suspended by system
-
suspend :
suspended by user
|
|
) |
|
|
bool |
isDeleted |
(optional) return themes with their parent campaign deleted/not-deleted.
|
|
} |
|
|
|
} |
|
|
Response
struct |
{ |
|
int |
reportId |
id of report
|
long |
totalCount |
number of entities
|
string |
statusMessage |
verbal description of return code
|
string |
session |
Refreshed session
|
array |
diagnostics ( |
(optional) Various diagnostics(warnings, errors, other information)
|
|
) |
|
|
|
} |
|
|
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:
campaign_access_denied
date_boundary_exceeded
group_access_denied
invalid_theme_category_id
missing_attribute
theme_access_denied
user_access_denied
wrong_attribute_value
wrong_param_value