class Accounts extends Resource (View source)

The "accounts" collection of methods.

Typical usage is:

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

Methods

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

Gets a GTM Account. (accounts.get)

listAccounts(array $optParams = [])

Lists all GTM Accounts that a user has access to. (accounts.listAccounts)

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

Updates a GTM Account. (accounts.update)

Details

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

Gets a GTM Account. (accounts.get)

Parameters

string $path

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

array $optParams

Optional parameters.

Return Value

Account

Exceptions

Exception

ListAccountsResponse listAccounts(array $optParams = [])

Lists all GTM Accounts that a user has access to. (accounts.listAccounts)

Parameters

array $optParams

Optional parameters.

Return Value

ListAccountsResponse

Exceptions

Exception

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

Updates a GTM Account. (accounts.update)

Parameters

string $path

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

Account $postBody
array $optParams

Optional parameters.

Return Value

Account

Exceptions

Exception