Google_Service_Analytics_ManagementWebproperties_Resource

The "webproperties" 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_ManagementWebproperties_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Gets a web property to which the user has access. (webproperties.get) 
  5. * @param string $accountId 
  6. * Account ID to retrieve the web property for. 
  7. * @param string $webPropertyId 
  8. * ID to retrieve the web property for. 
  9. * @param array $optParams Optional parameters. 
  10. * @return Google_Service_Analytics_Webproperty 
  11. */ 
  12. public function get($accountId, $webPropertyId, $optParams = array()) 
  13. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); 
  14. $params = array_merge($params, $optParams); 
  15. return $this->call('get', array($params), "Google_Service_Analytics_Webproperty"); 
  16. /** 
  17. * Create a new property if the account has fewer than 20 properties. Web 
  18. * properties are visible in the Google Analytics interface only if they have at 
  19. * least one profile. (webproperties.insert) 
  20. * @param string $accountId 
  21. * Account ID to create the web property for. 
  22. * @param Google_Webproperty $postBody 
  23. * @param array $optParams Optional parameters. 
  24. * @return Google_Service_Analytics_Webproperty 
  25. */ 
  26. public function insert($accountId, Google_Service_Analytics_Webproperty $postBody, $optParams = array()) 
  27. $params = array('accountId' => $accountId, 'postBody' => $postBody); 
  28. $params = array_merge($params, $optParams); 
  29. return $this->call('insert', array($params), "Google_Service_Analytics_Webproperty"); 
  30. /** 
  31. * Lists web properties to which the user has access. 
  32. * (webproperties.listManagementWebproperties) 
  33. * @param string $accountId 
  34. * Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which 
  35. * refers to all the accounts that user has access to. 
  36. * @param array $optParams Optional parameters. 
  37. * @opt_param int max-results 
  38. * The maximum number of web properties to include in this response. 
  39. * @opt_param int start-index 
  40. * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along 
  41. * with the max-results parameter. 
  42. * @return Google_Service_Analytics_Webproperties 
  43. */ 
  44. public function listManagementWebproperties($accountId, $optParams = array()) 
  45. $params = array('accountId' => $accountId); 
  46. $params = array_merge($params, $optParams); 
  47. return $this->call('list', array($params), "Google_Service_Analytics_Webproperties"); 
  48. /** 
  49. * Updates an existing web property. This method supports patch semantics. 
  50. * (webproperties.patch) 
  51. * @param string $accountId 
  52. * Account ID to which the web property belongs 
  53. * @param string $webPropertyId 
  54. * Web property ID 
  55. * @param Google_Webproperty $postBody 
  56. * @param array $optParams Optional parameters. 
  57. * @return Google_Service_Analytics_Webproperty 
  58. */ 
  59. public function patch($accountId, $webPropertyId, Google_Service_Analytics_Webproperty $postBody, $optParams = array()) 
  60. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); 
  61. $params = array_merge($params, $optParams); 
  62. return $this->call('patch', array($params), "Google_Service_Analytics_Webproperty"); 
  63. /** 
  64. * Updates an existing web property. (webproperties.update) 
  65. * @param string $accountId 
  66. * Account ID to which the web property belongs 
  67. * @param string $webPropertyId 
  68. * Web property ID 
  69. * @param Google_Webproperty $postBody 
  70. * @param array $optParams Optional parameters. 
  71. * @return Google_Service_Analytics_Webproperty 
  72. */ 
  73. public function update($accountId, $webPropertyId, Google_Service_Analytics_Webproperty $postBody, $optParams = array()) 
  74. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); 
  75. $params = array_merge($params, $optParams); 
  76. return $this->call('update', array($params), "Google_Service_Analytics_Webproperty");