Google_Service_Analytics_ManagementUploads_Resource

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