class AccountsContainers extends Resource (View source)

The "containers" collection of methods.

Typical usage is:

 $tagmanagerService = new Google\Service\TagManager(...);
 $containers = $tagmanagerService->accounts_containers;

Methods

combine(string $path, array $optParams = [])

Combines Containers. (containers.combine)

create(string $parent, Container $postBody, array $optParams = [])

Creates a Container. (containers.create)

delete(string $path, array $optParams = [])

Deletes a Container. (containers.delete)

get(string $path, array $optParams = [])

Gets a Container. (containers.get)

listAccountsContainers(string $parent, array $optParams = [])

Lists all Containers that belongs to a GTM Account.

lookup(array $optParams = [])

Looks up a Container by destination ID or tag ID. (containers.lookup)

move_tag_id(string $path, array $optParams = [])

Move Tag ID out of a Container. (containers.move_tag_id)

snippet(string $path, array $optParams = [])

Gets the tagging snippet for a Container. (containers.snippet)

update(string $path, Container $postBody, array $optParams = [])

Updates a Container. (containers.update)

Details

Container combine(string $path, array $optParams = [])

Combines Containers. (containers.combine)

Parameters

string $path

GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id}

array $optParams

Optional parameters.

Return Value

Container

Exceptions

Exception

Container create(string $parent, Container $postBody, array $optParams = [])

Creates a Container. (containers.create)

Parameters

string $parent

GTM Account's API relative path. Example: accounts/{account_id}.

Container $postBody
array $optParams

Optional parameters.

Return Value

Container

Exceptions

Exception

delete(string $path, array $optParams = [])

Deletes a Container. (containers.delete)

Parameters

string $path

GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id}

array $optParams

Optional parameters.

Exceptions

Exception

Container get(string $path, array $optParams = [])

Gets a Container. (containers.get)

Parameters

string $path

GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id}

array $optParams

Optional parameters.

Return Value

Container

Exceptions

Exception

ListContainersResponse listAccountsContainers(string $parent, array $optParams = [])

Lists all Containers that belongs to a GTM Account.

(containers.listAccountsContainers)

Parameters

string $parent

GTM Account's API relative path. Example: accounts/{account_id}.

array $optParams

Optional parameters.

Return Value

ListContainersResponse

Exceptions

Exception

Container lookup(array $optParams = [])

Looks up a Container by destination ID or tag ID. (containers.lookup)

Parameters

array $optParams

Optional parameters.

Return Value

Container

Exceptions

Exception

Container move_tag_id(string $path, array $optParams = [])

Move Tag ID out of a Container. (containers.move_tag_id)

Parameters

string $path

GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id}

array $optParams

Optional parameters.

Return Value

Container

Exceptions

Exception

GetContainerSnippetResponse snippet(string $path, array $optParams = [])

Gets the tagging snippet for a Container. (containers.snippet)

Parameters

string $path

Container snippet's API relative path. Example: accounts/{account_id}/containers/{container_id}:snippet

array $optParams

Optional parameters.

Return Value

GetContainerSnippetResponse

Exceptions

Exception

Container update(string $path, Container $postBody, array $optParams = [])

Updates a Container. (containers.update)

Parameters

string $path

GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id}

Container $postBody
array $optParams

Optional parameters.

Return Value

Container

Exceptions

Exception