combine.traffic.estimator: Combine Adwords Traffic Request and Estimate

Description Usage Arguments Value Examples

View source: R/combine.traffic.estimator.R

Description

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.

Usage

1

Arguments

estimate

An object of type traffic.estimator.

request

An object of type campaign.estmate.request

Value

A data frame with the combined informations.

Examples

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)

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