class AccountsContainersWorkspacesVariables extends Resource (View source)

The "variables" collection of methods.

Typical usage is:

 $tagmanagerService = new Google\Service\TagManager(...);
 $variables = $tagmanagerService->accounts_containers_workspaces_variables;

Methods

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

Creates a GTM Variable. (variables.create)

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

Deletes a GTM Variable. (variables.delete)

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

Gets a GTM Variable. (variables.get)

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

Lists all GTM Variables of a Container.

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

Reverts changes to a GTM Variable in a GTM Workspace. (variables.revert)

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

Updates a GTM Variable. (variables.update)

Details

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

Creates a GTM Variable. (variables.create)

Parameters

string $parent

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

Variable $postBody
array $optParams

Optional parameters.

Return Value

Variable

Exceptions

Exception

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

Deletes a GTM Variable. (variables.delete)

Parameters

string $path

GTM Variable's API relative path. Example: accounts/{acco unt_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variab le_id}

array $optParams

Optional parameters.

Exceptions

Exception

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

Gets a GTM Variable. (variables.get)

Parameters

string $path

GTM Variable's API relative path. Example: accounts/{acco unt_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variab le_id}

array $optParams

Optional parameters.

Return Value

Variable

Exceptions

Exception

ListVariablesResponse listAccountsContainersWorkspacesVariables(string $parent, array $optParams = [])

Lists all GTM Variables of a Container.

(variables.listAccountsContainersWorkspacesVariables)

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

ListVariablesResponse

Exceptions

Exception

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

Reverts changes to a GTM Variable in a GTM Workspace. (variables.revert)

Parameters

string $path

GTM Variable's API relative path. Example: accounts/{acco unt_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variab le_id}

array $optParams

Optional parameters.

Return Value

RevertVariableResponse

Exceptions

Exception

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

Updates a GTM Variable. (variables.update)

Parameters

string $path

GTM Variable's API relative path. Example: accounts/{acco unt_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variab le_id}

Variable $postBody
array $optParams

Optional parameters.

Return Value

Variable

Exceptions

Exception