class AccountsContainersWorkspacesTriggers extends Resource (View source)

The "triggers" collection of methods.

Typical usage is:

 $tagmanagerService = new Google\Service\TagManager(...);
 $triggers = $tagmanagerService->accounts_containers_workspaces_triggers;

Methods

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

Creates a GTM Trigger. (triggers.create)

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

Deletes a GTM Trigger. (triggers.delete)

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

Gets a GTM Trigger. (triggers.get)

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

Lists all GTM Triggers of a Container.

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

Reverts changes to a GTM Trigger in a GTM Workspace. (triggers.revert)

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

Updates a GTM Trigger. (triggers.update)

Details

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

Creates a GTM Trigger. (triggers.create)

Parameters

string $parent

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

Trigger $postBody
array $optParams

Optional parameters.

Return Value

Trigger

Exceptions

Exception

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

Deletes a GTM Trigger. (triggers.delete)

Parameters

string $path

GTM Trigger's API relative path. Example: accounts/{accou nt_id}/containers/{container_id}/workspaces/{workspaceid}/triggers/{trigger id}

array $optParams

Optional parameters.

Exceptions

Exception

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

Gets a GTM Trigger. (triggers.get)

Parameters

string $path

GTM Trigger's API relative path. Example: accounts/{accou nt_id}/containers/{container_id}/workspaces/{workspaceid}/triggers/{trigger id}

array $optParams

Optional parameters.

Return Value

Trigger

Exceptions

Exception

ListTriggersResponse listAccountsContainersWorkspacesTriggers(string $parent, array $optParams = [])

Lists all GTM Triggers of a Container.

(triggers.listAccountsContainersWorkspacesTriggers)

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

ListTriggersResponse

Exceptions

Exception

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

Reverts changes to a GTM Trigger in a GTM Workspace. (triggers.revert)

Parameters

string $path

GTM Trigger's API relative path. Example: accounts/{accou nt_id}/containers/{container_id}/workspaces/{workspaceid}/triggers/{trigger id}

array $optParams

Optional parameters.

Return Value

RevertTriggerResponse

Exceptions

Exception

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

Updates a GTM Trigger. (triggers.update)

Parameters

string $path

GTM Trigger's API relative path. Example: accounts/{accou nt_id}/containers/{container_id}/workspaces/{workspaceid}/triggers/{trigger id}

Trigger $postBody
array $optParams

Optional parameters.

Return Value

Trigger

Exceptions

Exception