gtm_zones_create: Create a new zone

View source: R/zones.R

gtm_zones_createR Documentation

Create a new zone

Description

This takes a zone resource and creates a new zone in GTM.

Usage

gtm_zones_create(account_id, container_id, workspace_id, zone_object)

Arguments

account_id

Account Id

container_id

Container Id

workspace_id

Workspace Id

zone_object

Zone Object

See Also

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

Other zone functions: gtm_zones_delete(), gtm_zones_get(), gtm_zones_list(), gtm_zones_revert(), gtm_zones_update()

Examples

## Not run: 
accountId <- 1234567
containerId <- 7654321
workspaceId <- 10


 
zone <- list(
    accountId=accountId,
    containerId=containerId,
    workspaceId=workspaceId,
    name="Marketing Zone",
    childContainer=list(
      list(
        publicId="GTM-ABCDEF",
        nickname="My Marketing Container"
     )
   )
)
 
new_zone <- gtm_zones_create(accountId, containerId, workspaceId, zone)
 

## End(Not run)

googleTagManageR documentation built on April 17, 2022, 1:05 a.m.