ads.readReport
Return statistics from report specified by id. Amount of data that you can get is limited.
Amount of data is counted as number_of_wanted_entities * number_of_periods_for_one_entity.
You can get data limit by method api.limits in parameter statsDataLimit.
Method can also return other entity attributes(similar to list(...) method),
however this can slow down the report.
Parameters
struct |
user { |
|
string |
session |
Session (as retrieved from client.loginByToken() )
|
int |
userId |
(optional) Managed user ID
|
|
} |
|
|
string |
reportId |
report id
|
struct |
displayOptions { |
Customize output
|
bool |
allowEmptyStatistics |
(optional) Return empty statistics [default: false]
|
array |
displayColumns ( |
(optional) show following entity attributes
|
|
) |
|
|
|
} |
|
|
Response
struct |
{ |
|
array |
report ( |
|
struct |
{ |
|
array |
stats ( |
statistics
|
struct |
{ |
|
int |
avgCpc |
(optional) Cost per click - average cost for one click
|
double |
avgPos |
(optional) Average position in display format
|
int |
clickMoney |
(optional) money paid for clicks
|
int |
clicks |
(optional) Number of clicks
|
int |
conversions |
(optional) Number of conversions
|
int |
conversionValue |
(optional) Value of conversions
|
datetime |
date |
Start date of given period
|
string |
devicePhone |
(optional) Statistics for phone
|
string |
deviceTablet |
(optional) Statistics for tablet
|
string |
deviceDesktop |
(optional) Statistics for desktop
|
string |
deviceOther |
(optional) Statistics for other devices
|
int |
impressionMoney |
(optional) money paid for impressions
|
int |
impressions |
(optional) Number of impressions
|
int |
totalMoney |
(optional) total money paid(for clicks and impressions)
|
int |
transactions |
(optional) Number of transactions
|
int |
missImpressions |
(optional) missed impressions
|
int |
underForestThreshold |
(optional) missed impressions because of low relevancy
|
int |
underLowerThreshold |
(optional) missed impressions because of low cpc
|
int |
exhaustedBudget |
(optional) missed impressions because of exhausted budget
|
int |
stoppedBySchedule |
(optional) missed impressions because of campaign schedule
|
int |
exhaustedBudgetShare |
(optional) missed impressions because of exhausted shared budget
|
int |
ctr |
(optional) Click Through Rate
|
int |
pno |
(optional) Cost Of Sale(COS)
|
int |
ish |
(optional) not missed impressions percentage in fulltext network
|
int |
ishContext |
(optional) not missed impressions percentage on context network
|
int |
ishSum |
(optional) not missed impressions percentage in both networks
|
int |
views |
(optional) Number of views (watched 100%)
|
struct |
viewershipRate { |
(optional) Quartile reporting of viewership rate.
|
double |
firstQuartile |
Viewership / impressions 25%
|
double |
midpoint |
Viewership / impressions 50%
|
double |
thirdQuartile |
Viewership / impressions 75%
|
double |
complete |
Viewership / impressions 100%
|
|
} |
|
|
double |
viewRate |
(optional) Views / impressions
|
double |
skipRate |
(optional) Skips / impressions
|
double |
avgCostPerView |
(optional) (Money + impressionMoney) / engagement (watched more then 30s or 100% or clicked) (in halers)
|
double |
avgCpt |
(optional) average Cost per thousand - cost per thousand impressions
|
|
} |
|
|
|
) |
|
|
string |
adStatus |
(optional) ad's status(set by system)
|
string |
adType |
(optional) ad's type
|
datetime |
createDate |
(optional) create date
|
datetime |
deleteDate |
(optional) delete date
|
string |
creative1 |
(optional) creative1
|
string |
creative2 |
(optional) creative2
|
string |
creative3 |
(optional) creative3
|
string |
clickthruText |
(optional) URL that is displayed
|
string |
clickthruUrl |
(optional) URL to which is the user redirected after clicking on the displayed URL
|
string |
finalUrl |
(optional) Final URL
|
string |
mobileFinalUrl |
(optional) Mobile final URL
|
string |
headline1 |
(optional) Headline 1
|
string |
headline2 |
(optional) Headline 2
|
string |
headline3 |
(optional) Headline 3
|
string |
name |
(optional) ad name
|
string |
description |
(optional) Description
|
string |
description2 |
(optional) Description 2
|
bool |
deleted |
(optional) is ad deleted?
|
int |
id |
(optional) ad's id
|
string |
path1 |
(optional) Path 1
|
string |
path2 |
(optional) Path 2
|
string |
longLine |
(optional) Longer line of ad
|
string |
shortLine |
(optional) Shorter line of ad
|
string |
companyName |
(optional) Company or brand name
|
string |
colorAccent |
(optional) Accent color
|
string |
colorMain |
(optional) Main color
|
struct |
image { |
(optional)
|
int |
id |
(optional) image id
|
int |
width |
(optional) image width
|
int |
height |
(optional) image height
|
int |
size |
(optional) image size
|
string |
url |
(optional) image url
|
|
} |
|
|
struct |
imageLogo { |
(optional)
|
int |
id |
(optional) imageLogo id
|
int |
width |
(optional) imageLogo width
|
int |
height |
(optional) imageLogo height
|
int |
size |
(optional) imageLogo size
|
string |
url |
(optional) imageLogo url
|
|
} |
|
|
struct |
imageSquare { |
(optional)
|
int |
id |
(optional) imageSquare id
|
int |
width |
(optional) imageSquare width
|
int |
height |
(optional) imageSquare height
|
int |
size |
(optional) imageSquare size
|
string |
url |
(optional) imageSquare url
|
|
} |
|
|
struct |
imageLandscapeLogo { |
(optional)
|
int |
id |
(optional) imageLandscapeLogo id
|
int |
width |
(optional) imageLandscapeLogo width
|
int |
height |
(optional) imageLandscapeLogo height
|
int |
size |
(optional) imageLandscapeLogo size
|
string |
url |
(optional) imageLandscapeLogo url
|
|
} |
|
|
double |
skipRate |
(optional) Skips / impressions
|
int |
views |
(optional) Number of views (watched 100%)
|
double |
viewRate |
(optional) Views / impressions
|
double |
avgCostPerView |
(optional) (Money + impressionMoney) / engagement (watched more then 30s or 100% or clicked) (in halers)
|
struct |
viewershipRate { |
(optional) Quartile reporting of viewership rate. Viewership / impressions [25%, 50%, 75%, 100%]
|
double |
firstQuartile |
(optional) viewershipRate firstQuartile,
|
double |
midpoint |
(optional) viewershipRate midpoint,
|
double |
thirdQuartile |
(optional) viewershipRate thirdQuartile,
|
double |
complete |
(optional) viewershipRate complete
|
|
} |
|
|
int |
premiseId |
(optional) (can be null) firmy premise ID for ad
|
int |
premiseModeId |
(optional) (can be null) mode ID for firmy premise for ad
|
string |
premiseMode |
(optional) (can be null) mode for firmy premise for ad:
-
disabled :
Assigned premise is not shown
-
one :
Premise specified in premiseId is shown
-
nearest :
Client nearest premise is shown
-
inherit :
Premise specified in its campaign is shown
|
string |
sensitivity |
(optional) erotic sensitivity of ad
|
string |
status |
(optional) status of the ad(set by user)
|
string |
trackingTemplate |
(optional) Tracking template
|
string |
impressionTrackingTemplate |
(optional) Template for impressions
|
string |
impressionTrackingTemplate2 |
(optional) Template 2 for impressions
|
struct |
group { |
(optional)
|
datetime |
createDate |
(optional) create date
|
bool |
deleted |
(optional) is group deleted?
|
datetime |
deleteDate |
(optional) delete date
|
int |
id |
(optional) group id
|
int |
maxCpc |
(optional) maximum cpc for group's targeting
|
int |
maxCpt |
(optional) maximum cpt(Cost per Thousand) for group's targeting
|
string |
name |
(optional) group name
|
|
} |
|
|
struct |
campaign { |
(optional)
|
int |
actualClicks |
(optional) Actual clicks
|
datetime |
createDate |
(optional) create date
|
datetime |
deleteDate |
(optional) Deletion date
|
bool |
deleted |
(optional) is campaign deleted ?
|
datetime |
endDate |
(optional) Campaign end date
|
int |
id |
(optional) campaign id
|
string |
name |
(optional) Campaign name
|
datetime |
startDate |
(optional) Campaign start date
|
datetime |
totalBudgetFrom |
(optional) Date from which total money budget is counting.
|
int |
totalClicks |
(optional) Total clicks
|
datetime |
totalClicksFrom |
(optional) Date from which total click budget is counting.
|
|
} |
|
|
struct |
dynamicTemplate { |
|
int |
id |
(optional) id of dynamic template
|
string |
name |
(optional) dynamic template name
|
string |
cbackground |
(optional) background color
|
string |
curl |
(optional) url color
|
string |
ctext |
(optional) text color
|
string |
ctitle |
(optional) title color
|
string |
font |
(optional) font
|
string |
deleted |
(optional) deleted
|
|
} |
|
|
array |
schedule ( |
(optional) Delivery schedule of ad. Array of 7 days, week starts at monday.
|
) |
|
|
bool |
scheduleEnabled |
(optional) Ad has schedule?
|
|
} |
|
|
|
) |
|
|
int |
reportId |
id of report
|
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
cache_id_not_exist
user_access_denied
wrong_param_value