ads.createReport
Create statistic report for ads.
Parameters
struct |
user { |
|
string |
session |
Session (as retrieved from client.loginByToken() )
|
int |
userId |
(optional) Managed user ID
|
|
} |
|
|
struct |
restrictionFilter { |
|
|
} |
|
|
struct |
displayOptions { |
(optional) Determines which information are returned. [default: see below]
|
bool |
includeCurrentDayStats |
(optional) Return inaccurate current day statistics. Date range has to contain actual date! [default: False] (only for statGranularity in ["daily", "total"])
|
string |
statGranularity |
(optional) Granularity of statistics: [default: total]
-
total :
do not split
-
daily :
split by days
-
weekly :
split by weeks
-
monthly :
split by months
-
quarterly :
split by quarters
-
yearly :
split by year
|
|
} |
|
|
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:
ad_access_denied
campaign_access_denied
date_boundary_exceeded
group_access_denied
missing_attribute
user_access_denied
wrong_attribute_value
wrong_param_value