MonsterInsights_GA_Lib_Service_TagManager_AccountsContainersTriggers_Resource

The "triggers" 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_AccountsContainersTriggers_Resource extends MonsterInsights_GA_Lib_Service_Resource 
  2.  
  3. /** 
  4. * Creates a GTM Trigger. (triggers.create) 
  5. * @param string $accountId The GTM Account ID. 
  6. * @param string $containerId The GTM Container ID. 
  7. * @param Google_Trigger $postBody 
  8. * @param array $optParams Optional parameters. 
  9. * @return MonsterInsights_GA_Lib_Service_TagManager_Trigger 
  10. */ 
  11. public function create($accountId, $containerId, MonsterInsights_GA_Lib_Service_TagManager_Trigger $postBody, $optParams = array()) 
  12. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('create', array($params), "MonsterInsights_GA_Lib_Service_TagManager_Trigger"); 
  15.  
  16. /** 
  17. * Deletes a GTM Trigger. (triggers.delete) 
  18. * @param string $accountId The GTM Account ID. 
  19. * @param string $containerId The GTM Container ID. 
  20. * @param string $triggerId The GTM Trigger ID. 
  21. * @param array $optParams Optional parameters. 
  22. */ 
  23. public function delete($accountId, $containerId, $triggerId, $optParams = array()) 
  24. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId); 
  25. $params = array_merge($params, $optParams); 
  26. return $this->call('delete', array($params)); 
  27.  
  28. /** 
  29. * Gets a GTM Trigger. (triggers.get) 
  30. * @param string $accountId The GTM Account ID. 
  31. * @param string $containerId The GTM Container ID. 
  32. * @param string $triggerId The GTM Trigger ID. 
  33. * @param array $optParams Optional parameters. 
  34. * @return MonsterInsights_GA_Lib_Service_TagManager_Trigger 
  35. */ 
  36. public function get($accountId, $containerId, $triggerId, $optParams = array()) 
  37. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId); 
  38. $params = array_merge($params, $optParams); 
  39. return $this->call('get', array($params), "MonsterInsights_GA_Lib_Service_TagManager_Trigger"); 
  40.  
  41. /** 
  42. * Lists all GTM Triggers of a Container. 
  43. * (triggers.listAccountsContainersTriggers) 
  44. * @param string $accountId The GTM Account ID. 
  45. * @param string $containerId The GTM Container ID. 
  46. * @param array $optParams Optional parameters. 
  47. * @return MonsterInsights_GA_Lib_Service_TagManager_ListTriggersResponse 
  48. */ 
  49. public function listAccountsContainersTriggers($accountId, $containerId, $optParams = array()) 
  50. $params = array('accountId' => $accountId, 'containerId' => $containerId); 
  51. $params = array_merge($params, $optParams); 
  52. return $this->call('list', array($params), "MonsterInsights_GA_Lib_Service_TagManager_ListTriggersResponse"); 
  53.  
  54. /** 
  55. * Updates a GTM Trigger. (triggers.update) 
  56. * @param string $accountId The GTM Account ID. 
  57. * @param string $containerId The GTM Container ID. 
  58. * @param string $triggerId The GTM Trigger ID. 
  59. * @param Google_Trigger $postBody 
  60. * @param array $optParams Optional parameters. 
  61. * @opt_param string fingerprint When provided, this fingerprint must match the 
  62. * fingerprint of the trigger in storage. 
  63. * @return MonsterInsights_GA_Lib_Service_TagManager_Trigger 
  64. */ 
  65. public function update($accountId, $containerId, $triggerId, MonsterInsights_GA_Lib_Service_TagManager_Trigger $postBody, $optParams = array()) 
  66. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId, 'postBody' => $postBody); 
  67. $params = array_merge($params, $optParams); 
  68. return $this->call('update', array($params), "MonsterInsights_GA_Lib_Service_TagManager_Trigger");