Google_Service_Analytics_ManagementDailyUploads_Resource

The "dailyUploads" collection of methods.

Defined (1)

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

/lib/Google/Service/Analytics.php  
  1. class Google_Service_Analytics_ManagementDailyUploads_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Delete uploaded data for the given date. (dailyUploads.delete) 
  5. * @param string $accountId 
  6. * Account Id associated with daily upload delete. 
  7. * @param string $webPropertyId 
  8. * Web property Id associated with daily upload delete. 
  9. * @param string $customDataSourceId 
  10. * Custom data source Id associated with daily upload delete. 
  11. * @param string $date 
  12. * Date for which data is to be deleted. Date should be formatted as YYYY-MM-DD. 
  13. * @param string $type 
  14. * Type of data for this delete. 
  15. * @param array $optParams Optional parameters. 
  16. */ 
  17. public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $type, $optParams = array()) 
  18. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'type' => $type); 
  19. $params = array_merge($params, $optParams); 
  20. return $this->call('delete', array($params)); 
  21. /** 
  22. * List daily uploads to which the user has access. 
  23. * (dailyUploads.listManagementDailyUploads) 
  24. * @param string $accountId 
  25. * Account Id for the daily uploads to retrieve. 
  26. * @param string $webPropertyId 
  27. * Web property Id for the daily uploads to retrieve. 
  28. * @param string $customDataSourceId 
  29. * Custom data source Id for daily uploads to retrieve. 
  30. * @param string $startDate 
  31. * Start date of the form YYYY-MM-DD. 
  32. * @param string $endDate 
  33. * End date of the form YYYY-MM-DD. 
  34. * @param array $optParams Optional parameters. 
  35. * @opt_param int max-results 
  36. * The maximum number of custom data sources to include in this response. 
  37. * @opt_param int start-index 
  38. * A 1-based index of the first daily upload to retrieve. Use this parameter as a pagination 
  39. * mechanism along with the max-results parameter. 
  40. * @return Google_Service_Analytics_DailyUploads 
  41. */ 
  42. public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $startDate, $endDate, $optParams = array()) 
  43. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $startDate, 'end-date' => $endDate); 
  44. $params = array_merge($params, $optParams); 
  45. return $this->call('list', array($params), "Google_Service_Analytics_DailyUploads"); 
  46. /** 
  47. * Update/Overwrite data for a custom data source. (dailyUploads.upload) 
  48. * @param string $accountId 
  49. * Account Id associated with daily upload. 
  50. * @param string $webPropertyId 
  51. * Web property Id associated with daily upload. 
  52. * @param string $customDataSourceId 
  53. * Custom data source Id to which the data being uploaded belongs. 
  54. * @param string $date 
  55. * Date for which data is uploaded. Date should be formatted as YYYY-MM-DD. 
  56. * @param int $appendNumber 
  57. * Append number for this upload indexed from 1. 
  58. * @param string $type 
  59. * Type of data for this upload. 
  60. * @param array $optParams Optional parameters. 
  61. * @opt_param bool reset 
  62. * Reset/Overwrite all previous appends for this date and start over with this file as the first 
  63. * upload. 
  64. * @return Google_Service_Analytics_DailyUploadAppend 
  65. */ 
  66. public function upload($accountId, $webPropertyId, $customDataSourceId, $date, $appendNumber, $type, $optParams = array()) 
  67. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'appendNumber' => $appendNumber, 'type' => $type); 
  68. $params = array_merge($params, $optParams); 
  69. return $this->call('upload', array($params), "Google_Service_Analytics_DailyUploadAppend");