#' Get AdWords Link meta data
#'
#' @param accountId Account Id
#' @param webPropertyId Web Property Id
#' @param webPropertyAdWordsLinkId AdWords Link Id
#'
#' @return AdWords Meta data
#' @importFrom googleAuthR gar_api_generator
#' @family managementAPI functions
#' @export
ga_adwords <- function(accountId,
webPropertyId,
webPropertyAdWordsLinkId){
url <- "https://www.googleapis.com/analytics/v3/management/"
adwords <- gar_api_generator(url,
"GET",
path_args = list(
accounts = accountId,
webproperties = webPropertyId,
entityAdWordsLinks = webPropertyAdWordsLinkId
),
data_parse_function = function(x) x)
adwords()
}
#' List AdWords
#'
#' @param accountId Account Id
#' @param webPropertyId Web Property Id
#'
#' @return AdWords Links
#' @importFrom googleAuthR gar_api_generator
#' @family managementAPI functions
#' @export
ga_adwords_list <- function(accountId,
webPropertyId){
url <- "https://www.googleapis.com/analytics/v3/management/"
adwords <- gar_api_generator(url,
"GET",
path_args = list(
accounts = accountId,
webproperties = webPropertyId,
entityAdWordsLinks = ""
),
data_parse_function = function(x) x)
adwords()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.