gtm_zones_create {googleTagManageR} | R 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
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)
[Package googleTagManageR version 0.2.0 Index]