我想知道是否有人有可用维度的列表可以与网站管理员工具API一起使用。
在官方文件中,我找不到可用的尺寸。
这是我的代码:
$webmastersService = new Google_Service_Webmasters($client);
$searchanalytics = $webmastersService->searchanalytics;
$request = new Google_Service_Webmasters_SearchAnalyticsQueryRequest;
$request->setStartDate('2013-01-01');
$request->setEndDate('2015-01-01');
$request->setDimensions(array("[query]"));
$qsearch = $searchanalytics->query("http://www.example.com", $request);
$rows = $qsearch->getRows();
我想知道什么数据可以从网站管理员工具api中获得,并在这条线上进行更改
$request->setDimensions(array("[query]"));
我的想法是从谷歌网站管理员工具中获得最大类型的数据,如查询、查询详细信息、页面、爬网统计、外部链接、反向链接。。。。
有关搜索查询的信息,您可以在搜索分析中找到。下面列出了支持的维度。
Acceptable values are:
"country": Filter against the specified country, as specified by 3-letter country code (ISO 3166-1 alpha-3).
"device": Filter results against the specified device type. Supported values:
DESKTOP
MOBILE
TABLET
"page": Filter against the specified URI string.
"query": Filter against the specified query string.
https://developers.google.com/webmaster-tools/v3/searchanalytics/query
您还可以生成爬网错误:
https://developers.google.com/webmaster-tools/v3/urlcrawlerrorscounts/queryhttps://developers.google.com/webmaster-tools/v3/urlcrawlerrorssamples