This creates a new container in the specified account.
gtm_containers_create(
account_id,
name,
type = c("web", "iosSdk5", "androidSdk5", "amp"),
domain_name = NULL,
notes = NULL
)
Account Id
Container Name
Container Use Type
List of domain names associated with the Container.
Container Notes.
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()
# 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