Not Working: Track YouTube video views and comments

85 views
Skip to first unread message

Brandon Kaplan

unread,
Jan 8, 2024, 11:19:15 AM1/8/24
to Google Apps Script Community
Google's YouTube Stat tracking AppScript seems to have stopped working in the new year. When I try to run the script, I get the following error:

TypeError: Cannot read properties of undefined (reading 'indexOf')
Code.gs:110
Code.gs:58
Code.gs:40

Any ideas how I can fix this? Is it possible to fix on my end?

Link to Google Dev page:
https://developers.google.com/apps-script/samples/automations/youtube-tracker

Link to source code:
Message has been deleted

Bikram Purkait

unread,
Jan 9, 2024, 6:46:49 AM1/9/24
to Google Apps Script Community
Hi  Brandon,

I have modified some functions in the code and they are now working properly. Please check the sheet, I am giving you the editor access(Check your mail).


Bikram.

George Ghanem

unread,
Jan 9, 2024, 9:28:56 PM1/9/24
to google-apps-sc...@googlegroups.com
The error is saying that the url being passed in has no value in it. 

How are you running this?

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/4f4ea846-d28c-4247-a022-d7d300afc2dan%40googlegroups.com.

Bikram Purkait

unread,
Jan 9, 2024, 11:00:12 PM1/9/24
to Google Apps Script Community
Can you share the link or the screenshot of the error? 
Message has been deleted

Brandon Kaplan

unread,
Jan 10, 2024, 2:32:39 PM1/10/24
to Google Apps Script Community
Hi Bikram - that fixed the sheet. Thank you for your help.

Bikram Purkait

unread,
Jan 10, 2024, 2:38:27 PM1/10/24
to google-apps-sc...@googlegroups.com
Glad to hear that the sheet is fixed now. You're welcome, happy to help anytime.

If you need further assistance, don't hesitate to let me know.
Let's connect on LinkedInhttps://www.linkedin.com/in/bikrampurkait

Best regards,
Bikram

You received this message because you are subscribed to a topic in the Google Groups "Google Apps Script Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-script-community/h8hF8ldlgTM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/062116af-695c-4103-a14b-46508b3e2350n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages