Learn R Programming

googleTagManageR (version 0.1.6)

gtm_environments_update: Update an environment

Description

This updates a GTM environment

Usage

gtm_environments_update(
  account_id,
  container_id,
  environment_id,
  name,
  description = NULL,
  debug = c("TRUE", "FALSE"),
  url = NULL
)

Arguments

account_id

Account Id

container_id

Container Id

environment_id

Environment Id

name

The environment display name. Can be set or changed only on USER type environments.

description

The environment description. Can be set or changed only on USER type environments.

debug

Whether or not to enable debug by default for the environment.

url

Default preview page url for the environment.

See Also

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

Other environment functions: gtm_environments_create(), gtm_environments_delete(), gtm_environments_get(), gtm_environments_list(), gtm_environments_reauthorize()

Examples

Run this code
# NOT RUN {
accountId <- 1234567
containerId <- 7654321

gtm_environments_update(accountId, containerId, "Pre-Prod", url="https://new-pp.example.com")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab