GoogleGAL_Service_Analytics_ManagementProfileUserLinks_Resource

The "profileUserLinks" collection of methods.

Defined (1)

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

/core/Google/Service/Analytics.php  
  1. class GoogleGAL_Service_Analytics_ManagementProfileUserLinks_Resource extends GoogleGAL_Service_Resource 
  2.  
  3. /** 
  4. * Removes a user from the given view (profile). (profileUserLinks.delete) 
  5. * @param string $accountId Account ID to delete the user link for. 
  6. * @param string $webPropertyId Web Property ID to delete the user link for. 
  7. * @param string $profileId View (Profile) ID to delete the user link for. 
  8. * @param string $linkId Link ID to delete the user link for. 
  9. * @param array $optParams Optional parameters. 
  10. */ 
  11. public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array()) 
  12. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('delete', array($params)); 
  15.  
  16. /** 
  17. * Adds a new user to the given view (profile). (profileUserLinks.insert) 
  18. * @param string $accountId Account ID to create the user link for. 
  19. * @param string $webPropertyId Web Property ID to create the user link for. 
  20. * @param string $profileId View (Profile) ID to create the user link for. 
  21. * @param GoogleGAL_EntityUserLink $postBody 
  22. * @param array $optParams Optional parameters. 
  23. * @return GoogleGAL_Service_Analytics_EntityUserLink 
  24. */ 
  25. public function insert($accountId, $webPropertyId, $profileId, GoogleGAL_Service_Analytics_EntityUserLink $postBody, $optParams = array()) 
  26. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); 
  27. $params = array_merge($params, $optParams); 
  28. return $this->call('insert', array($params), "GoogleGAL_Service_Analytics_EntityUserLink"); 
  29.  
  30. /** 
  31. * Lists profile-user links for a given view (profile). 
  32. * (profileUserLinks.listManagementProfileUserLinks) 
  33. * @param string $accountId Account ID which the given view (profile) belongs 
  34. * to. 
  35. * @param string $webPropertyId Web Property ID which the given view (profile) 
  36. * belongs to. Can either be a specific web property ID or '~all', which refers 
  37. * to all the web properties that user has access to. 
  38. * @param string $profileId View (Profile) ID to retrieve the profile-user links 
  39. * for. Can either be a specific profile ID or '~all', which refers to all the 
  40. * profiles that user has access to. 
  41. * @param array $optParams Optional parameters. 
  42. * @opt_param int max-results The maximum number of profile-user links to 
  43. * include in this response. 
  44. * @opt_param int start-index An index of the first profile-user link to 
  45. * retrieve. Use this parameter as a pagination mechanism along with the max- 
  46. * results parameter. 
  47. * @return GoogleGAL_Service_Analytics_EntityUserLinks 
  48. */ 
  49. public function listManagementProfileUserLinks($accountId, $webPropertyId, $profileId, $optParams = array()) 
  50. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); 
  51. $params = array_merge($params, $optParams); 
  52. return $this->call('list', array($params), "GoogleGAL_Service_Analytics_EntityUserLinks"); 
  53.  
  54. /** 
  55. * Updates permissions for an existing user on the given view (profile). 
  56. * (profileUserLinks.update) 
  57. * @param string $accountId Account ID to update the user link for. 
  58. * @param string $webPropertyId Web Property ID to update the user link for. 
  59. * @param string $profileId View (Profile ID) to update the user link for. 
  60. * @param string $linkId Link ID to update the user link for. 
  61. * @param GoogleGAL_EntityUserLink $postBody 
  62. * @param array $optParams Optional parameters. 
  63. * @return GoogleGAL_Service_Analytics_EntityUserLink 
  64. */ 
  65. public function update($accountId, $webPropertyId, $profileId, $linkId, GoogleGAL_Service_Analytics_EntityUserLink $postBody, $optParams = array()) 
  66. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody); 
  67. $params = array_merge($params, $optParams); 
  68. return $this->call('update', array($params), "GoogleGAL_Service_Analytics_EntityUserLink");