Google 分析管理 API 写入请求配额限制

Google Analytics Management API write requests quota limit

Google 分析管理写入 API 配额限制是多少?是每天 50 个请求还是 500 个,因为文档说明每天是 50 个请求,但是当我填写配额增加需求表时,它说是 500 个请求。

50个请求似乎太低了,我的项目就是这样。

另一方面,我在哪里可以查看写请求的日常使用情况?控制台使用选项卡不显示它。

编辑:这是要求增加配额限制的Google表格的屏幕截图

Google form quota limits

Google 管理写入 API 每天有 500 个请求。

配额限制在很大程度上取决于您使用的方法。请查阅 Quota Limits 文档。

The following quotas apply to Management API, Core Reporting API v3, MCF Reporting API, Metadata API, User Deletion API, and Real Time Reporting API:

  • 每天每个项目 50,000 个请求,可以增加。
  • 每个 IP 地址每秒 10 次查询 (QPS)。
    • 在 API 控制台中,有一个类似的配额,称为每个用户每 100 秒的请求数。默认情况下,它设置为每个用户每 100 秒 100 个请求,并且可以调整为最大值 1,000。但是对 API 的请求数限制为每个用户每秒最多 10 个请求。
  • 如果您的应用程序从单个 IP 地址发出所有 API 请求(即代表您的用户),请在每个请求中使用 userIP 或 quotaUser 参数以获得每个用户的完整 QPS 配额。有关详细信息,请参阅标准查询参数摘要。

Write APIs These quotas apply to the write (insert, update, patch, and delete) requests:

  • 每天每个项目 50 个写入请求,可以增加
  • 每个帐户 ID 每秒 1.5 次查询 (QPS)

实际配额

来自 Google

的回复

the default quota is 50.

There used to be a whitelist so it was effectively 0 until you got whitelisted and then it was 500 (once whitelisted). We removed the whitelist and reduced it to 50 so that people can use the API without having to wait to be whitelsited. If they need more they can request additional quota.

我想完全一样。我希望将我的写入配额增加到 500。 根据我的经验,您的写入请求的使用率低于 "Queries per day"。今天早上我只发出了 50 个写请求,它现在显示了今天的 50/50 000 个查询。真的没有意义...

这 post 不会清除写入配额,但它会显示混乱的根源 - 希望 Google 会澄清这一点

api-quota-faqs page 澄清了有关配额和批处理的一些含糊之处(例如,批处理对管理 API 写配额没有帮助)。

但 50 与 500 的歧义目前仍然存在:该页面的当前版本显示 "Last updated April 13, 2018":

What is the maximum quota increase limit for Management API write requests?

The maximum daily quota per project for Management API write requests is 500. We normally don't grant more than 1,000 to 2,000 write requests per project per day. In some cases, we grant higher limits temporarily. Please include your justification in the quota increase request form.

提交前需要阅读该页面 the form to request an increase 但显示 50 - 参见图片

我们的使用指标显示当天有 71 个成功的管理 API 写入请求,但我们仍然遇到写入配额错误 - 因此 50 和 500 都没有经过验证。

关于查找用法:

(我没有看到我们的管理 API 写入配额与其他配额一起列出) 流量和错误指标位于 APIs & Services > Dashboard。

点击 Analytics API 将带您查看详细指标,其中包含按方法(例如插入、更新等)列出的列表 URL 是: https://console.developers.google.com/apis/api/analytics.googleapis.com/metrics?project=project-id-9731708857265513301(替换为您的项目 ID)