sitelinks.group.stats
Get statistics for sitelinks by provided group IDs.
That method will search assigned sitelinks for provided groups and receive statistics
for all known sitelink IDs (currently deleted as well).
Parameters
struct |
user { |
|
string |
session |
Session (as retrieved from client.loginByToken() )
|
int |
userId |
(optional) Managed user ID
|
|
} |
|
|
struct |
parameters { |
|
datetime |
dateFrom |
Start date (YYYY-MM-DD)
|
datetime |
dateTo |
End date (YYYY-MM-DD)
|
string |
granularity |
Granularity:
-
total :
Sum all stats together
-
daily :
Split stats by day
-
weekly :
Split stats by week
-
monthly :
Split stats by month
-
quarterly :
Split stats by quarter
-
yearly :
Split stats by year
|
|
} |
|
|
Response
struct |
{ |
|
int |
status |
Status code (see bellow)
|
string |
statusMessage |
Status code description
|
string |
session |
(optional) Refreshed session
|
array |
report ( |
|
struct |
{ |
|
struct |
stats { |
|
datetime |
date |
Start date of given period (depends on granularity)
|
int |
impressions |
Number of impressions
|
int |
clicks |
Number of clicks
|
double |
ctr |
Click ratio - how much clicks per one impression (%)
|
int |
cpc |
Cost per click - average cost per one click
|
int |
price |
Total price paid for displaying ads (for clicks or impressions)
|
double |
avgPosition |
Average position of ad in display format
|
int |
conversions |
Number of conversions (how many times user made an order)
|
double |
conversionRatio |
How many conversions per one click (%)
|
int |
conversionAvgPrice |
Price of one conversion
|
int |
conversionValue |
Value of conversions
|
int |
conversionAvgValue |
Average value of conversion
|
double |
conversionValueRatio |
Value / price ratio (%)
|
int |
transactions |
Number of transactions
|
int |
transactionAvgPrice |
Price of one transaction
|
int |
transactionAvgValue |
Average value of one transaction
|
double |
transactionAvgCount |
Average number of transactions per conversion
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
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:
cache_id_not_exist
campaign_access_denied
date_boundary_exceeded
group_access_denied
missing_attribute
sitelink_access_denied
sitelink_deleted: Updates to the deleted sitelink are not allowed.
sitelink_duplicity
user_access_denied
wrong_attribute_value
wrong_param_value