Google_ReportsFilesServiceResource

The "files" collection of methods.

Defined (1)

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

/google-api/src/contrib/Google_DfareportingService.php  
  1. class Google_ReportsFilesServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Retrieves a report file. (files.get) 
  6. * @param string $profileId The DFA profile ID. 
  7. * @param string $reportId The ID of the report. 
  8. * @param string $fileId The ID of the report file. 
  9. * @param array $optParams Optional parameters. 
  10. * @return Google_DfareportingFile 
  11. */ 
  12. public function get($profileId, $reportId, $fileId, $optParams = array()) { 
  13. $params = array('profileId' => $profileId, 'reportId' => $reportId, 'fileId' => $fileId); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('get', array($params)); 
  16. if ($this->useObjects()) { 
  17. return new Google_DfareportingFile($data); 
  18. } else { 
  19. return $data; 
  20. /** 
  21. * Lists files for a report. (files.list) 
  22. * @param string $profileId The DFA profile ID. 
  23. * @param string $reportId The ID of the parent report. 
  24. * @param array $optParams Optional parameters. 
  25. * @opt_param int maxResults Maximum number of results to return. 
  26. * @opt_param string pageToken The value of the nextToken from the previous result page. 
  27. * @opt_param string sortField The field by which to sort the list. 
  28. * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. 
  29. * @return Google_FileList 
  30. */ 
  31. public function listReportsFiles($profileId, $reportId, $optParams = array()) { 
  32. $params = array('profileId' => $profileId, 'reportId' => $reportId); 
  33. $params = array_merge($params, $optParams); 
  34. $data = $this->__call('list', array($params)); 
  35. if ($this->useObjects()) { 
  36. return new Google_FileList($data); 
  37. } else { 
  38. return $data;