buildAwqlStatement {adwordsR}R Documentation

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)

Details

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

Value

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

Examples

buildAwqlStatement("KEYWORDS_PERFORMANCE_REPORT", "2018-01-01", "2018-01-31", 
               attributes = "AdGroupName",
               segment = "Month",
               metrics = "Clicks")

[Package adwordsR version 0.3.1 Index]