MonsterInsights_GA_Lib_Service_TagManager_AccountsContainers_Resource

The "containers" collection of methods.

Defined (1)

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

/assets/lib/google/src/Google/Service/TagManager.php  
  1. class MonsterInsights_GA_Lib_Service_TagManager_AccountsContainers_Resource extends MonsterInsights_GA_Lib_Service_Resource 
  2.  
  3. /** 
  4. * Creates a Container. (containers.create) 
  5. * @param string $accountId The GTM Account ID. 
  6. * @param Google_Container $postBody 
  7. * @param array $optParams Optional parameters. 
  8. * @return MonsterInsights_GA_Lib_Service_TagManager_Container 
  9. */ 
  10. public function create($accountId, MonsterInsights_GA_Lib_Service_TagManager_Container $postBody, $optParams = array()) 
  11. $params = array('accountId' => $accountId, 'postBody' => $postBody); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('create', array($params), "MonsterInsights_GA_Lib_Service_TagManager_Container"); 
  14.  
  15. /** 
  16. * Deletes a Container. (containers.delete) 
  17. * @param string $accountId The GTM Account ID. 
  18. * @param string $containerId The GTM Container ID. 
  19. * @param array $optParams Optional parameters. 
  20. */ 
  21. public function delete($accountId, $containerId, $optParams = array()) 
  22. $params = array('accountId' => $accountId, 'containerId' => $containerId); 
  23. $params = array_merge($params, $optParams); 
  24. return $this->call('delete', array($params)); 
  25.  
  26. /** 
  27. * Gets a Container. (containers.get) 
  28. * @param string $accountId The GTM Account ID. 
  29. * @param string $containerId The GTM Container ID. 
  30. * @param array $optParams Optional parameters. 
  31. * @return MonsterInsights_GA_Lib_Service_TagManager_Container 
  32. */ 
  33. public function get($accountId, $containerId, $optParams = array()) 
  34. $params = array('accountId' => $accountId, 'containerId' => $containerId); 
  35. $params = array_merge($params, $optParams); 
  36. return $this->call('get', array($params), "MonsterInsights_GA_Lib_Service_TagManager_Container"); 
  37.  
  38. /** 
  39. * Lists all Containers that belongs to a GTM Account. 
  40. * (containers.listAccountsContainers) 
  41. * @param string $accountId The GTM Account ID. 
  42. * @param array $optParams Optional parameters. 
  43. * @return MonsterInsights_GA_Lib_Service_TagManager_ListContainersResponse 
  44. */ 
  45. public function listAccountsContainers($accountId, $optParams = array()) 
  46. $params = array('accountId' => $accountId); 
  47. $params = array_merge($params, $optParams); 
  48. return $this->call('list', array($params), "MonsterInsights_GA_Lib_Service_TagManager_ListContainersResponse"); 
  49.  
  50. /** 
  51. * Updates a Container. (containers.update) 
  52. * @param string $accountId The GTM Account ID. 
  53. * @param string $containerId The GTM Container ID. 
  54. * @param Google_Container $postBody 
  55. * @param array $optParams Optional parameters. 
  56. * @opt_param string fingerprint When provided, this fingerprint must match the 
  57. * fingerprint of the container in storage. 
  58. * @return MonsterInsights_GA_Lib_Service_TagManager_Container 
  59. */ 
  60. public function update($accountId, $containerId, MonsterInsights_GA_Lib_Service_TagManager_Container $postBody, $optParams = array()) 
  61. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); 
  62. $params = array_merge($params, $optParams); 
  63. return $this->call('update', array($params), "MonsterInsights_GA_Lib_Service_TagManager_Container");