Google_Service_TagManager_Accounts_Resource

The "accounts" collection of methods.

Defined (1)

The class is defined in the following location(s).

/includes/api-libs/Google/Service/TagManager.php  
  1. class Google_Service_TagManager_Accounts_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Gets a GTM Account. (accounts.get) 
  5. * @param string $accountId The GTM Account ID. 
  6. * @param array $optParams Optional parameters. 
  7. * @return Google_Service_TagManager_Account 
  8. */ 
  9. public function get($accountId, $optParams = array()) 
  10. $params = array('accountId' => $accountId); 
  11. $params = array_merge($params, $optParams); 
  12. return $this->call('get', array($params), "Google_Service_TagManager_Account"); 
  13.  
  14. /** 
  15. * Lists all GTM Accounts that a user has access to. (accounts.listAccounts) 
  16. * @param array $optParams Optional parameters. 
  17. * @return Google_Service_TagManager_ListAccountsResponse 
  18. */ 
  19. public function listAccounts($optParams = array()) 
  20. $params = array(); 
  21. $params = array_merge($params, $optParams); 
  22. return $this->call('list', array($params), "Google_Service_TagManager_ListAccountsResponse"); 
  23.  
  24. /** 
  25. * Updates a GTM Account. (accounts.update) 
  26. * @param string $accountId The GTM Account ID. 
  27. * @param Google_Account $postBody 
  28. * @param array $optParams Optional parameters. 
  29. * @opt_param string fingerprint When provided, this fingerprint must match the 
  30. * fingerprint of the account in storage. 
  31. * @return Google_Service_TagManager_Account 
  32. */ 
  33. public function update($accountId, Google_Service_TagManager_Account $postBody, $optParams = array()) 
  34. $params = array('accountId' => $accountId, 'postBody' => $postBody); 
  35. $params = array_merge($params, $optParams); 
  36. return $this->call('update', array($params), "Google_Service_TagManager_Account");