Google_Service_AdSense_ReportsSaved_Resource

The "saved" collection of methods.

Defined (1)

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

/vendor/google/apiclient/src/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 The saved report to retrieve. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string locale Optional locale to use for translating report output 
  9. * to a local language. Defaults to "en_US" if not specified. 
  10. * @opt_param int maxResults The maximum number of rows of report data to 
  11. * return. 
  12. * @opt_param int startIndex Index of the first row of report data to return. 
  13. * @return Google_Service_AdSense_AdsenseReportsGenerateResponse 
  14. */ 
  15. public function generate($savedReportId, $optParams = array()) 
  16. $params = array('savedReportId' => $savedReportId); 
  17. $params = array_merge($params, $optParams); 
  18. return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse"); 
  19.  
  20. /** 
  21. * List all saved reports in this AdSense account. (saved.listReportsSaved) 
  22. * @param array $optParams Optional parameters. 
  23. * @opt_param int maxResults The maximum number of saved reports to include in 
  24. * the response, used for paging. 
  25. * @opt_param string pageToken A continuation token, used to page through saved 
  26. * reports. To retrieve the next page, set this parameter to the value of 
  27. * "nextPageToken" from the previous response. 
  28. * @return Google_Service_AdSense_SavedReports 
  29. */ 
  30. public function listReportsSaved($optParams = array()) 
  31. $params = array(); 
  32. $params = array_merge($params, $optParams); 
  33. return $this->call('list', array($params), "Google_Service_AdSense_SavedReports");