criterion: Adwords Criterion

Description Usage Arguments Value Examples

View source: R/criterion.R

Description

Creates or coerces S3 objects of type criterion for the Adwords API. is.criterion will test if an object is interpretable as a criterion. Criteria can be added to a campaign.estimate.request. Only locations and languages are supported in the keyword traffic estimator.

Usage

1
2
3
4
5
criterion(id, type = "Location")

as.criterion(id, ...)

is.criterion(x)

Arguments

id

Amount to bid for the maximum cost per click.

type

TRUE to specify that the amount x must be converted to a microamount, FALSE to avoid any conversion for bids that are already micromounts. Default to FALSE.

Value

A S3 object of type criterion.

Examples

1
2
3
4
usa <- criterion(2840) # United States
english <- criterion("1000", type = "Language") # English
french <- as.criterion(1002, type = "Language") # French
is.criterion(french)

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