class AccountsContainersWorkspacesTemplates extends Resource (View source)

The "templates" collection of methods.

Typical usage is:

 $tagmanagerService = new Google\Service\TagManager(...);
 $templates = $tagmanagerService->accounts_containers_workspaces_templates;

Methods

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

Creates a GTM Custom Template. (templates.create)

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

Deletes a GTM Template. (templates.delete)

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

Gets a GTM Template. (templates.get)

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

Lists all GTM Templates of a GTM container workspace.

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

Reverts changes to a GTM Template in a GTM Workspace. (templates.revert)

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

Updates a GTM Template. (templates.update)

Details

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

Creates a GTM Custom Template. (templates.create)

Parameters

string $parent

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

CustomTemplate $postBody
array $optParams

Optional parameters.

Return Value

CustomTemplate

Exceptions

Exception

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

Deletes a GTM Template. (templates.delete)

Parameters

string $path

GTM Custom Template's API relative path. Example: account s/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/ {template_id}

array $optParams

Optional parameters.

Exceptions

Exception

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

Gets a GTM Template. (templates.get)

Parameters

string $path

GTM Custom Template's API relative path. Example: account s/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/ {template_id}

array $optParams

Optional parameters.

Return Value

CustomTemplate

Exceptions

Exception

ListTemplatesResponse listAccountsContainersWorkspacesTemplates(string $parent, array $optParams = [])

Lists all GTM Templates of a GTM container workspace.

(templates.listAccountsContainersWorkspacesTemplates)

Parameters

string $parent

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

array $optParams

Optional parameters.

Return Value

ListTemplatesResponse

Exceptions

Exception

RevertTemplateResponse revert(string $path, array $optParams = [])

Reverts changes to a GTM Template in a GTM Workspace. (templates.revert)

Parameters

string $path

GTM Custom Template's API relative path. Example: account s/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/ {template_id}

array $optParams

Optional parameters.

Return Value

RevertTemplateResponse

Exceptions

Exception

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

Updates a GTM Template. (templates.update)

Parameters

string $path

GTM Custom Template's API relative path. Example: account s/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/ {template_id}

CustomTemplate $postBody
array $optParams

Optional parameters.

Return Value

CustomTemplate

Exceptions

Exception