Learn R Programming

googleTagManageR (version 0.1.6)

gtm_containers_create: Creates a new container in an acount

Description

This creates a new container in the specified account.

Usage

gtm_containers_create(
  account_id,
  name,
  type = c("web", "iosSdk5", "androidSdk5", "amp"),
  domain_name = NULL,
  notes = NULL
)

Arguments

account_id

Account Id

name

Container Name

type

Container Use Type

domain_name

List of domain names associated with the Container.

notes

Container Notes.

See Also

https://developers.google.com/tag-manager/api/v2/reference/accounts/containers/create

Other container functions: gtm_containers_delete(), gtm_containers_get(), gtm_containers_list(), gtm_containers_update()

Examples

Run this code
# NOT RUN {
accountId <- 1234567
newName <- "My New Container"

container <- gtm_containers_create(accountId, newName, 'web')

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab