Google_Service_Webmasters_Urlcrawlerrorscounts_Resource

The "urlcrawlerrorscounts" collection of methods.

Defined (1)

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

/google_api/Service/Webmasters.php  
  1. class Google_Service_Webmasters_Urlcrawlerrorscounts_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Retrieves a time series of the number of URL crawl errors per error category 
  5. * and platform. (urlcrawlerrorscounts.query) 
  6. * @param string $siteUrl The site's URL, including protocol, for example 
  7. * 'http://www.example.com/' 
  8. * @param array $optParams Optional parameters. 
  9. * @opt_param string category The crawl error category, for example 
  10. * 'serverError'. If not specified, we return results for all categories. 
  11. * @opt_param string platform The user agent type (platform) that made the 
  12. * request, for example 'web'. If not specified, we return results for all 
  13. * platforms. 
  14. * @opt_param bool latestCountsOnly If true, returns only the latest crawl error 
  15. * counts. 
  16. * @return Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse 
  17. */ 
  18. public function query($siteUrl, $optParams = array()) 
  19. $params = array('siteUrl' => $siteUrl); 
  20. $params = array_merge($params, $optParams); 
  21. return $this->call('query', array($params), "Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse");