GoogleGAL_Service_Analytics_ManagementWebproperties_Resource

The "webproperties" collection of methods.

Defined (1)

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

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