dfp_full_report_wrapper {rdfp} | R Documentation |
Take report request and return data.frame
Description
Take a report request and manage all aspects for user until returning a data.frame or error
Usage
dfp_full_report_wrapper(request_data,
check_interval=3,
max_tries=20,
verbose=FALSE)
Arguments
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 |
Value
a data.frame
of report results as specified by the request_data
See Also
Examples
## 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)
[Package rdfp version 0.1.4 Index]