0
我沒有使用Google搜索控制檯API獲取結果。同時呼籲其放棄 未捕獲的異常 'Google_Exception' 與信息功能「(查詢)缺少必需的PARAM: 'SITEURL' SITEURL /測試-AAP/src目錄/谷歌/服務/ Resource.php:165Google搜索控制檯API - UrlCrawlErrorCountsPerType
$timestamp = strtotime('1 month ago');
$query = new Google_Service_Webmasters_UrlCrawlErrorCountsPerType();
$query->setCategory("authPermissions");
$filter = new Google_Service_Webmasters_UrlCrawlErrorCount();
$filter->setCount('5');
$filter->setTimestamp($timestamp);
$check = $query->setEntries(array($filter));
$query->setPlatform("web");
$getSearchresponseOb = $service->urlcrawlerrorscounts->query('siteurl','soft404','true','web');
$getSearchresponse = $getSearchresponseOb->toSimpleObject();
print_r($getSearchresponse);