MonsterInsights_GA_Lib_Service_Analytics_ManagementUnsampledReports_Resource

The "unsampledReports" collection of methods.

Defined (1)

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

/assets/lib/google/src/Google/Service/Analytics.php  
  1. class MonsterInsights_GA_Lib_Service_Analytics_ManagementUnsampledReports_Resource extends MonsterInsights_GA_Lib_Service_Resource 
  2.  
  3. /** 
  4. * Deletes an unsampled report. (unsampledReports.delete) 
  5. * @param string $accountId Account ID to delete the unsampled report for. 
  6. * @param string $webPropertyId Web property ID to delete the unsampled reports 
  7. * for. 
  8. * @param string $profileId View (Profile) ID to delete the unsampled report 
  9. * for. 
  10. * @param string $unsampledReportId ID of the unsampled report to be deleted. 
  11. * @param array $optParams Optional parameters. 
  12. */ 
  13. public function delete($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('delete', array($params)); 
  17.  
  18. /** 
  19. * Returns a single unsampled report. (unsampledReports.get) 
  20. * @param string $accountId Account ID to retrieve unsampled report for. 
  21. * @param string $webPropertyId Web property ID to retrieve unsampled reports 
  22. * for. 
  23. * @param string $profileId View (Profile) ID to retrieve unsampled report for. 
  24. * @param string $unsampledReportId ID of the unsampled report to retrieve. 
  25. * @param array $optParams Optional parameters. 
  26. * @return MonsterInsights_GA_Lib_Service_Analytics_UnsampledReport 
  27. */ 
  28. public function get($accountId, $webPropertyId, $profileId, $unsampledReportId, $optParams = array()) 
  29. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'unsampledReportId' => $unsampledReportId); 
  30. $params = array_merge($params, $optParams); 
  31. return $this->call('get', array($params), "MonsterInsights_GA_Lib_Service_Analytics_UnsampledReport"); 
  32.  
  33. /** 
  34. * Create a new unsampled report. (unsampledReports.insert) 
  35. * @param string $accountId Account ID to create the unsampled report for. 
  36. * @param string $webPropertyId Web property ID to create the unsampled report 
  37. * for. 
  38. * @param string $profileId View (Profile) ID to create the unsampled report 
  39. * for. 
  40. * @param Google_UnsampledReport $postBody 
  41. * @param array $optParams Optional parameters. 
  42. * @return MonsterInsights_GA_Lib_Service_Analytics_UnsampledReport 
  43. */ 
  44. public function insert($accountId, $webPropertyId, $profileId, MonsterInsights_GA_Lib_Service_Analytics_UnsampledReport $postBody, $optParams = array()) 
  45. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); 
  46. $params = array_merge($params, $optParams); 
  47. return $this->call('insert', array($params), "MonsterInsights_GA_Lib_Service_Analytics_UnsampledReport"); 
  48.  
  49. /** 
  50. * Lists unsampled reports to which the user has access. 
  51. * (unsampledReports.listManagementUnsampledReports) 
  52. * @param string $accountId Account ID to retrieve unsampled reports for. Must 
  53. * be a specific account ID, ~all is not supported. 
  54. * @param string $webPropertyId Web property ID to retrieve unsampled reports 
  55. * for. Must be a specific web property ID, ~all is not supported. 
  56. * @param string $profileId View (Profile) ID to retrieve unsampled reports for. 
  57. * Must be a specific view (profile) ID, ~all is not supported. 
  58. * @param array $optParams Optional parameters. 
  59. * @opt_param int max-results The maximum number of unsampled reports to include 
  60. * in this response. 
  61. * @opt_param int start-index An index of the first unsampled report to 
  62. * retrieve. Use this parameter as a pagination mechanism along with the max- 
  63. * results parameter. 
  64. * @return MonsterInsights_GA_Lib_Service_Analytics_UnsampledReports 
  65. */ 
  66. public function listManagementUnsampledReports($accountId, $webPropertyId, $profileId, $optParams = array()) 
  67. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); 
  68. $params = array_merge($params, $optParams); 
  69. return $this->call('list', array($params), "MonsterInsights_GA_Lib_Service_Analytics_UnsampledReports");