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 ( |
Fields | |
---|---|
path |
GTM Custom Template's API relative path. |
accountId |
GTM Account ID. |
containerId |
GTM Container ID. |
workspaceId |
GTM Workspace ID. |
templateId |
The Custom Template ID uniquely identifies the GTM custom template. |
name |
Custom Template display name. |
fingerprint |
The fingerprint of the GTM Custom Template as computed at storage time. This value is recomputed whenever the template is modified. |
tagManagerUrl |
Auto generated link to the tag manager UI |
templateData |
The custom template in text format. |
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 |
The name of the host for the community gallery template. |
owner |
The name of the owner for the community gallery template. |
repository |
The name of the repository for the community gallery template. |
version |
The version of the community gallery template. |
isModified |
If a user has manually edited the community gallery template. |
signature |
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 |
The developer id of the community gallery template. This value is set whenever the template is created from the gallery. |
galleryTemplateId |
ID for the gallery template that is generated once during first sync and travels with the template redirects. |
Methods |
|
---|---|
|
Creates a GTM Custom Template. |
|
Deletes a GTM Template. |
|
Gets a GTM Template. |
|
Imports a GTM Custom Template from Gallery. |
|
Lists all GTM Templates of a GTM container workspace. |
|
Reverts changes to a GTM Template in a GTM Workspace. |
|
Updates a GTM Template. |