dfp_full_report_wrapper: Take report request and return data.frame

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
2
3
4
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

dfp_runReportJob

dfp_getReportJobStatus

dfp_getReportDownloadURL

Examples

 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)

rdfp documentation built on June 6, 2019, 1:02 a.m.