REST Resource: accounts.containers.versions

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 (Container)
  },
  "macro": [
    {
      object (Macro)
    }
  ],
  "rule": [
    {
      object (Rule)
    }
  ],
  "tag": [
    {
      object (Tag)
    }
  ],
  "trigger": [
    {
      object (Trigger)
    }
  ],
  "variable": [
    {
      object (Variable)
    }
  ],
  "folder": [
    {
      object (Folder)
    }
  ],
  "fingerprint": string
}
Fields
accountId

string

GTM Account ID.

containerId

string

GTM Container ID.

containerVersionId

string

The Container Version ID uniquely identifies the GTM Container Version.

name

string

Container version display name.

deleted

boolean

A value of true indicates this container version has been deleted.

notes

string

User notes on how to apply this container version in the container.

container

object (Container)

The container that this version was taken from.

macro[]
(deprecated)

object (Macro)

The macros in the container that this version was taken from.

rule[]
(deprecated)

object (Rule)

The rules in the container that this version was taken from.

tag[]

object (Tag)

The tags in the container that this version was taken from.

trigger[]

object (Trigger)

The triggers in the container that this version was taken from.

variable[]

object (Variable)

The variables in the container that this version was taken from.

folder[]

object (Folder)

The folders in the container that this version was taken from.

fingerprint

string

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 (Parameter)
    }
  ],
  "enablingRuleId": [
    string
  ],
  "disablingRuleId": [
    string
  ],
  "fingerprint": string,
  "parentFolderId": string
}
Fields
accountId

string

GTM Account ID.

containerId

string

GTM Container ID.

macroId

string

The Macro ID uniquely identifies the GTM Macro.

name

string

Macro display name.

type

string

GTM Macro Type.

notes

string

User notes on how to apply this macro in the container.

scheduleStartMs

string (int64 format)

The start timestamp in milliseconds to schedule a macro.

scheduleEndMs

string (int64 format)

The end timestamp in milliseconds to schedule a macro.

parameter[]

object (Parameter)

The macro's parameters.

enablingRuleId[]

string

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[]

string

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

string

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

parentFolderId

string

Parent folder id.

Rule

Represents a Google Tag Manager Rule.

JSON representation
{
  "accountId": string,
  "containerId": string,
  "ruleId": string,
  "name": string,
  "notes": string,
  "condition": [
    {
      object (Condition)
    }
  ],
  "fingerprint": string
}
Fields
accountId

string

GTM Account ID.

containerId

string

GTM Container ID.

ruleId

string

The Rule ID uniquely identifies the GTM Rule.

name

string

Rule display name.

notes

string

User notes on how to apply this rule in the container.

condition[]

object (Condition)

The list of conditions that make up this rule (implicit AND between them).

fingerprint

string

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

Methods

create

Creates a Container Version.

delete

Deletes a Container Version.

get

Gets a Container Version.

list

Lists all Container Versions of a GTM Container.

publish

Publishes a Container Version.

restore

Restores a Container Version.

undelete

Undeletes a Container Version.

update

Updates a Container Version.