Google_Service_Analytics_ManagementUploads_Resource

The "uploads" collection of methods.

Defined (1)

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

/lib/Google/Service/Analytics.php  
  1. class Google_Service_Analytics_ManagementUploads_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Delete data associated with a previous upload. (uploads.deleteUploadData) 
  5. * @param string $accountId 
  6. * Account Id for the uploads to be deleted. 
  7. * @param string $webPropertyId 
  8. * Web property Id for the uploads to be deleted. 
  9. * @param string $customDataSourceId 
  10. * Custom data source Id for the uploads to be deleted. 
  11. * @param Google_AnalyticsDataimportDeleteUploadDataRequest $postBody 
  12. * @param array $optParams Optional parameters. 
  13. */ 
  14. public function deleteUploadData($accountId, $webPropertyId, $customDataSourceId, Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest $postBody, $optParams = array()) 
  15. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'postBody' => $postBody); 
  16. $params = array_merge($params, $optParams); 
  17. return $this->call('deleteUploadData', array($params)); 
  18. /** 
  19. * List uploads to which the user has access. (uploads.get) 
  20. * @param string $accountId 
  21. * Account Id for the upload to retrieve. 
  22. * @param string $webPropertyId 
  23. * Web property Id for the upload to retrieve. 
  24. * @param string $customDataSourceId 
  25. * Custom data source Id for upload to retrieve. 
  26. * @param string $uploadId 
  27. * Upload Id to retrieve. 
  28. * @param array $optParams Optional parameters. 
  29. * @return Google_Service_Analytics_Upload 
  30. */ 
  31. public function get($accountId, $webPropertyId, $customDataSourceId, $uploadId, $optParams = array()) 
  32. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'uploadId' => $uploadId); 
  33. $params = array_merge($params, $optParams); 
  34. return $this->call('get', array($params), "Google_Service_Analytics_Upload"); 
  35. /** 
  36. * List uploads to which the user has access. (uploads.listManagementUploads) 
  37. * @param string $accountId 
  38. * Account Id for the uploads to retrieve. 
  39. * @param string $webPropertyId 
  40. * Web property Id for the uploads to retrieve. 
  41. * @param string $customDataSourceId 
  42. * Custom data source Id for uploads to retrieve. 
  43. * @param array $optParams Optional parameters. 
  44. * @opt_param int max-results 
  45. * The maximum number of uploads to include in this response. 
  46. * @opt_param int start-index 
  47. * A 1-based index of the first upload to retrieve. Use this parameter as a pagination mechanism 
  48. * along with the max-results parameter. 
  49. * @return Google_Service_Analytics_Uploads 
  50. */ 
  51. public function listManagementUploads($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) 
  52. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId); 
  53. $params = array_merge($params, $optParams); 
  54. return $this->call('list', array($params), "Google_Service_Analytics_Uploads"); 
  55. /** 
  56. * Upload data for a custom data source. (uploads.uploadData) 
  57. * @param string $accountId 
  58. * Account Id associated with the upload. 
  59. * @param string $webPropertyId 
  60. * Web property UA-string associated with the upload. 
  61. * @param string $customDataSourceId 
  62. * Custom data source Id to which the data being uploaded belongs. 
  63. * @param array $optParams Optional parameters. 
  64. * @return Google_Service_Analytics_Upload 
  65. */ 
  66. public function uploadData($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) 
  67. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId); 
  68. $params = array_merge($params, $optParams); 
  69. return $this->call('uploadData', array($params), "Google_Service_Analytics_Upload");