Elijas / auto-youtube-subscription-playlist-2

Script automatically adds videos to playlists from Youtube channels and/or subscriptions (Youtube Collections alternative).
MIT License
252 stars 54 forks source link

Quota Exceeded #78

Closed MrCaspan closed 4 years ago

MrCaspan commented 4 years ago

Does this project use the same key and ID? I keep getting

Could not get subscribed channels, ERROR: Message: [API call to youtube.subscriptions.list failed with error: The request cannot be completed because you have exceeded your quota.] Details: {"errors":[{"domain":"youtube.quota","message":"The request cannot be completed because you have exceeded your <a href=\"/youtube/v3/getting-started#quota\">quota.","reason":"quotaExceeded"}],"code":403,"message":"The request cannot be completed because you have exceeded your <a href=\"/youtube/v3/getting-started#quota\">quota."}

No matter what day or anything. How do i fix this issues as it was working perfectly fine till about May 22nd and this started to happen. I have thousands of calls i can use but i am curious if this is using your Key and your KEY is reached its limit.

victorjzsun commented 4 years ago

I know for sure we aren't using the same key and ID since each script's project (and hence quota) is linked to and only accessible in the spreadsheet it's used in.

If you want to make sure, follow the steps here to create a new GCP project and link the script there. Then, assuming you set up everything correctly, you can run your script using that new project and you can view the quota usage on the project's API quotas page.

Make sure you are using the most up to date version, especially if you are using a version that doesn't have the getVideoIdsWithLessQueries function.

MrCaspan commented 4 years ago

Whats funny is when I go into the section where I select the project to associate the script to it was not associated to any project. How is that possible? Its associated to a dedicated project now and works perfectly fine!

victorjzsun commented 4 years ago

Usually when a script is created, it's associated with a default apps script project, as shown below. If it didn't even have this project, then I'm not sure how it even worked!? image

Anyways, glad it works now, you can close this issue if there are no other concerns.

MrCaspan commented 4 years ago

Thanks