MonsterInsights_GA_Lib_Service_Webmasters_Urlcrawlerrorssamples_Resource

The "urlcrawlerrorssamples" collection of methods.

Defined (1)

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

/assets/lib/google/src/Google/Service/Webmasters.php  
  1. class MonsterInsights_GA_Lib_Service_Webmasters_Urlcrawlerrorssamples_Resource extends MonsterInsights_GA_Lib_Service_Resource 
  2.  
  3. /** 
  4. * Retrieves details about crawl errors for a site's sample URL. 
  5. * (urlcrawlerrorssamples.get) 
  6. * @param string $siteUrl The site's URL, including protocol. For example: 
  7. * http://www.example.com/ 
  8. * @param string $url The relative path (without the site) of the sample URL. It 
  9. * must be one of the URLs returned by list(). For example, for the URL 
  10. * https://www.example.com/pagenameon the site https://www.example.com/, the 
  11. * url value ispagename 
  12. * @param string $category The crawl error category. For example: 
  13. * authPermissions 
  14. * @param string $platform The user agent type (platform) that made the request. 
  15. * For example: web 
  16. * @param array $optParams Optional parameters. 
  17. * @return MonsterInsights_GA_Lib_Service_Webmasters_UrlCrawlErrorsSample 
  18. */ 
  19. public function get($siteUrl, $url, $category, $platform, $optParams = array()) 
  20. $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); 
  21. $params = array_merge($params, $optParams); 
  22. return $this->call('get', array($params), "MonsterInsights_GA_Lib_Service_Webmasters_UrlCrawlErrorsSample"); 
  23.  
  24. /** 
  25. * Lists a site's sample URLs for the specified crawl error category and 
  26. * platform. (urlcrawlerrorssamples.listUrlcrawlerrorssamples) 
  27. * @param string $siteUrl The site's URL, including protocol. For example: 
  28. * http://www.example.com/ 
  29. * @param string $category The crawl error category. For example: 
  30. * authPermissions 
  31. * @param string $platform The user agent type (platform) that made the request. 
  32. * For example: web 
  33. * @param array $optParams Optional parameters. 
  34. * @return MonsterInsights_GA_Lib_Service_Webmasters_UrlCrawlErrorsSamplesListResponse 
  35. */ 
  36. public function listUrlcrawlerrorssamples($siteUrl, $category, $platform, $optParams = array()) 
  37. $params = array('siteUrl' => $siteUrl, 'category' => $category, 'platform' => $platform); 
  38. $params = array_merge($params, $optParams); 
  39. return $this->call('list', array($params), "MonsterInsights_GA_Lib_Service_Webmasters_UrlCrawlErrorsSamplesListResponse"); 
  40.  
  41. /** 
  42. * Marks the provided site's sample URL as fixed, and removes it from the 
  43. * samples list. (urlcrawlerrorssamples.markAsFixed) 
  44. * @param string $siteUrl The site's URL, including protocol. For example: 
  45. * http://www.example.com/ 
  46. * @param string $url The relative path (without the site) of the sample URL. It 
  47. * must be one of the URLs returned by list(). For example, for the URL 
  48. * https://www.example.com/pagenameon the site https://www.example.com/, the 
  49. * url value ispagename 
  50. * @param string $category The crawl error category. For example: 
  51. * authPermissions 
  52. * @param string $platform The user agent type (platform) that made the request. 
  53. * For example: web 
  54. * @param array $optParams Optional parameters. 
  55. */ 
  56. public function markAsFixed($siteUrl, $url, $category, $platform, $optParams = array()) 
  57. $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); 
  58. $params = array_merge($params, $optParams); 
  59. return $this->call('markAsFixed', array($params));