Tag Manager API . accounts . containers . folders

Instance Methods

entities()

Returns the entities Resource.

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

Creates a GTM Folder.

delete(accountId, containerId, folderId, x__xgafv=None)

Deletes a GTM Folder.

get(accountId, containerId, folderId, x__xgafv=None)

Gets a GTM Folder.

list(accountId, containerId, x__xgafv=None)

Lists all GTM Folders of a Container.

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

Updates a GTM Folder.

Method Details

create(accountId, containerId, body=None, x__xgafv=None)
Creates a GTM Folder.

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 Folder.
    "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
    "containerId": "A String", # GTM Container ID.
    "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
        # This value is recomputed whenever the folder is modified.
    "name": "A String", # Folder display name.
        # @mutable tagmanager.accounts.containers.folders.create
        # @mutable tagmanager.accounts.containers.folders.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 Folder.
      "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
      "containerId": "A String", # GTM Container ID.
      "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
          # This value is recomputed whenever the folder is modified.
      "name": "A String", # Folder display name.
          # @mutable tagmanager.accounts.containers.folders.create
          # @mutable tagmanager.accounts.containers.folders.update
      "accountId": "A String", # GTM Account ID.
    }
delete(accountId, containerId, folderId, x__xgafv=None)
Deletes a GTM Folder.

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

Args:
  accountId: string, The GTM Account ID. (required)
  containerId: string, The GTM Container ID. (required)
  folderId: string, The GTM Folder 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 Folder.
      "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
      "containerId": "A String", # GTM Container ID.
      "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
          # This value is recomputed whenever the folder is modified.
      "name": "A String", # Folder display name.
          # @mutable tagmanager.accounts.containers.folders.create
          # @mutable tagmanager.accounts.containers.folders.update
      "accountId": "A String", # GTM Account ID.
    }
list(accountId, containerId, x__xgafv=None)
Lists all GTM Folders of 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:

    { # List Folders Response.
    "folders": [ # All GTM Folders of a GTM Container.
      { # Represents a Google Tag Manager Folder.
          "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
          "containerId": "A String", # GTM Container ID.
          "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
              # This value is recomputed whenever the folder is modified.
          "name": "A String", # Folder display name.
              # @mutable tagmanager.accounts.containers.folders.create
              # @mutable tagmanager.accounts.containers.folders.update
          "accountId": "A String", # GTM Account ID.
        },
    ],
  }
update(accountId, containerId, folderId, body=None, fingerprint=None, x__xgafv=None)
Updates a GTM Folder.

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

{ # Represents a Google Tag Manager Folder.
    "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
    "containerId": "A String", # GTM Container ID.
    "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
        # This value is recomputed whenever the folder is modified.
    "name": "A String", # Folder display name.
        # @mutable tagmanager.accounts.containers.folders.create
        # @mutable tagmanager.accounts.containers.folders.update
    "accountId": "A String", # GTM Account ID.
  }

  fingerprint: string, When provided, this fingerprint must match the fingerprint of the folder 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 Folder.
      "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
      "containerId": "A String", # GTM Container ID.
      "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
          # This value is recomputed whenever the folder is modified.
      "name": "A String", # Folder display name.
          # @mutable tagmanager.accounts.containers.folders.create
          # @mutable tagmanager.accounts.containers.folders.update
      "accountId": "A String", # GTM Account ID.
    }