Prohibit GAS Youtube Data Api Access

Asked 2 years ago, Updated 2 years ago, 119 views

Hello
I'd like to ask you about the error on YouTubeDataApi in GoogleAppsScript.
I am writing a program on GAS that adds links to videos in spreadsheets to YouTube playlists. I got this error when I ran the program.

GoogleJsonResponseException:API call to YouTube.playlistItems.list failed with error: Access Forbiden.The authenticated user cannot access this service.

Before this error occurred, the additional process was successful, but
One day, I suddenly got this error when I was running.

GoogleJsonResponseException: API call to youtube.playlistItems.list failed with the following error: Access is prohibited. Authenticated users cannot access this service.

In a literal translation, this is what it looks like, but I think I did authentication at the time of the first execution.
I turned off the Youtube Data Api service and put it back in, but I still got the error like the one above, so
The program could not run successfully.

  • Why do I get this error
  • How to resolve this error
  • Using a Google Workspace account distributed by the school

That's all.
I would appreciate it if you could let me know if anyone knows anything about it.
Thank you for your cooperation.

google-apps-script youtube-data-api youtube

2022-09-30 19:33

1 Answers

Google Workspace allows administrators to restrict access to YouTube, so this may be the case.

https://support.google.com/a/answer/6212415?hl=ja


2022-09-30 19:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.