Google_Service_Analytics_ManagementProfiles_Resource

The "profiles" collection of methods.

Defined (1)

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

/lib/Google/Service/Analytics.php  
  1. class Google_Service_Analytics_ManagementProfiles_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Deletes a view (profile). (profiles.delete) 
  5. * @param string $accountId 
  6. * Account ID to delete the view (profile) for. 
  7. * @param string $webPropertyId 
  8. * Web property ID to delete the view (profile) for. 
  9. * @param string $profileId 
  10. * ID of the view (profile) to be deleted. 
  11. * @param array $optParams Optional parameters. 
  12. */ 
  13. public function delete($accountId, $webPropertyId, $profileId, $optParams = array()) 
  14. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); 
  15. $params = array_merge($params, $optParams); 
  16. return $this->call('delete', array($params)); 
  17. /** 
  18. * Gets a view (profile) to which the user has access. (profiles.get) 
  19. * @param string $accountId 
  20. * Account ID to retrieve the goal for. 
  21. * @param string $webPropertyId 
  22. * Web property ID to retrieve the goal for. 
  23. * @param string $profileId 
  24. * View (Profile) ID to retrieve the goal for. 
  25. * @param array $optParams Optional parameters. 
  26. * @return Google_Service_Analytics_Profile 
  27. */ 
  28. public function get($accountId, $webPropertyId, $profileId, $optParams = array()) 
  29. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); 
  30. $params = array_merge($params, $optParams); 
  31. return $this->call('get', array($params), "Google_Service_Analytics_Profile"); 
  32. /** 
  33. * Create a new view (profile). (profiles.insert) 
  34. * @param string $accountId 
  35. * Account ID to create the view (profile) for. 
  36. * @param string $webPropertyId 
  37. * Web property ID to create the view (profile) for. 
  38. * @param Google_Profile $postBody 
  39. * @param array $optParams Optional parameters. 
  40. * @return Google_Service_Analytics_Profile 
  41. */ 
  42. public function insert($accountId, $webPropertyId, Google_Service_Analytics_Profile $postBody, $optParams = array()) 
  43. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); 
  44. $params = array_merge($params, $optParams); 
  45. return $this->call('insert', array($params), "Google_Service_Analytics_Profile"); 
  46. /** 
  47. * Lists views (profiles) to which the user has access. 
  48. * (profiles.listManagementProfiles) 
  49. * @param string $accountId 
  50. * Account ID for the view (profiles) to retrieve. Can either be a specific account ID or '~all',  
  51. * which refers to all the accounts to which the user has access. 
  52. * @param string $webPropertyId 
  53. * Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID 
  54. * or '~all', which refers to all the web properties to which the user has access. 
  55. * @param array $optParams Optional parameters. 
  56. * @opt_param int max-results 
  57. * The maximum number of views (profiles) to include in this response. 
  58. * @opt_param int start-index 
  59. * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along 
  60. * with the max-results parameter. 
  61. * @return Google_Service_Analytics_Profiles 
  62. */ 
  63. public function listManagementProfiles($accountId, $webPropertyId, $optParams = array()) 
  64. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); 
  65. $params = array_merge($params, $optParams); 
  66. return $this->call('list', array($params), "Google_Service_Analytics_Profiles"); 
  67. /** 
  68. * Updates an existing view (profile). This method supports patch semantics. 
  69. * (profiles.patch) 
  70. * @param string $accountId 
  71. * Account ID to which the view (profile) belongs 
  72. * @param string $webPropertyId 
  73. * Web property ID to which the view (profile) belongs 
  74. * @param string $profileId 
  75. * ID of the view (profile) to be updated. 
  76. * @param Google_Profile $postBody 
  77. * @param array $optParams Optional parameters. 
  78. * @return Google_Service_Analytics_Profile 
  79. */ 
  80. public function patch($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Profile $postBody, $optParams = array()) 
  81. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); 
  82. $params = array_merge($params, $optParams); 
  83. return $this->call('patch', array($params), "Google_Service_Analytics_Profile"); 
  84. /** 
  85. * Updates an existing view (profile). (profiles.update) 
  86. * @param string $accountId 
  87. * Account ID to which the view (profile) belongs 
  88. * @param string $webPropertyId 
  89. * Web property ID to which the view (profile) belongs 
  90. * @param string $profileId 
  91. * ID of the view (profile) to be updated. 
  92. * @param Google_Profile $postBody 
  93. * @param array $optParams Optional parameters. 
  94. * @return Google_Service_Analytics_Profile 
  95. */ 
  96. public function update($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Profile $postBody, $optParams = array()) 
  97. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); 
  98. $params = array_merge($params, $optParams); 
  99. return $this->call('update', array($params), "Google_Service_Analytics_Profile");