From 4aaff2a00bf4331dec92156c95138e17f7707994 Mon Sep 17 00:00:00 2001 From: TrianguloY Date: Wed, 30 Mar 2022 16:52:53 +0200 Subject: [PATCH] Fix incorrect Google Developers channelId The snippet in https://developers.google.com/apps-script/advanced/youtube contains this sample code, as a way to subscribe to the Goggle Developers Youtube channel. When run, the account is subscribed to an unexpected channel: - Current, wrong: https://www.youtube.com/channel/UC9gFih9rw0zNCK3ZtoKQQyA (JennaMarbles) - Expected, correct: https://www.youtube.com/channel/UC_x5XG1OV2P6uZZ5FSM9Ttw (Google Developers) This error exists since at least 5 years ago when 9kopb notified it, but was ignored: https://github.com/googleworkspace/apps-script-samples/commit/499e6508653f6a620e34542f138d5b1a5aac69f2#r45916392 --- advanced/youtube.gs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/youtube.gs b/advanced/youtube.gs index c3e0dd8b3..9ba63a9ed 100644 --- a/advanced/youtube.gs +++ b/advanced/youtube.gs @@ -99,7 +99,7 @@ function retrieveMyUploads() { */ function addSubscription() { // Replace this channel ID with the channel ID you want to subscribe to - const channelId = 'UC9gFih9rw0zNCK3ZtoKQQyA'; + const channelId = 'UC_x5XG1OV2P6uZZ5FSM9Ttw'; const resource = { snippet: { resourceId: {