adgroup.estimate.request: Adwords Adgroup Estimate Request

Description Usage Arguments Value Examples

View source: R/adgroup.estimate.request.R

Description

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.

Usage

 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)

Arguments

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.

Value

A S3 of type adgroup.estimate.request.

Examples

 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)

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