groups.createReport
Create statistic report for groups.
Parameters
struct |
user { |
|
string |
session |
Session (as retrieved from client.loginByToken() )
|
int |
userId |
(optional) Managed user ID
|
|
} |
|
|
struct |
restrictionFilter { |
|
array |
ids ( |
(optional) display groups by given ids
|
|
) |
|
|
array |
names ( |
(optional) definition of searching in group names
|
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
|
|
} |
|
|
|
) |
|
|
bool |
isDeleted |
(optional) return deleted/undeleted. If unassigned returns both.
|
array |
mixedStatus ( |
(optional) return only groups with following states:
|
string
|
|
|
states:
-
active :
active
-
noactive :
suspended by system
-
suspended :
suspended by user
-
deleted :
deleted
|
|
) |
|
|
array |
maxCpc ( |
(optional) Max cost per click
|
struct |
{ |
|
string |
operator |
comparison for following operators:
-
EQ :
equal
-
NEQ :
not equal
-
GT :
greater than
-
GTE :
greater than or equal
-
LT :
less than
-
LTE :
less than or equal
|
|
} |
|
|
|
) |
|
|
array |
maxCpt ( |
(optional) max cost per display (Cost Per Thousand)
|
struct |
{ |
|
string |
operator |
comparison for following operators:
-
EQ :
equal
-
NEQ :
not equal
-
GT :
greater than
-
GTE :
greater than or equal
-
LT :
less than
-
LTE :
less than or equal
|
|
} |
|
|
|
) |
|
|
array |
statisticsConditions ( |
(optional) conditions for statistics
|
struct |
{ |
|
string |
columnName |
(optional) type of statistic:
-
impressions :
type int
-
clicks :
type int
-
ctr :
type double
-
avgCpc :
type double
-
avgPosition :
type double (1.0 and greater)
-
conversions :
type int
-
conversionRatio :
type double (range 0.0 – 1.0)
-
conversionPrice :
type double
-
conversionValue :
type int
-
transactions :
type int
-
pno :
type double (range 0.0 – 1.0)
-
quality :
type int
-
ishExhaustedBudget :
type int
-
ishExhaustedBudgetShare :
type double (range 0.0 – 1.0)
-
ishStoppedBySchedule :
type int
-
ishStoppedByScheduleShare :
type double (range 0.0 – 1.0)
-
ishUnderForestThreshold :
type int
-
ishUnderForestThresholdShare :
type double (range 0.0 – 1.0)
-
ish :
type double
|
string |
operator |
comparison for following operators:
-
EQ :
equal
-
NEQ :
not equal
-
GT :
greater than
-
GTE :
greater than or equal
-
LT :
less than
-
LTE :
less than or equal
|
int |
intValue |
(optional) value (excludes: doubleValue)
|
double |
doubleValue |
(optional) value
|
|
} |
|
|
|
) |
|
|
struct |
campaign { |
(optional) filters for superior campaign
|
array |
ids ( |
(optional) display patterns from next campaigns (excludes: names)
|
|
) |
|
|
array |
names ( |
(optional) definition of searching in campaign names
|
struct |
{ |
|
string |
operator |
comparison for following operators:
-
CONTAINS :
contains
-
NOT_CONTAINS :
does not contain
-
PHRASE :
phrase (contain 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 |
type ( |
(optional) campaign type:
|
string
|
|
|
campaign types:
-
context :
Display campaign
-
fulltext :
Search campaign
-
combined :
Combined campaign
-
video :
Video campaign
-
product :
Product campaign
-
zbozi :
Zboži.cz campaign
-
simple :
simple ads campaign
|
|
) |
|
|
array |
mixedStatus ( |
(optional) return only campaigns with following states
|
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 :
off time plan
-
active-low_budget :
low budget
-
active-waiting :
waiting for confirmation
-
suspended :
suspended by user
-
deleted :
deleted
|
|
) |
|
|
array |
status ( |
(optional) return only patterns with following states of their campaigns:
|
string
|
|
|
states:
-
active :
active
-
noactive :
suspended by system
-
suspend :
suspended by user
|
|
) |
|
|
bool |
isDeleted |
(optional) returns deleted/undeleted. If unassigned returns both.
|
|
} |
|
|
array |
deviceType ( |
(optional) Type of device for stats:
|
string
|
|
|
(optional) type of the device: [default: deviceAll]
-
devicePhone :
stats for phone
-
deviceTablet :
stats for tablet
-
deviceOther :
stats for other device
-
deviceDesktop :
stats for desktop
-
deviceAll :
stats summary (total)
|
|
) |
|
|
datetime |
dateFrom |
date from
|
|
} |
|
|
struct |
displayOptions { |
(optional) Determines which information is returned. [default: see below]
|
bool |
includeCurrentDayStats |
(optional) Return inaccurate current day statistics. Date range has to contains 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:
campaign_access_denied
date_boundary_exceeded
group_access_denied
missing_attribute
user_access_denied
wrong_attribute_value
wrong_param_value