Description Usage Arguments Value Examples
View source: R/adgroup.estimate.request.R
Creates or coerces S3 objects of type adgroup.estimate.request
for the Adwords API.
is.adgroup.estimate.request
will test if an object is interpretable as an adgroup.estimate.request.
When coercing to an adgroup.estimate.request, max.cpc will be applied to the adgroup.estimate.request.
To supply a max.cpc to the keywords, use argument keyword.max.cpc instead.
1 2 3 4 5 6 7 8 9 10 11 12 | adgroup.estimate.request(ker, adgroup.id = NULL, max.cpc = NULL)
as.adgroup.estimate.request(x, ...)
## S3 method for class 'data.frame'
as.adgroup.estimate.request(x, adgroup.id,
campaign.id, ...)
## Default S3 method:
as.adgroup.estimate.request(x, ...)
is.adgroup.estimate.request(x)
|
ker |
The keyword.estimate.request objects to put into a adgroup.estimate.request. |
adgroup.id |
The ID for the adgroup. When converting a data frame, this parameter will override the existing column with adgroup ids, remove it if NULL or leave the column intact if missing (which is the default). |
max.cpc |
The bid for the adgroup. |
A S3 of type adgroup.estimate.request.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Minimal example
k1 <- keyword("Example")
ker1 <- keyword.estimate.request(k1)
aer1 <- adgroup.estimate.request(ker1)
# More complex example
k2 <- keyword(c("Example", "Sample", "Test", "Only a test"), match.type = "PHRASE")
ker2 <- keyword.estimate.request(k2, max.cpc = max.cpc(c(1, 2, 1, 3), use.micro = TRUE))
aer2 <- adgroup.estimate.request(ker2, adgroup.id = 12345)
# Coercing to an adgroup.estimate.request
aer3 <- as.adgroup.estimate.request("Convert", is.negative = TRUE, match.type = "EXACT", max.cpc = 500000)
# Checking an adgroup.estimate.request
is.adgroup.estimate.request(aer3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.