Google_AccountsReportsSavedServiceResource

The "saved" collection of methods.

Defined (1)

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

/google-api/src/contrib/Google_AdsenseService.php  
  1. class Google_AccountsReportsSavedServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Generate an AdSense report based on the saved report ID sent in the query parameters. 
  6. * (saved.generate) 
  7. * @param string $accountId Account to which the saved reports belong. 
  8. * @param string $savedReportId The saved report to retrieve. 
  9. * @param array $optParams Optional parameters. 
  10. * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified. 
  11. * @opt_param int maxResults The maximum number of rows of report data to return. 
  12. * @opt_param int startIndex Index of the first row of report data to return. 
  13. * @return Google_AdsenseReportsGenerateResponse 
  14. */ 
  15. public function generate($accountId, $savedReportId, $optParams = array()) { 
  16. $params = array('accountId' => $accountId, 'savedReportId' => $savedReportId); 
  17. $params = array_merge($params, $optParams); 
  18. $data = $this->__call('generate', array($params)); 
  19. if ($this->useObjects()) { 
  20. return new Google_AdsenseReportsGenerateResponse($data); 
  21. } else { 
  22. return $data; 
  23. /** 
  24. * List all saved reports in the specified AdSense account. (saved.list) 
  25. * @param string $accountId Account to which the saved reports belong. 
  26. * @param array $optParams Optional parameters. 
  27. * @opt_param int maxResults The maximum number of saved reports to include in the response, used for paging. 
  28. * @opt_param string pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. 
  29. * @return Google_SavedReports 
  30. */ 
  31. public function listAccountsReportsSaved($accountId, $optParams = array()) { 
  32. $params = array('accountId' => $accountId); 
  33. $params = array_merge($params, $optParams); 
  34. $data = $this->__call('list', array($params)); 
  35. if ($this->useObjects()) { 
  36. return new Google_SavedReports($data); 
  37. } else { 
  38. return $data;