Google_ManagementDailyUploadsServiceResource

The "dailyUploads" collection of methods.

Defined (1)

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

/google-api-php-client/api-code/contrib/Google_AnalyticsService.php  
  1. class Google_ManagementDailyUploadsServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Delete uploaded data for the given date. (dailyUploads.delete) 
  5. * @param string $accountId Account Id associated with daily upload delete. 
  6. * @param string $webPropertyId Web property Id associated with daily upload delete. 
  7. * @param string $customDataSourceId Custom data source Id associated with daily upload delete. 
  8. * @param string $date Date for which data is to be deleted. Date should be formatted as YYYY-MM-DD. 
  9. * @param string $type Type of data for this delete. 
  10. * @param array $optParams Optional parameters. 
  11. */ 
  12. public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $type, $optParams = array()) { 
  13. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'type' => $type); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('delete', array($params)); 
  16. return $data; 
  17. /** 
  18. * List daily uploads to which the user has access. (dailyUploads.list) 
  19. * @param string $accountId Account Id for the daily uploads to retrieve. 
  20. * @param string $webPropertyId Web property Id for the daily uploads to retrieve. 
  21. * @param string $customDataSourceId Custom data source Id for daily uploads to retrieve. 
  22. * @param string $start_date Start date of the form YYYY-MM-DD. 
  23. * @param string $end_date End date of the form YYYY-MM-DD. 
  24. * @param array $optParams Optional parameters. 
  25. * @opt_param int max-results The maximum number of custom data sources to include in this response. 
  26. * @opt_param int start-index A 1-based index of the first daily upload to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. 
  27. * @return Google_DailyUploads 
  28. */ 
  29. public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $start_date, $end_date, $optParams = array()) { 
  30. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $start_date, 'end-date' => $end_date); 
  31. $params = array_merge($params, $optParams); 
  32. $data = $this->__call('list', array($params)); 
  33. if ($this->useObjects()) { 
  34. return new Google_DailyUploads($data); 
  35. } else { 
  36. return $data; 
  37. /** 
  38. * Update/Overwrite data for a custom data source. (dailyUploads.upload) 
  39. * @param string $accountId Account Id associated with daily upload. 
  40. * @param string $webPropertyId Web property Id associated with daily upload. 
  41. * @param string $customDataSourceId Custom data source Id to which the data being uploaded belongs. 
  42. * @param string $date Date for which data is uploaded. Date should be formatted as YYYY-MM-DD. 
  43. * @param int $appendNumber Append number for this upload indexed from 1. 
  44. * @param string $type Type of data for this upload. 
  45. * @param array $optParams Optional parameters. 
  46. * @opt_param bool reset Reset/Overwrite all previous appends for this date and start over with this file as the first upload. 
  47. * @return Google_DailyUploadAppend 
  48. */ 
  49. public function upload($accountId, $webPropertyId, $customDataSourceId, $date, $appendNumber, $type, $optParams = array()) { 
  50. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'appendNumber' => $appendNumber, 'type' => $type); 
  51. $params = array_merge($params, $optParams); 
  52. $data = $this->__call('upload', array($params)); 
  53. if ($this->useObjects()) { 
  54. return new Google_DailyUploadAppend($data); 
  55. } else { 
  56. return $data;