keyword.estimate.request: Adwords Keyword Estimate Request

Description Usage Arguments Value Examples

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

Description

Creates or coerces S3 objects of type keyword.estimate.request for the Adwords API. is.keyword.estimate.request will test if an object is interpretable as a keyword.estimate.request

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
keyword.estimate.request(keyword, max.cpc = NULL, is.negative = NULL)

as.keyword.estimate.request(x, ...)

## S3 method for class 'estimate.request.data.frame'
as.keyword(x, max.cpc = NULL,
  is.negative = NULL, ...)

## S3 method for class 'estimate.request.default'
as.keyword(x, ...)

is.keyword.estimate.request(x)

Arguments

keyword

The keyword objects to prepare into a keyword.estimate.request.

max.cpc

The bid for the keyword.

is.negative

When TRUE, no current ad group ads will appear for searches containing this keyword.

Value

A S3 of type keyword.estimate.request.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Minimal example
k1 <- keyword("Example")
request1 <- keyword.estimate.request(k1)

# More complex example
k2 <- keyword(c("Example", "Sample", "Test", "Only a test"), match.type = "PHRASE")
request2 <- keyword.estimate.request(k2, max.cpc = max.cpc(c(1, 2, 1, 3), use.micro = TRUE))

# Coercing to a keyword.estimate.request
k3 <- as.keyword.estimate.request("Convert", is.negative = TRUE, match.type = "EXACT")

# Checking a keyword.estimate.request
is.keyword.estimate.request(k3)

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