Google_Service_Analytics_ManagementProfiles_Resource

The "profiles" collection of methods.

Defined (1)

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

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