Reputation: 31
Here is a link to a direct copy of the spreadsheet: Sheets
The script that has stopped working is called "Live", 24 Hour still works as intended. When running the script (as it should On Open) it no longer updates, instead the following error message appears;
GoogleJsonResponseException: API call to youtube.videos.list failed with error: The request specifies an invalid filter parameter. (line 41, file "Live")
I haven't touched or changed anything about the script since it was created, and I have been using the same script for several months on each spreadsheet I have (youll notice the spreadsheet is named after the month its in use)
Upvotes: 3
Views: 2158
Reputation: 4419
maxResults
filter's maximum of 50 Ids.You are making a request to YouTube.Videos.List
and using the id
filter.
maxResults
Optional parameter states a max value of 50, even though not in conjuction with the id
filter.Ids
per request at 50. (Make multiple requests if needed.)Youtube API Videos.List documentation.
Upvotes: 7