Returns the environments Resource.
Returns the folders Resource.
Returns the move_folders Resource.
Returns the reauthorize_environments Resource.
Returns the tags Resource.
Returns the triggers Resource.
Returns the variables Resource.
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.
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.
"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",
],
"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",
],
"containerId": "A String", # The Container ID uniquely identifies the GTM Container.
"timeZoneId": "A String", # Container Time Zone ID.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"publicId": "A String", # Container Public ID.
"notes": "A String", # Container Notes.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"fingerprint": "A String", # The fingerprint of the GTM Container as computed at storage time. This
# value is recomputed whenever the account is modified.
"domainName": [ # Optional list of domain names associated with the Container.
# @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
"name": "A String", # Container display name.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"accountId": "A String", # GTM Account ID.
}
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.
"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",
],
"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",
],
"containerId": "A String", # The Container ID uniquely identifies the GTM Container.
"timeZoneId": "A String", # Container Time Zone ID.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"publicId": "A String", # Container Public ID.
"notes": "A String", # Container Notes.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"fingerprint": "A String", # The fingerprint of the GTM Container as computed at storage time. This
# value is recomputed whenever the account is modified.
"domainName": [ # Optional list of domain names associated with the Container.
# @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
"name": "A String", # Container display name.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"accountId": "A String", # GTM Account ID.
}
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.
"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",
],
"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",
],
"containerId": "A String", # The Container ID uniquely identifies the GTM Container.
"timeZoneId": "A String", # Container Time Zone ID.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"publicId": "A String", # Container Public ID.
"notes": "A String", # Container Notes.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"fingerprint": "A String", # The fingerprint of the GTM Container as computed at storage time. This
# value is recomputed whenever the account is modified.
"domainName": [ # Optional list of domain names associated with the Container.
# @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
"name": "A String", # Container display name.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"accountId": "A String", # GTM Account ID.
}
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.
"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",
],
"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",
],
"containerId": "A String", # The Container ID uniquely identifies the GTM Container.
"timeZoneId": "A String", # Container Time Zone ID.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"publicId": "A String", # Container Public ID.
"notes": "A String", # Container Notes.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"fingerprint": "A String", # The fingerprint of the GTM Container as computed at storage time. This
# value is recomputed whenever the account is modified.
"domainName": [ # Optional list of domain names associated with the Container.
# @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
"name": "A String", # Container display name.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"accountId": "A String", # GTM Account ID.
},
],
}
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.
"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",
],
"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",
],
"containerId": "A String", # The Container ID uniquely identifies the GTM Container.
"timeZoneId": "A String", # Container Time Zone ID.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"publicId": "A String", # Container Public ID.
"notes": "A String", # Container Notes.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"fingerprint": "A String", # The fingerprint of the GTM Container as computed at storage time. This
# value is recomputed whenever the account is modified.
"domainName": [ # Optional list of domain names associated with the Container.
# @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
"name": "A String", # Container display name.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"accountId": "A String", # GTM Account ID.
}
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.
"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",
],
"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",
],
"containerId": "A String", # The Container ID uniquely identifies the GTM Container.
"timeZoneId": "A String", # Container Time Zone ID.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"publicId": "A String", # Container Public ID.
"notes": "A String", # Container Notes.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"fingerprint": "A String", # The fingerprint of the GTM Container as computed at storage time. This
# value is recomputed whenever the account is modified.
"domainName": [ # Optional list of domain names associated with the Container.
# @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
"name": "A String", # Container display name.
# @mutable tagmanager.accounts.containers.create
# @mutable tagmanager.accounts.containers.update
"accountId": "A String", # GTM Account ID.
}