R/as.list.R

Defines functions as.list.keyword as.list.keyword.estimate.request

#' @export
as.list.keyword <- function(x)
{
	list(Keyword = as.character(x), Matchtype = attr(x, "match.type"), KeywordID = attr(x, "id"), Keywordtype = attr(x, "type"))
}

#' @export
as.list.keyword.estimate.request <- function(x)
{
	list(Keyword = as.character(x), Matchtype = attr(x, "match.type"), KeywordID = attr(x, "id"), Keywordtype = attr(x, "type"), Max.CPC = as.numeric(attr(x, "max.cpc")), IsNegative = attr(x, "is.negative"))
}
adviso/RAdwordsPlus documentation built on Dec. 5, 2019, 3:11 a.m.