check.report: Adwords Report Error Handling

Description Usage Arguments Value See Also Examples

View source: R/check.report.R

Description

Checks a report response in the get.report function. If the response is a data.frame then the request worked. If the response is still in XML than an error occured. The XML is parsed to extract and return the error message.

Usage

1

Arguments

x

The result from a report request.

Value

An error message if an error is found, or NULL if none were found.

See Also

get.report

Examples

1
2
3
4
5
6
7
# Try to get a non existing report.
library(RAdwords)
report <- "INVALID_REPORT"
cid <- "XXX-XXX-XXXX"
auth <- doAuth()
fields <- c("AccountDescriptiveName", "AdGroupId", "AdGroupName", "AdGroupStatus", "CampaignId", "CampaignName", "CampaignStatus", "KeywordId", "KeywordTextMatchingQuery", "QueryMatchTypeWithVariant", "Impressions", "Clicks", "Conversions", "Cost", "AveragePosition")
report <- get.report(report, cid, auth, fields, date = "LAST_14_DAYS")

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