Tag Manager API . accounts . containers

Instance Methods

environments()

Returns the environments Resource.

folders()

Returns the folders Resource.

move_folders()

Returns the move_folders Resource.

reauthorize_environments()

Returns the reauthorize_environments Resource.

tags()

Returns the tags Resource.

triggers()

Returns the triggers Resource.

variables()

Returns the variables Resource.

versions()

Returns the versions Resource.

create(accountId, body=None, x__xgafv=None)

Creates a Container.

delete(accountId, containerId, x__xgafv=None)

Deletes a Container.

get(accountId, containerId, x__xgafv=None)

Gets a Container.

list(accountId, x__xgafv=None)

Lists all Containers that belongs to a GTM Account.

update(accountId, containerId, body=None, fingerprint=None, x__xgafv=None)

Updates a Container.

Method Details

create(accountId, body=None, x__xgafv=None)
Creates a Container.

Args:
  accountId: string, The GTM Account ID. (required)
  body: object, The request body.
    The object takes the form of:

{ # Represents a Google Tag Manager Container.
    "timeZoneId": "A String", # Container Time Zone ID.
        # @mutable tagmanager.accounts.containers.create
        # @mutable tagmanager.accounts.containers.update
    "enabledBuiltInVariable": [ # List of enabled built-in variables. Valid values include: <code>pageUrl,
        # pageHostname, pagePath, referrer, event, clickElement, clickClasses,
        # clickId, clickTarget, clickUrl, clickText, formElement, formClasses,
        # formId, formTarget, formUrl, formText, errorMessage, errorUrl, errorLine,
        # newHistoryFragment, oldHistoryFragment, newHistoryState, oldHistoryState,
        # historySource, containerVersion, debugMode, randomNumber,
        # containerId</code>.
        # @mutable tagmanager.accounts.containers.create
        # @mutable tagmanager.accounts.containers.update
      "A String",
    ],
    "timeZoneCountryId": "A String", # Container Country ID.
        # @mutable tagmanager.accounts.containers.create
        # @mutable tagmanager.accounts.containers.update
    "publicId": "A String", # Container Public ID.
    "containerId": "A String", # The Container ID uniquely identifies the GTM Container.
    "domainName": [ # Optional list of domain names associated with the Container.
        # @mutable tagmanager.accounts.containers.create
        # @mutable tagmanager.accounts.containers.update
      "A String",
    ],
    "notes": "A String", # Container Notes.
        # @mutable tagmanager.accounts.containers.create
        # @mutable tagmanager.accounts.containers.update
    "usageContext": [ # List of Usage Contexts for the Container. Valid values include: <code>web,
        # android, ios</code>.
        # @mutable tagmanager.accounts.containers.create
        # @mutable tagmanager.accounts.containers.update
      "A String",
    ],
    "fingerprint": "A String", # The fingerprint of the GTM Container as computed at storage time.  This
        # value is recomputed whenever the account is modified.
    "accountId": "A String", # GTM Account ID.
    "name": "A String", # Container display name.
        # @mutable tagmanager.accounts.containers.create
        # @mutable tagmanager.accounts.containers.update
  }

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Represents a Google Tag Manager Container.
      "timeZoneId": "A String", # Container Time Zone ID.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
      "enabledBuiltInVariable": [ # List of enabled built-in variables. Valid values include: <code>pageUrl,
          # pageHostname, pagePath, referrer, event, clickElement, clickClasses,
          # clickId, clickTarget, clickUrl, clickText, formElement, formClasses,
          # formId, formTarget, formUrl, formText, errorMessage, errorUrl, errorLine,
          # newHistoryFragment, oldHistoryFragment, newHistoryState, oldHistoryState,
          # historySource, containerVersion, debugMode, randomNumber,
          # containerId</code>.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
        "A String",
      ],
      "timeZoneCountryId": "A String", # Container Country ID.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
      "publicId": "A String", # Container Public ID.
      "containerId": "A String", # The Container ID uniquely identifies the GTM Container.
      "domainName": [ # Optional list of domain names associated with the Container.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
        "A String",
      ],
      "notes": "A String", # Container Notes.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
      "usageContext": [ # List of Usage Contexts for the Container. Valid values include: <code>web,
          # android, ios</code>.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
        "A String",
      ],
      "fingerprint": "A String", # The fingerprint of the GTM Container as computed at storage time.  This
          # value is recomputed whenever the account is modified.
      "accountId": "A String", # GTM Account ID.
      "name": "A String", # Container display name.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
    }
delete(accountId, containerId, x__xgafv=None)
Deletes a Container.

Args:
  accountId: string, The GTM Account ID. (required)
  containerId: string, The GTM Container ID. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
get(accountId, containerId, x__xgafv=None)
Gets a Container.

Args:
  accountId: string, The GTM Account ID. (required)
  containerId: string, The GTM Container ID. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Represents a Google Tag Manager Container.
      "timeZoneId": "A String", # Container Time Zone ID.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
      "enabledBuiltInVariable": [ # List of enabled built-in variables. Valid values include: <code>pageUrl,
          # pageHostname, pagePath, referrer, event, clickElement, clickClasses,
          # clickId, clickTarget, clickUrl, clickText, formElement, formClasses,
          # formId, formTarget, formUrl, formText, errorMessage, errorUrl, errorLine,
          # newHistoryFragment, oldHistoryFragment, newHistoryState, oldHistoryState,
          # historySource, containerVersion, debugMode, randomNumber,
          # containerId</code>.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
        "A String",
      ],
      "timeZoneCountryId": "A String", # Container Country ID.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
      "publicId": "A String", # Container Public ID.
      "containerId": "A String", # The Container ID uniquely identifies the GTM Container.
      "domainName": [ # Optional list of domain names associated with the Container.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
        "A String",
      ],
      "notes": "A String", # Container Notes.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
      "usageContext": [ # List of Usage Contexts for the Container. Valid values include: <code>web,
          # android, ios</code>.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
        "A String",
      ],
      "fingerprint": "A String", # The fingerprint of the GTM Container as computed at storage time.  This
          # value is recomputed whenever the account is modified.
      "accountId": "A String", # GTM Account ID.
      "name": "A String", # Container display name.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
    }
list(accountId, x__xgafv=None)
Lists all Containers that belongs to a GTM Account.

Args:
  accountId: string, The GTM Account ID. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # List Containers Response.
    "containers": [ # All Containers of a GTM Account.
      { # Represents a Google Tag Manager Container.
          "timeZoneId": "A String", # Container Time Zone ID.
              # @mutable tagmanager.accounts.containers.create
              # @mutable tagmanager.accounts.containers.update
          "enabledBuiltInVariable": [ # List of enabled built-in variables. Valid values include: <code>pageUrl,
              # pageHostname, pagePath, referrer, event, clickElement, clickClasses,
              # clickId, clickTarget, clickUrl, clickText, formElement, formClasses,
              # formId, formTarget, formUrl, formText, errorMessage, errorUrl, errorLine,
              # newHistoryFragment, oldHistoryFragment, newHistoryState, oldHistoryState,
              # historySource, containerVersion, debugMode, randomNumber,
              # containerId</code>.
              # @mutable tagmanager.accounts.containers.create
              # @mutable tagmanager.accounts.containers.update
            "A String",
          ],
          "timeZoneCountryId": "A String", # Container Country ID.
              # @mutable tagmanager.accounts.containers.create
              # @mutable tagmanager.accounts.containers.update
          "publicId": "A String", # Container Public ID.
          "containerId": "A String", # The Container ID uniquely identifies the GTM Container.
          "domainName": [ # Optional list of domain names associated with the Container.
              # @mutable tagmanager.accounts.containers.create
              # @mutable tagmanager.accounts.containers.update
            "A String",
          ],
          "notes": "A String", # Container Notes.
              # @mutable tagmanager.accounts.containers.create
              # @mutable tagmanager.accounts.containers.update
          "usageContext": [ # List of Usage Contexts for the Container. Valid values include: <code>web,
              # android, ios</code>.
              # @mutable tagmanager.accounts.containers.create
              # @mutable tagmanager.accounts.containers.update
            "A String",
          ],
          "fingerprint": "A String", # The fingerprint of the GTM Container as computed at storage time.  This
              # value is recomputed whenever the account is modified.
          "accountId": "A String", # GTM Account ID.
          "name": "A String", # Container display name.
              # @mutable tagmanager.accounts.containers.create
              # @mutable tagmanager.accounts.containers.update
        },
    ],
  }
update(accountId, containerId, body=None, fingerprint=None, x__xgafv=None)
Updates a Container.

Args:
  accountId: string, The GTM Account ID. (required)
  containerId: string, The GTM Container ID. (required)
  body: object, The request body.
    The object takes the form of:

{ # Represents a Google Tag Manager Container.
    "timeZoneId": "A String", # Container Time Zone ID.
        # @mutable tagmanager.accounts.containers.create
        # @mutable tagmanager.accounts.containers.update
    "enabledBuiltInVariable": [ # List of enabled built-in variables. Valid values include: <code>pageUrl,
        # pageHostname, pagePath, referrer, event, clickElement, clickClasses,
        # clickId, clickTarget, clickUrl, clickText, formElement, formClasses,
        # formId, formTarget, formUrl, formText, errorMessage, errorUrl, errorLine,
        # newHistoryFragment, oldHistoryFragment, newHistoryState, oldHistoryState,
        # historySource, containerVersion, debugMode, randomNumber,
        # containerId</code>.
        # @mutable tagmanager.accounts.containers.create
        # @mutable tagmanager.accounts.containers.update
      "A String",
    ],
    "timeZoneCountryId": "A String", # Container Country ID.
        # @mutable tagmanager.accounts.containers.create
        # @mutable tagmanager.accounts.containers.update
    "publicId": "A String", # Container Public ID.
    "containerId": "A String", # The Container ID uniquely identifies the GTM Container.
    "domainName": [ # Optional list of domain names associated with the Container.
        # @mutable tagmanager.accounts.containers.create
        # @mutable tagmanager.accounts.containers.update
      "A String",
    ],
    "notes": "A String", # Container Notes.
        # @mutable tagmanager.accounts.containers.create
        # @mutable tagmanager.accounts.containers.update
    "usageContext": [ # List of Usage Contexts for the Container. Valid values include: <code>web,
        # android, ios</code>.
        # @mutable tagmanager.accounts.containers.create
        # @mutable tagmanager.accounts.containers.update
      "A String",
    ],
    "fingerprint": "A String", # The fingerprint of the GTM Container as computed at storage time.  This
        # value is recomputed whenever the account is modified.
    "accountId": "A String", # GTM Account ID.
    "name": "A String", # Container display name.
        # @mutable tagmanager.accounts.containers.create
        # @mutable tagmanager.accounts.containers.update
  }

  fingerprint: string, When provided, this fingerprint must match the fingerprint of the
container in storage.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Represents a Google Tag Manager Container.
      "timeZoneId": "A String", # Container Time Zone ID.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
      "enabledBuiltInVariable": [ # List of enabled built-in variables. Valid values include: <code>pageUrl,
          # pageHostname, pagePath, referrer, event, clickElement, clickClasses,
          # clickId, clickTarget, clickUrl, clickText, formElement, formClasses,
          # formId, formTarget, formUrl, formText, errorMessage, errorUrl, errorLine,
          # newHistoryFragment, oldHistoryFragment, newHistoryState, oldHistoryState,
          # historySource, containerVersion, debugMode, randomNumber,
          # containerId</code>.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
        "A String",
      ],
      "timeZoneCountryId": "A String", # Container Country ID.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
      "publicId": "A String", # Container Public ID.
      "containerId": "A String", # The Container ID uniquely identifies the GTM Container.
      "domainName": [ # Optional list of domain names associated with the Container.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
        "A String",
      ],
      "notes": "A String", # Container Notes.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
      "usageContext": [ # List of Usage Contexts for the Container. Valid values include: <code>web,
          # android, ios</code>.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
        "A String",
      ],
      "fingerprint": "A String", # The fingerprint of the GTM Container as computed at storage time.  This
          # value is recomputed whenever the account is modified.
      "accountId": "A String", # GTM Account ID.
      "name": "A String", # Container display name.
          # @mutable tagmanager.accounts.containers.create
          # @mutable tagmanager.accounts.containers.update
    }