gtm_environments_reauthorize: Reauthorise an existing GTM environment

View source: R/environments.R

gtm_environments_reauthorizeR Documentation

Reauthorise an existing GTM environment

Description

This reauthorises an existing GTM environment, generating a new authrorisation Id. This is used to invalidate any existing preview GTM shared preview links and any installations of the environment. You will need to update any snippets on your site with the new authorisation Id afterwards.

Usage

gtm_environments_reauthorize(
  account_id,
  container_id,
  environment_id,
  environment
)

Arguments

account_id

Account Id

container_id

Container Id

environment_id

Environment Id

environment

An Environment object - If you don't have one, one will be generated for you.

See Also

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

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

Examples

## Not run: 

accountId <- 1234567
containerId <- 7654321
environmentId <- 4

env <- gtm_environments_reauthorize(accountId, containerId, enviromentId)


## End(Not run)


jamescottrill/googleTagManageR documentation built on April 21, 2022, 5:40 p.m.