如何使用Google Apps脚本插入YouTube频道横幅?
您好Stackoverflow社区。
我想知道如何使用ChannelBanners更新频道横幅图像:Google Apps脚本上的YouTube数据API插入方法( https://developers.google.com/youtube/v3/docs/channelbanners/insert/insert )
任何人都可以帮助我创建应用程序脚本代码来做到这一点吗?
感谢您的帮助!
Hello stackoverflow community.
I want to know how to update my channels banner image with the ChannelBanners: insert method from the YouTube Data API on Google Apps Script (https://developers.google.com/youtube/v3/docs/channelBanners/insert)
Can anybody help me to create an Apps Script code to do this?
Thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您的目标如下。
在这种情况下,以下示例脚本怎么样?
请将要使用的图像文件放在Google驱动器中,然后检索文件ID。
示例脚本:
在使用此脚本之前Google服务。并且,请在Google驱动器上设置您的频道ID和图像文件的文件ID。
运行此脚本时,将检索的图像设置为频道的横幅。
关于图像大小,官方文件显示如下。请小心。
参考:
I believe your goal is as follows.
In this case, how about the following sample script?
Please put an image file you want to use to your Google Drive, and retrieve the file ID.
Sample script:
Before you use this script, please enable YouTube Data API at Advanced Google services. And, please set your channel ID and the file ID of the image file on your Google Drive.
When this script is run, the retrieved image is set as the banner of the channel.
About the image size, the official document says as follows. Please be careful about this.
Reference: