Description Usage Arguments Value Examples
View source: R/combine.traffic.estimator.R
Combines a campaign.estmate.request and the traffic.estimator obtained with this campaign.estimate.request into one final data.frame. In the Adwords Traffict Estimate, the requested keywords are not returned. This method parse the returned estimates and join the keywords from the request. The solution uses the fact that the results in the estimate are in the same order as the keywords in the request.
1 | combine.traffic.estimator(cer, estimate)
|
estimate |
An object of type traffic.estimator. |
request |
An object of type campaign.estmate.request |
A data frame with the combined informations.
1 2 3 4 5 6 7 8 9 | # For this exemple to work, you must supply a valid client customer id and your developper token
library(RAdwords)
k <- keyword(c("Example", "Test"), match.type = c("EXACT", "PHRASE"))
ker <- keyword.estimate.request(k, max.cpc = c(1500000, 2250000))
aer <- adgroup.estimate.request(ker)
cer <- campaign.estimate.request(aer, campaign.id = "123456789")
request <- traffic.estimator.request(cer)
estimate <- get.service(request, cid = "YOUR_CID", auth = doAuth(), cid = "YOUR_CID", dev.token = "YOUR_DEV_TOKEN", user.agent = "AKTE Exemple")
combine.traffic.estimator(cer, estimate)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.