Google_Service_AdSense_ReportsSaved_Resource

The "saved" collection of methods.

Defined (1)

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

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