Tag Manager API . accounts

Instance Methods

containers()

Returns the containers Resource.

permissions()

Returns the permissions Resource.

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

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.
    "shareData": True or False, # Whether the account shares data anonymously with Google and others.
        # @mutable tagmanager.accounts.create
        # @mutable tagmanager.accounts.update
    "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
    "accountId": "A String", # The Account ID uniquely identifies the GTM Account.
  }
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.
        "shareData": True or False, # Whether the account shares data anonymously with Google and others.
            # @mutable tagmanager.accounts.create
            # @mutable tagmanager.accounts.update
        "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
        "accountId": "A String", # The Account ID uniquely identifies the GTM Account.
      },
    ],
  }
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.
  "shareData": True or False, # Whether the account shares data anonymously with Google and others.
      # @mutable tagmanager.accounts.create
      # @mutable tagmanager.accounts.update
  "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
  "accountId": "A String", # The Account ID uniquely identifies the GTM Account.
}

  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.
    "shareData": True or False, # Whether the account shares data anonymously with Google and others.
        # @mutable tagmanager.accounts.create
        # @mutable tagmanager.accounts.update
    "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
    "accountId": "A String", # The Account ID uniquely identifies the GTM Account.
  }