简体   繁体   English

Google Search Console API 未返回任何数据

[英]Google Search Console API is returning no data

I am getting empty data when trying to query the data.尝试查询数据时得到空数据。

Request Params:请求参数:

{
  "startDate": "2021-07-24",
  "endDate": "2021-10-04",
  "aggregationType": "AUTO",
  "dataState": "ALL",
  "rowLimit": 20,
  "searchType": "WEB"
}

Response:回复:

{
  "rows": [
    {
      "clicks": 0,
      "impressions": 0,
      "ctr": 0,
      "position": 0
    }
  ],
  "responseAggregationType": "byProperty"
}

In the Search Console I can clearly see the amount of clicks and impressions but why I am receiving zero data for this timeframe?在 Search Console 中,我可以清楚地看到点击次数和展示次数,但为什么我在此时间范围内收到的数据为零? I also checked the domain properties and they are the same.我还检查了域属性,它们是相同的。

I used the wrong "siteUrl" for the query.我在查询中使用了错误的“siteUrl”。 When trying to get your data from a "example.com" domain (without www. in front), your siteUrl is sc-domain:example.com.尝试从“example.com”域(前面没有 www.)获取数据时,您的 siteUrl 是 sc-domain:example.com。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google Search Console API 建议为不熟悉的项目编号启用 API - Google Search Console API suggests enabling API for unfamiliar project number 谷歌开发者控制台 API 密钥 - Google developer console API Key 将 Python 脚本转换为 Google Cloud Function:将 Search Console 数据导出到 Big Query - Convert a Python Script into Google Cloud Function: Exporting Search Console data into Big Query 当我尝试将数据从 Google Search Console 提取到 BigQuery 时,如何阻止我的脚本超时? - How do I stop my script from timing out when I try to extract data from Google Search Console to BigQuery? Google 表格 API 只返回不必要的信息 - Google Sheets API only returning unecessary information Google 数据流 api 返回空结果 - Google dataflow api is returning empty result Google Search Console 无法索引我的 React Webapp - Google Search Console can't index my React Webapp 该请求缺少有效的 API 密钥 Google 搜索 API python - The request is missing a valid API key Google search API python 代表最终用户查询 Google Search Console:invalid_grant - Querying Google Search Console on behalf of end-user: invalid_grant 如何在 Google 数据目录搜索中使用 includeProjectIds? - How is includeProjectIds used in Google data catalog search?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM