REST Resource: accounts.containers.workspaces.templates

Resource: CustomTemplate

Represents a Google Tag Manager Custom Template's contents.

JSON representation
{
  "path": string,
  "accountId": string,
  "containerId": string,
  "workspaceId": string,
  "templateId": string,
  "name": string,
  "fingerprint": string,
  "tagManagerUrl": string,
  "templateData": string,
  "galleryReference": {
    object (GalleryReference)
  }
}
Fields
path

string

GTM Custom Template's API relative path.

accountId

string

GTM Account ID.

containerId

string

GTM Container ID.

workspaceId

string

GTM Workspace ID.

templateId

string

The Custom Template ID uniquely identifies the GTM custom template.

name

string

Custom Template display name.

fingerprint

string

The fingerprint of the GTM Custom Template as computed at storage time. This value is recomputed whenever the template is modified.

tagManagerUrl

string

Auto generated link to the tag manager UI

templateData

string

The custom template in text format.

galleryReference

object (GalleryReference)

A reference to the Community Template Gallery entry.

GalleryReference

Represents the link between a custom template and an entry on the Community Template Gallery site.

JSON representation
{
  "host": string,
  "owner": string,
  "repository": string,
  "version": string,
  "isModified": boolean,
  "signature": string,
  "templateDeveloperId": string,
  "galleryTemplateId": string
}
Fields
host

string

The name of the host for the community gallery template.

owner

string

The name of the owner for the community gallery template.

repository

string

The name of the repository for the community gallery template.

version

string

The version of the community gallery template.

isModified

boolean

If a user has manually edited the community gallery template.

signature

string

The signature of the community gallery template as computed at import time. This value is recomputed whenever the template is updated from the gallery.

templateDeveloperId

string

The developer id of the community gallery template. This value is set whenever the template is created from the gallery.

galleryTemplateId

string

ID for the gallery template that is generated once during first sync and travels with the template redirects.

Methods

create

Creates a GTM Custom Template.

delete

Deletes a GTM Template.

get

Gets a GTM Template.
Imports a GTM Custom Template from Gallery.

list

Lists all GTM Templates of a GTM container workspace.

revert

Reverts changes to a GTM Template in a GTM Workspace.

update

Updates a GTM Template.