statement: Prepare an Adwards Query Language Statement

Description Usage Arguments Value Examples

View source: R/statement.R

Description

Builds an Adwards Query Language Statement.

Usage

1
2
3
statement(report = "ACCOUNT_PERFORMANCE_REPORT",
  fields = c("AccountDescriptiveName", "Impressions", "Clicks", "Cost",
  "Date"), date = "LAST_14_DAYS", where, compress = FALSE)

Arguments

report

Name of the report. Default to the account performance report ("ACCOUNT_PERFORMANCE_REPORT").

fields

Fields to select in the report. This can be a mix of attributes, segments and metrics. Default to "AccountDescriptiveName", "Impressions", "Clicks", "Cost", "Date".

date

Either a date range (see https://developers.google.com/adwords/api/docs/guides/reporting#date-ranges) or a vector of length two with the date interval (start date first, end date last). Default to last fourteen days ("LAST_14_DAYS"). Note that this works only if no Date or Week columns are specified (see https://developers.google.com/adwords/api/docs/guides/awql).

where

Conditions to use in the statement, like restrictions on a field

compress

Gzipped data download if TRUE. Default to FALSE.

Value

A character string with the content of the query.

Examples

1
statement(report = "ACCOUNT_PERFORMANCE_REPORT", fields = c("AccountDescriptiveName", "Impressions", "Clicks", "Cost", "Date"), date = "LAST_14_DAYS")

adviso/RAdwordsPlus documentation built on Dec. 5, 2019, 3:11 a.m.