GoogleGAL_Service_Analytics_ManagementUnsampledReports_Resource

The "unsampledReports" collection of methods.

Defined (1)

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

/core/Google/Service/Analytics.php  
  1. class GoogleGAL_Service_Analytics_ManagementUnsampledReports_Resource extends GoogleGAL_Service_Resource 
  2.  
  3. /** 
  4. * Returns a single unsampled report. (unsampledReports.get) 
  5. * @param string $accountId Account ID to retrieve unsampled report for. 
  6. * @param string $webPropertyId Web property ID to retrieve unsampled reports 
  7. * for. 
  8. * @param string $profileId View (Profile) ID to retrieve unsampled report for. 
  9. * @param string $unsampledReportId ID of the unsampled report to retrieve. 
  10. * @param array $optParams Optional parameters. 
  11. * @return GoogleGAL_Service_Analytics_UnsampledReport 
  12. */ 
  13. public function get($accountId, $webPropertyId, $profileId, $unsampledReportId, $optParams = array()) 
  14. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'unsampledReportId' => $unsampledReportId); 
  15. $params = array_merge($params, $optParams); 
  16. return $this->call('get', array($params), "GoogleGAL_Service_Analytics_UnsampledReport"); 
  17.  
  18. /** 
  19. * Create a new unsampled report. (unsampledReports.insert) 
  20. * @param string $accountId Account ID to create the unsampled report for. 
  21. * @param string $webPropertyId Web property ID to create the unsampled report 
  22. * for. 
  23. * @param string $profileId View (Profile) ID to create the unsampled report 
  24. * for. 
  25. * @param GoogleGAL_UnsampledReport $postBody 
  26. * @param array $optParams Optional parameters. 
  27. * @return GoogleGAL_Service_Analytics_UnsampledReport 
  28. */ 
  29. public function insert($accountId, $webPropertyId, $profileId, GoogleGAL_Service_Analytics_UnsampledReport $postBody, $optParams = array()) 
  30. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); 
  31. $params = array_merge($params, $optParams); 
  32. return $this->call('insert', array($params), "GoogleGAL_Service_Analytics_UnsampledReport"); 
  33.  
  34. /** 
  35. * Lists unsampled reports to which the user has access. 
  36. * (unsampledReports.listManagementUnsampledReports) 
  37. * @param string $accountId Account ID to retrieve unsampled reports for. Must 
  38. * be a specific account ID, ~all is not supported. 
  39. * @param string $webPropertyId Web property ID to retrieve unsampled reports 
  40. * for. Must be a specific web property ID, ~all is not supported. 
  41. * @param string $profileId View (Profile) ID to retrieve unsampled reports for. 
  42. * Must be a specific view (profile) ID, ~all is not supported. 
  43. * @param array $optParams Optional parameters. 
  44. * @opt_param int max-results The maximum number of unsampled reports to include 
  45. * in this response. 
  46. * @opt_param int start-index An index of the first unsampled report to 
  47. * retrieve. Use this parameter as a pagination mechanism along with the max- 
  48. * results parameter. 
  49. * @return GoogleGAL_Service_Analytics_UnsampledReports 
  50. */ 
  51. public function listManagementUnsampledReports($accountId, $webPropertyId, $profileId, $optParams = array()) 
  52. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); 
  53. $params = array_merge($params, $optParams); 
  54. return $this->call('list', array($params), "GoogleGAL_Service_Analytics_UnsampledReports");