Templates

For a list of methods for this resource, see the end of this page.

Resource representations

Represents a Google Tag Manager Custom Template's contents.

{
  "path": string,
  "accountId": string,
  "containerId": string,
  "workspaceId": string,
  "templateId": string,
  "name": string,
  "fingerprint": string,
  "tagManagerUrl": string,
  "templateData": string,
  "galleryReference": {
    "host": string,
    "owner": string,
    "repository": string,
    "version": string,
    "isModified": boolean,
    "signature": string
  }
}
Property name Value Description Notes
accountId string GTM Account ID.
containerId string GTM Container ID.
fingerprint string The fingerprint of the GTM Custom Template as computed at storage time. This value is recomputed whenever the template is modified.
galleryReference nested object A reference to the Community Template Gallery entry.
galleryReference.host string The name of the host for the community gallery template.
galleryReference.isModified boolean If a user has manually edited the community gallery template.
galleryReference.owner string The name of the owner for the community gallery template.
galleryReference.repository string The name of the repository for the community gallery template.
galleryReference.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.
galleryReference.version string The version of the community gallery template.
name string Custom Template display name.
path string GTM Custom Template's API relative path.
tagManagerUrl string Auto generated link to the tag manager UI
templateData string The custom template in text format.
templateId string The Custom Template ID uniquely identifies the GTM custom template.
workspaceId string GTM Workspace ID.

Methods

create
Creates a GTM Custom Template.
delete
Deletes a GTM Template.
get
Gets a GTM Template.
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.