Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do batchUpdate calls count towards usage limits?

Calls like spreadsheets.batchUpdate and spreadsheets.values.batchUpdate can take multiple update actions in a single call.

I read about google sheets api usage limits at https://developers.google.com/sheets/api/limits, however it is not clear if these calls would count as one or multiple requests. Could you explain?

Thanks

like image 307
0cd Avatar asked Jun 11 '19 05:06

0cd


People also ask

Is there a limit to Google Sheets?

We've increased the cell limit in Google Sheets from up to five million cells to up to ten million cells. This limit applies to new, existing, and imported files.

Does Google Sheets have a row limit?

Google Spreadsheets are extremely powerful and convert very well from Excel, but they do have some limitations: Up to 10 million cells for spreadsheets that are created in or converted to Google Sheets. 40,000 new rows at a time. Maximum number of columns of 18,278 columns.


1 Answers

At spreadsheets.batchUpdate and spreadsheets.values.batchUpdate, even when multiple requests are included in one batch request of batchUpdate, the request uses only one API.

For example, when 10 requests are included in the request body of batchUpdate and the request body is run by batchUpdate, only one API is used.

About the maximum requests in one batchUpdate, I have never investigated this. But in my experience, when I had used 100,000 requests in one batchUpdate, I could confirm that the script worked fine.

If I misunderstood your question, I apologize.

like image 79
Tanaike Avatar answered Oct 18 '22 07:10

Tanaike