我想知道是否有人有一个可用的维度列表,可以使用的网站管理员工具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();我想知道有哪些数据可以从webmaster tools中获得,并对这一行进行更改。
$request->setDimensions(array("[query]"));我的想法是从google网站管理员工具中获得最大类型的数据,如查询、查询详细信息、页面、爬行状态、外部链接、反向链接、.
发布于 2015-11-24 13:41:21
有关搜索查询的信息,您可以在“搜索分析”中找到。下面列出了支持的维度。
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/query https://developers.google.com/webmaster-tools/v3/urlcrawlerrorssamples
https://stackoverflow.com/questions/33884592
复制相似问题