Take a report request and manage all aspects for user until returning a data.frame or error

dfp_full_report_wrapper(request_data,
                               check_interval=3,
                               max_tries=20,
                               verbose=FALSE)

Arguments

request_data

a list or data.frame of data elements to be formatted for a SOAP request (XML format, but passed as character string)

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)
# }