GoogleGAL_Service_Analytics_ManagementDailyUploads_Resource

The "dailyUploads" collection of methods.

Defined (1)

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

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