Google Apps Script Quota

只谈情不闲聊 提交于 2019-12-24 12:24:54

问题


I'm running an Apps Script that changes rows in a Google Sheet through URL access, deployed as a web app. Something like macroUrl/?sheet=SheetName&key=KeyName&value=ValueName .

This works perfectly for what I need it but I'm unsure on the quotas imposed on it. Really all I'm doing is using the doGet and doPost functions in the script to grab/push rows to the sheet, however I foresee myself possibly accessing it upwards of 50k times per day. I'm unsure how to test for the max number of requests that I can make and google's quota page is rather confusing.

--Henry


回答1:


if you are using spreadsheetApp then there are no quotas you need to worry, however you may exceed the total daily script execution time. see here for more details: https://developers.google.com/apps-script/guides/services/quotas#current_quotas

urlFetch quotas do not apply unless you are making the call to the spreadsheets api v3/v4 directly without spreadsheetApp.




回答2:


Doing this 50k times per day, the quota you will definitely hit is the number of times you can call UrlFetch from within your script.

If you are calling UrlFetch from within Apps Script, there is a quota of 20,000 calls per day for GMail accounts, and higher if you're using Apps for Your Domain or Apps for Work.

You may also run into the daily limit for UrlFetch data transfer. Right now that stands at 100MB per day.



来源:https://stackoverflow.com/questions/31323979/google-apps-script-quota

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!