Google_Service_Analytics_ManagementFilters_Resource

The "filters" collection of methods.

Defined (1)

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

/lib/vendor/google/apiclient/src/Google/Service/Analytics.php  
  1. class Google_Service_Analytics_ManagementFilters_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Delete a filter. (filters.delete) 
  5. * @param string $accountId 
  6. * Account ID to delete the filter for. 
  7. * @param string $filterId 
  8. * ID of the filter to be deleted. 
  9. * @param array $optParams Optional parameters. 
  10. * @return Google_Service_Analytics_Filter 
  11. */ 
  12. public function delete($accountId, $filterId, $optParams = array()) 
  13. $params = array('accountId' => $accountId, 'filterId' => $filterId); 
  14. $params = array_merge($params, $optParams); 
  15. return $this->call('delete', array($params), "Google_Service_Analytics_Filter"); 
  16. /** 
  17. * Returns a filters to which the user has access. (filters.get) 
  18. * @param string $accountId 
  19. * Account ID to retrieve filters for. 
  20. * @param string $filterId 
  21. * Filter ID to retrieve filters for. 
  22. * @param array $optParams Optional parameters. 
  23. * @return Google_Service_Analytics_Filter 
  24. */ 
  25. public function get($accountId, $filterId, $optParams = array()) 
  26. $params = array('accountId' => $accountId, 'filterId' => $filterId); 
  27. $params = array_merge($params, $optParams); 
  28. return $this->call('get', array($params), "Google_Service_Analytics_Filter"); 
  29. /** 
  30. * Create a new filter. (filters.insert) 
  31. * @param string $accountId 
  32. * Account ID to create filter for. 
  33. * @param Google_Filter $postBody 
  34. * @param array $optParams Optional parameters. 
  35. * @return Google_Service_Analytics_Filter 
  36. */ 
  37. public function insert($accountId, Google_Service_Analytics_Filter $postBody, $optParams = array()) 
  38. $params = array('accountId' => $accountId, 'postBody' => $postBody); 
  39. $params = array_merge($params, $optParams); 
  40. return $this->call('insert', array($params), "Google_Service_Analytics_Filter"); 
  41. /** 
  42. * Lists all filters for an account (filters.listManagementFilters) 
  43. * @param string $accountId 
  44. * Account ID to retrieve filters for. 
  45. * @param array $optParams Optional parameters. 
  46. * @opt_param int max-results 
  47. * The maximum number of filters to include in this response. 
  48. * @opt_param int start-index 
  49. * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along 
  50. * with the max-results parameter. 
  51. * @return Google_Service_Analytics_Filters 
  52. */ 
  53. public function listManagementFilters($accountId, $optParams = array()) 
  54. $params = array('accountId' => $accountId); 
  55. $params = array_merge($params, $optParams); 
  56. return $this->call('list', array($params), "Google_Service_Analytics_Filters"); 
  57. /** 
  58. * Updates an existing filter. This method supports patch semantics. 
  59. * (filters.patch) 
  60. * @param string $accountId 
  61. * Account ID to which the filter belongs. 
  62. * @param string $filterId 
  63. * ID of the filter to be updated. 
  64. * @param Google_Filter $postBody 
  65. * @param array $optParams Optional parameters. 
  66. * @return Google_Service_Analytics_Filter 
  67. */ 
  68. public function patch($accountId, $filterId, Google_Service_Analytics_Filter $postBody, $optParams = array()) 
  69. $params = array('accountId' => $accountId, 'filterId' => $filterId, 'postBody' => $postBody); 
  70. $params = array_merge($params, $optParams); 
  71. return $this->call('patch', array($params), "Google_Service_Analytics_Filter"); 
  72. /** 
  73. * Updates an existing filter. (filters.update) 
  74. * @param string $accountId 
  75. * Account ID to which the filter belongs. 
  76. * @param string $filterId 
  77. * ID of the filter to be updated. 
  78. * @param Google_Filter $postBody 
  79. * @param array $optParams Optional parameters. 
  80. * @return Google_Service_Analytics_Filter 
  81. */ 
  82. public function update($accountId, $filterId, Google_Service_Analytics_Filter $postBody, $optParams = array()) 
  83. $params = array('accountId' => $accountId, 'filterId' => $filterId, 'postBody' => $postBody); 
  84. $params = array_merge($params, $optParams); 
  85. return $this->call('update', array($params), "Google_Service_Analytics_Filter");