powered by
This updates a GTM Container. Although you can't change the type of container, it is still required for this function to work.
gtm_containers_update( account_id, container_id, name, type = c("amp", "androidSdk5", "iosSdk5", "web"), domain_name = "", notes = "" )
Account Id
Container 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/update
Other container functions: gtm_containers_create(), gtm_containers_delete(), gtm_containers_get(), gtm_containers_list()
gtm_containers_create()
gtm_containers_delete()
gtm_containers_get()
gtm_containers_list()
# NOT RUN { accountId <- 1234567 containerId <- 7654321 containers <- gtm_containers_update(accountId, containerId, 'New Container Name', 'amp') # } # NOT RUN { # }
Run the code above in your browser using DataLab