class AccountsContainersWorkspacesFolders extends Resource (View source)

The "folders" collection of methods.

Typical usage is:

 $tagmanagerService = new Google\Service\TagManager(...);
 $folders = $tagmanagerService->accounts_containers_workspaces_folders;

Methods

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

Creates a GTM Folder. (folders.create)

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

Deletes a GTM Folder. (folders.delete)

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

List all entities in a GTM Folder. (folders.entities)

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

Gets a GTM Folder. (folders.get)

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

Lists all GTM Folders of a Container.

move_entities_to_folder(string $path, Folder $postBody, array $optParams = [])

Moves entities to a GTM Folder. If {folder_id} in the request path equals 0, this will instead move entities out of the folder they currently belong to.

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

Reverts changes to a GTM Folder in a GTM Workspace. (folders.revert)

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

Updates a GTM Folder. (folders.update)

Details

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

Creates a GTM Folder. (folders.create)

Parameters

string $parent

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

Folder $postBody
array $optParams

Optional parameters.

Return Value

Folder

Exceptions

Exception

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

Deletes a GTM Folder. (folders.delete)

Parameters

string $path

GTM Folder's API relative path. Example: accounts/{accoun t_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id}

array $optParams

Optional parameters.

Exceptions

Exception

FolderEntities entities(string $path, array $optParams = [])

List all entities in a GTM Folder. (folders.entities)

Parameters

string $path

GTM Folder's API relative path. Example: accounts/{accoun t_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id}

array $optParams

Optional parameters.

Return Value

FolderEntities

Exceptions

Exception

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

Gets a GTM Folder. (folders.get)

Parameters

string $path

GTM Folder's API relative path. Example: accounts/{accoun t_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id}

array $optParams

Optional parameters.

Return Value

Folder

Exceptions

Exception

ListFoldersResponse listAccountsContainersWorkspacesFolders(string $parent, array $optParams = [])

Lists all GTM Folders of a Container.

(folders.listAccountsContainersWorkspacesFolders)

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

ListFoldersResponse

Exceptions

Exception

move_entities_to_folder(string $path, Folder $postBody, array $optParams = [])

Moves entities to a GTM Folder. If {folder_id} in the request path equals 0, this will instead move entities out of the folder they currently belong to.

(folders.move_entities_to_folder)

Parameters

string $path

GTM Folder's API relative path. Example: accounts/{accoun t_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id}

Folder $postBody
array $optParams

Optional parameters.

Exceptions

Exception

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

Reverts changes to a GTM Folder in a GTM Workspace. (folders.revert)

Parameters

string $path

GTM Folder's API relative path. Example: accounts/{accoun t_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id}

array $optParams

Optional parameters.

Return Value

RevertFolderResponse

Exceptions

Exception

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

Updates a GTM Folder. (folders.update)

Parameters

string $path

GTM Folder's API relative path. Example: accounts/{accoun t_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id}

Folder $postBody
array $optParams

Optional parameters.

Return Value

Folder

Exceptions

Exception