Google_Service_TagManager_AccountsContainersRules_Resource

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