R/remarketingAudience.R

Defines functions get_remarketing_audience list_remarketing_audiences

Documented in get_remarketing_audience list_remarketing_audiences

#' @template get_remarketingAudience
#' @include mgmt.R
#' @export
get_remarketing_audience <- function(accountId, webPropertyId, remarketingAudienceId, token) {
    path <- sprintf("management/accounts/%s/webproperties/%s/remarketingAudiences/%s",
                    accountId, webPropertyId, remarketingAudienceId)
    get_mgmt(path, token)
}

#' @template list_remarketingAudience
#' @include mgmt.R
#' @export
list_remarketing_audiences <- function(accountId, webPropertyId, type = "", start.index = NULL, max.results = NULL, token) {
    path <- sprintf("management/accounts/%s/webproperties/%s/remarketingAudiences",
                    accountId, webPropertyId)
    list_mgmt(path, list(type = type, start.index = start.index, max.results = max.results), token)
}
Amatcov/RGA-essentials documentation built on Nov. 27, 2019, 12:01 a.m.