batchUpdate 调用如何计入使用限制?

0cd*_*0cd 5 google-api-python-client google-sheets-api

spreadsheets.batchUpdate类似 和的调用spreadsheets.values.batchUpdate可以在一次调用中执行多个更新操作。

我在https://developers.google.com/sheets/api/limits上阅读了有关 google Sheets api 使用限制的信息,但是尚不清楚这些调用是否算作一个或多个请求。你能解释一下吗?

谢谢

Tan*_*ike 5

spreadsheets.batchUpdate和 时spreadsheets.values.batchUpdate,即使 的批量请求中包含多个请求batchUpdate,该请求也仅使用一个 API。

例如,当 的请求体包含 10 个请求batchUpdate且请求体由 运行时batchUpdate,仅使用 1 个 API。

关于一次batchUpdate的最大请求数,我从来没有调查过。但根据我的经验,当我在一次批量更新中使用了 100,000 个请求时,我可以确认该脚本运行良好。

如果我误解了你的问题,我深表歉意。