Tag Manager API . accounts

Instance Methods

containers()

Returns the containers Resource.

permissions()

Returns the permissions Resource.

close()

Close httplib2 connections.

get(accountId, x__xgafv=None)

Gets a GTM Account.

list(x__xgafv=None)

Lists all GTM Accounts that a user has access to.

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

Updates a GTM Account.

Method Details

close()
Close httplib2 connections.
get(accountId, x__xgafv=None)
Gets 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:

    { # Represents a Google Tag Manager Account.
  "accountId": "A String", # The Account ID uniquely identifies the GTM Account.
  "fingerprint": "A String", # The fingerprint of the GTM Account as computed at storage time. This value is recomputed whenever the account is modified.
  "name": "A String", # Account display name. @mutable tagmanager.accounts.create @mutable tagmanager.accounts.update
  "shareData": True or False, # Whether the account shares data anonymously with Google and others. @mutable tagmanager.accounts.create @mutable tagmanager.accounts.update
}
list(x__xgafv=None)
Lists all GTM Accounts that a user has access to.

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

Returns:
  An object of the form:

    { # List Accounts Response.
  "accounts": [ # List of GTM Accounts that a user has access to.
    { # Represents a Google Tag Manager Account.
      "accountId": "A String", # The Account ID uniquely identifies the GTM Account.
      "fingerprint": "A String", # The fingerprint of the GTM Account as computed at storage time. This value is recomputed whenever the account is modified.
      "name": "A String", # Account display name. @mutable tagmanager.accounts.create @mutable tagmanager.accounts.update
      "shareData": True or False, # Whether the account shares data anonymously with Google and others. @mutable tagmanager.accounts.create @mutable tagmanager.accounts.update
    },
  ],
}
update(accountId, body=None, fingerprint=None, x__xgafv=None)
Updates a GTM Account.

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

{ # Represents a Google Tag Manager Account.
  "accountId": "A String", # The Account ID uniquely identifies the GTM Account.
  "fingerprint": "A String", # The fingerprint of the GTM Account as computed at storage time. This value is recomputed whenever the account is modified.
  "name": "A String", # Account display name. @mutable tagmanager.accounts.create @mutable tagmanager.accounts.update
  "shareData": True or False, # Whether the account shares data anonymously with Google and others. @mutable tagmanager.accounts.create @mutable tagmanager.accounts.update
}

  fingerprint: string, When provided, this fingerprint must match the fingerprint of the account 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 Account.
  "accountId": "A String", # The Account ID uniquely identifies the GTM Account.
  "fingerprint": "A String", # The fingerprint of the GTM Account as computed at storage time. This value is recomputed whenever the account is modified.
  "name": "A String", # Account display name. @mutable tagmanager.accounts.create @mutable tagmanager.accounts.update
  "shareData": True or False, # Whether the account shares data anonymously with Google and others. @mutable tagmanager.accounts.create @mutable tagmanager.accounts.update
}