adwordsR (version 0.3.1)

buildAwqlStatement: AWQL Statement

Description

Build the AWQL statement before posting to the API

Usage

buildAwqlStatement(reportType, startDate, endDate, attributes = NULL,
  segment = NULL, metrics = NULL, where = NULL)

Arguments

reportType

The report being queries.

startDate

The start date for the request.

endDate

The end date for the request.

attributes

The attributes of the report.

segment

The segment of the report.

metrics

The metrics of the report.

where

The conditions of the report. (Optional)

Value

Returns the statement that will be posted to the Adwords API.

Details

Arguments attributes, segment and metrics are not currently validated so any of these can be used for a request.

Examples

Run this code
# NOT RUN {
buildAwqlStatement("KEYWORDS_PERFORMANCE_REPORT", "2018-01-01", "2018-01-31", 
               attributes = "AdGroupName",
               segment = "Month",
               metrics = "Clicks")
# }

Run the code above in your browser using DataLab