REST Resource: accounts.containers

Resource: Container

Represents a Google Tag Manager Container, which specifies the platform tags will run on, manages workspaces, and retains container versions.

JSON representation
{
  "path": string,
  "accountId": string,
  "containerId": string,
  "name": string,
  "domainName": [
    string
  ],
  "publicId": string,
  "tagIds": [
    string
  ],
  "features": {
    object (Features)
  },
  "notes": string,
  "usageContext": [
    enum (UsageContext)
  ],
  "fingerprint": string,
  "tagManagerUrl": string,
  "taggingServerUrls": [
    string
  ]
}
Fields
path

string

GTM Container's API relative path.

accountId

string

GTM Account ID.

containerId

string

The Container ID uniquely identifies the GTM Container.

name

string

Container display name.

domainName[]

string

List of domain names associated with the Container.

publicId

string

Container Public ID.

tagIds[]

string

All Tag IDs that refer to this Container.

features

object (Features)

Read-only Container feature set.

notes

string

Container Notes.

usageContext[]

enum (UsageContext)

List of Usage Contexts for the Container. Valid values include:

web, android, or ios

.

fingerprint

string

The fingerprint of the GTM Container as computed at storage time. This value is recomputed whenever the account is modified.

tagManagerUrl

string

Auto generated link to the tag manager UI

taggingServerUrls[]

string

List of server-side container URLs for the Container. If multiple URLs are provided, all URL paths must match.

Features

JSON representation
{
  "supportUserPermissions": boolean,
  "supportEnvironments": boolean,
  "supportWorkspaces": boolean,
  "supportGtagConfigs": boolean,
  "supportBuiltInVariables": boolean,
  "supportClients": boolean,
  "supportFolders": boolean,
  "supportTags": boolean,
  "supportTemplates": boolean,
  "supportTriggers": boolean,
  "supportVariables": boolean,
  "supportVersions": boolean,
  "supportZones": boolean,
  "supportTransformations": boolean
}
Fields
supportUserPermissions

boolean

Whether this Container supports user permissions managed by GTM.

supportEnvironments

boolean

Whether this Container supports environments.

supportWorkspaces

boolean

Whether this Container supports workspaces.

supportGtagConfigs

boolean

Whether this Container supports Google tag config.

supportBuiltInVariables

boolean

Whether this Container supports built-in variables

supportClients

boolean

Whether this Container supports clients.

supportFolders

boolean

Whether this Container supports folders.

supportTags

boolean

Whether this Container supports tags.

supportTemplates

boolean

Whether this Container supports templates.

supportTriggers

boolean

Whether this Container supports triggers.

supportVariables

boolean

Whether this Container supports variables.

supportVersions

boolean

Whether this Container supports Container versions.

supportZones

boolean

Whether this Container supports zones.

supportTransformations

boolean

Whether this Container supports transformations.

UsageContext

Enums
usageContextUnspecified
web
android
ios
androidSdk5
iosSdk5
amp
server

Methods

combine

Combines Containers.

create

Creates a Container.

delete

Deletes a Container.

get

Gets a Container.

list

Lists all Containers that belongs to a GTM Account.

lookup

Looks up a Container by destination ID or tag ID.

move_tag_id

Move Tag ID out of a Container.

snippet

Gets the tagging snippet for a Container.

update

Updates a Container.