getData: Get Adwords Data

View source: R/getData.R

getDataR Documentation

Get Adwords Data

Description

getData posts the Adwords Query Language (awql) Statement which is generated with statement. The data are retrieved from the Adwords API as a dataframe.

Usage

getData(clientCustomerId, google_auth, statement, apiVersion = "201809",
  transformation = TRUE, changeNames = TRUE,
  includeZeroImpressions = FALSE, verbose = FALSE)

Arguments

clientCustomerId

Adwords Account Id; supports a single account id: "xxx-xxx-xxxx" or a vector of ids from the same Google Ads MCC: c("xxx-xxx-xxxx", "xxx-xxx-xxxx")

google_auth

list of authentication

statement

awql statement generated with statement.

apiVersion

supports 201809, 201806, 201802 defaults to 201806.

transformation

If TRUE, data will be transformed with transformData into suitable R dataframe. Else, the data are returned in raw format.

changeNames

If TRUE, the display names of the transformed data are converted into more nicer/practical names. Requires transformation = TRUE

includeZeroImpressions

If TRUE zero impressions will be included. Defaults to FALSE.

verbose

Defaults to FALSE. If TRUE, the curl connection output will be printed.

Value

Dataframe with the Adwords Data.


jburkhardt/RAdwords documentation built on March 26, 2022, 7:20 p.m.