Description Usage Arguments Value See Also Examples
Take a report request and manage all aspects for user until returning a data.frame or error
1 2 3 4 | dfp_full_report_wrapper(request_data,
check_interval=3,
max_tries=20,
verbose=FALSE)
|
request_data |
a |
check_interval |
a numeric specifying seconds to wait between report status requests to check if complete |
max_tries |
a numeric specifying the maximum number of times to check whether the report is complete before the function essentially times out |
verbose |
a logical indicating whether to print the report URL |
a data.frame
of report results as specified by the request_data
dfp_runReportJob
dfp_getReportJobStatus
dfp_getReportDownloadURL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
request_data <- list(reportJob =
list(reportQuery =
list(dimensions = 'MONTH_AND_YEAR',
dimensions = 'AD_UNIT_ID',
dimensions = 'AD_UNIT_NAME',
dimensions = 'ADVERTISER_NAME',
dimensions = 'ORDER_NAME',
dimensions = 'LINE_ITEM_NAME',
adUnitView = 'FLAT',
columns = 'AD_SERVER_IMPRESSIONS',
columns = 'AD_SERVER_CLICKS',
dateRangeType = 'LAST_WEEK')))
report_data <- dfp_full_report_wrapper(request_data)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.