Resource: ContainerVersion
Represents a Google Tag Manager Container Version.
JSON representation |
---|
{ "accountId": string, "containerId": string, "containerVersionId": string, "name": string, "deleted": boolean, "notes": string, "container": { object ( |
Fields | |
---|---|
accountId |
GTM Account ID. |
containerId |
GTM Container ID. |
containerVersionId |
The Container Version ID uniquely identifies the GTM Container Version. |
name |
Container version display name. |
deleted |
A value of true indicates this container version has been deleted. |
notes |
User notes on how to apply this container version in the container. |
container |
The container that this version was taken from. |
macro[] |
The macros in the container that this version was taken from. |
rule[] |
The rules in the container that this version was taken from. |
tag[] |
The tags in the container that this version was taken from. |
trigger[] |
The triggers in the container that this version was taken from. |
variable[] |
The variables in the container that this version was taken from. |
folder[] |
The folders in the container that this version was taken from. |
fingerprint |
The fingerprint of the GTM Container Version as computed at storage time. This value is recomputed whenever the container version is modified. |
Macro
Represents a Google Tag Manager Macro.
JSON representation |
---|
{
"accountId": string,
"containerId": string,
"macroId": string,
"name": string,
"type": string,
"notes": string,
"scheduleStartMs": string,
"scheduleEndMs": string,
"parameter": [
{
object ( |
Fields | |
---|---|
accountId |
GTM Account ID. |
containerId |
GTM Container ID. |
macroId |
The Macro ID uniquely identifies the GTM Macro. |
name |
Macro display name. |
type |
GTM Macro Type. |
notes |
User notes on how to apply this macro in the container. |
scheduleStartMs |
The start timestamp in milliseconds to schedule a macro. |
scheduleEndMs |
The end timestamp in milliseconds to schedule a macro. |
parameter[] |
The macro's parameters. |
enablingRuleId[] |
For mobile containers only: A list of rule IDs for enabling conditional macros; the macro is enabled if one of the enabling rules is true while all the disabling rules are false. Treated as an unordered set. |
disablingRuleId[] |
For mobile containers only: A list of rule IDs for disabling conditional macros; the macro is enabled if one of the enabling rules is true while all the disabling rules are false. Treated as an unordered set. |
fingerprint |
The fingerprint of the GTM Macro as computed at storage time. This value is recomputed whenever the macro is modified. |
parentFolderId |
Parent folder id. |
Rule
Represents a Google Tag Manager Rule.
JSON representation |
---|
{
"accountId": string,
"containerId": string,
"ruleId": string,
"name": string,
"notes": string,
"condition": [
{
object ( |
Fields | |
---|---|
accountId |
GTM Account ID. |
containerId |
GTM Container ID. |
ruleId |
The Rule ID uniquely identifies the GTM Rule. |
name |
Rule display name. |
notes |
User notes on how to apply this rule in the container. |
condition[] |
The list of conditions that make up this rule (implicit AND between them). |
fingerprint |
The fingerprint of the GTM Rule as computed at storage time. This value is recomputed whenever the rule is modified. |
Methods |
|
---|---|
|
Creates a Container Version. |
|
Deletes a Container Version. |
|
Gets a Container Version. |
|
Lists all Container Versions of a GTM Container. |
|
Publishes a Container Version. |
|
Restores a Container Version. |
|
Undeletes a Container Version. |
|
Updates a Container Version. |