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.

close()

Close httplib2 connections.

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

close()
Close httplib2 connections.
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.
  "accountId": "A String", # GTM Account 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",
  ],
  "enabledBuiltInVariable": [ # List of enabled built-in variables. Valid values include: 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. @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.
  "name": "A String", # Container display name. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "notes": "A String", # Container Notes. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "publicId": "A String", # Container Public ID.
  "timeZoneCountryId": "A String", # Container Country ID. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "timeZoneId": "A String", # Container Time Zone ID. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "usageContext": [ # List of Usage Contexts for the Container. Valid values include: web, android, ios. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
    "A String",
  ],
}

  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.
  "accountId": "A String", # GTM Account 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",
  ],
  "enabledBuiltInVariable": [ # List of enabled built-in variables. Valid values include: 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. @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.
  "name": "A String", # Container display name. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "notes": "A String", # Container Notes. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "publicId": "A String", # Container Public ID.
  "timeZoneCountryId": "A String", # Container Country ID. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "timeZoneId": "A String", # Container Time Zone ID. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "usageContext": [ # List of Usage Contexts for the Container. Valid values include: web, android, ios. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
    "A String",
  ],
}
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.
  "accountId": "A String", # GTM Account 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",
  ],
  "enabledBuiltInVariable": [ # List of enabled built-in variables. Valid values include: 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. @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.
  "name": "A String", # Container display name. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "notes": "A String", # Container Notes. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "publicId": "A String", # Container Public ID.
  "timeZoneCountryId": "A String", # Container Country ID. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "timeZoneId": "A String", # Container Time Zone ID. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "usageContext": [ # List of Usage Contexts for the Container. Valid values include: web, android, ios. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
    "A String",
  ],
}
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.
      "accountId": "A String", # GTM Account 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",
      ],
      "enabledBuiltInVariable": [ # List of enabled built-in variables. Valid values include: 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. @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.
      "name": "A String", # Container display name. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
      "notes": "A String", # Container Notes. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
      "publicId": "A String", # Container Public ID.
      "timeZoneCountryId": "A String", # Container Country ID. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
      "timeZoneId": "A String", # Container Time Zone ID. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
      "usageContext": [ # List of Usage Contexts for the Container. Valid values include: web, android, ios. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
        "A String",
      ],
    },
  ],
}
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.
  "accountId": "A String", # GTM Account 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",
  ],
  "enabledBuiltInVariable": [ # List of enabled built-in variables. Valid values include: 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. @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.
  "name": "A String", # Container display name. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "notes": "A String", # Container Notes. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "publicId": "A String", # Container Public ID.
  "timeZoneCountryId": "A String", # Container Country ID. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "timeZoneId": "A String", # Container Time Zone ID. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "usageContext": [ # List of Usage Contexts for the Container. Valid values include: web, android, ios. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
    "A String",
  ],
}

  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.
  "accountId": "A String", # GTM Account 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",
  ],
  "enabledBuiltInVariable": [ # List of enabled built-in variables. Valid values include: 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. @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.
  "name": "A String", # Container display name. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "notes": "A String", # Container Notes. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "publicId": "A String", # Container Public ID.
  "timeZoneCountryId": "A String", # Container Country ID. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "timeZoneId": "A String", # Container Time Zone ID. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
  "usageContext": [ # List of Usage Contexts for the Container. Valid values include: web, android, ios. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
    "A String",
  ],
}