Description Usage Arguments Value See Also Examples
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.
1 | check.report(x)
|
x |
The result from a report request. |
An error message if an error is found, or NULL if none were found.
get.report
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.