Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script constantly reaches Youtube API Quota #28

Closed
chz101 opened this issue Jan 31, 2019 · 10 comments
Closed

Script constantly reaches Youtube API Quota #28

chz101 opened this issue Jan 31, 2019 · 10 comments

Comments

@chz101
Copy link

chz101 commented Jan 31, 2019

I find that the script fails to update my playlists because the quota is exceeded.
chrome_2019-01-31_11-51-29
Is there any way to bypass this daily limit or do I just have to deal with it?

@chz101 chz101 changed the title Script Constantly reaches Youtube API Quota Script constantly reaches Youtube API Quota Jan 31, 2019
@Fabian42
Copy link
Contributor

Fabian42 commented Jan 31, 2019 via email

@chz101
Copy link
Author

chz101 commented Feb 1, 2019

Was there a previous version of this script that used API Keys? Previously I never had any problem with quotas, but ever since I updated the spreadsheet, I'm running into problems.

@JesperDramsch
Copy link
Collaborator

@infam Did you ensure in: https://github.com/Elijas/auto-youtube-subscription-playlist-2#set-up-instructions

2. Allow the Sheets to access Youtube:
  - Open the `Script Editor` (in menu: `Tools` / `Script Editor...`) of the Sheet
      - In menu: `Resources` / `Advanced Google Services`
      - Scroll down and make sure `YouTube Data API` is enabled
      - Then, `Google Developers Console` / `Youtube Data API` / `Enable API`, close the tab, go back to Script Editor and click `OK`
      - Continue only after the yellow `Updating Google Services` box disappears in the top of the Script Editor
  - Close the Developers Console and Script Editor, open the Sheet again
      - In menu: `Functions` / `Update Playlists`
      - Grant access in the dialog

@zpxociq
Copy link

zpxociq commented Oct 16, 2019

I struggled with same error and I am not able to follow the step of going to 'Google Developers Console' from script editor. I don't see such option anywhere on script editor or under advanced Google services. So I directly google and reached 'Google Developers Console' and enabled API but they asked me to create credentials which I wasn't sure of.
So at this stage although API is enabled inside Youtube Data API, I get the quota overflow error.

@nbcartier
Copy link

^ bump. I was faced with the same error as "zpxociq"

@victorjzsun
Copy link
Collaborator

victorjzsun commented Feb 9, 2020

@infam @zpxociq @nbcartier I'm not sure if anyone is still monitoring this thread for changes, but I have reduced the quota calls with the newest release. Please make a copy of the sheet again, follow the setup instructions, and let me know if you're still having quota issues. Remember, you cannot add 200 (or close to) videos on the same day using this script.

@JesperDramsch
Copy link
Collaborator

Just ran into the same issue when copying a new spreadsheet and authorizing it.

I cannot figure out how to add the new spreadsheet to the Google Dev Console and increase the Youtube API quota.

@victorjzsun
Copy link
Collaborator

@JesperDramsch It's a weird process as explained here. A sheet-bound script has an automatically-created default Google Cloud Platform (GCP) project that you can't see nor modify. It automatically gets access to the APIs required as well. In order to manage the project yourself, you need to migrate the script to a standard GCP project. Once you've set up the script to use a standard project, you can view quotas and usage. However, from what I've tried, you can't increase the quota without having to go through a whole application process.

@JesperDramsch
Copy link
Collaborator

I see, so effectively new users have to turn down the update frequency to make this work.

@victorjzsun
Copy link
Collaborator

victorjzsun commented Dec 29, 2021

Doesn't look like anyone is still having quota issues that we can address so will close due to inactivity. P.S. remember that each sheet has its own quota so if you are having issues, just create multiple sheets and spread your subscriptions across them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants