使用Youtube Data API编辑品牌帐户播放列表 [英] Using Youtube Data API to Edit with Brand Account Playlist

查看:65
本文介绍了使用Youtube Data API编辑品牌帐户播放列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有多个品牌帐户的gmail帐户(无google plus).每个品牌帐户都有自己的YouTube频道,可以发布不同的视频内容.

I have a gmail account ( sans google plus ) that has a number of brand accounts. Each brand account has it's own youtube channel that gets different video content published.

我编写了一个简单的Google Apps脚本,将视频插入品牌帐户的播放列表之一,但这不起作用.脚本本身应该可以正常工作,但是问题在于权限.

I've written a simple Google Apps Script to insert a video into one of the brand accounts playlists but this does not work. The script itself should work fine but the issue is with permissions.

运行脚本时,提示您授予它权限.我曾尝试以拥有品牌帐户的帐户所有者的身份运行它,但是我收到了一个禁止的错误消息.因此,它似乎必须作为品牌帐户本身运行.

When running the script, your prompted to give it permission. I've tried running it as the account owner that owns the brand account but I get a forbidden error. So it seems it has to be ran as the brand account itself.

有问题的品牌帐户确实具有关联的@ pages.plusgoogle.com电子邮件地址,该电子邮件地址具有可用于直接登录的密码.我怀疑这是运行该帐户的正确帐户,但是每次我这样做都接受权限,并且脚本不会运行.此后每次尝试运行它时,都会重复该过程,要求我接受许可,并且脚本不会运行.

The brand account in question does have an associated @pages.plusgoogle.com email address that has a password which you can use to login directly with. I suspect this is the correct account to run it under but every time I do so I accept the permissions and the script doesn't run. Each time I attempt to run it thereafter the process repeats, I'm asked to accept the permissions and the script doesn't run.

如何将脚本作为品牌帐户运行并接受权限?

How do I run the script as the brand account and accept the permissions?

推荐答案

似乎是我需要使用品牌帐户的@ pages.plusgoogle.com帐户登录 Google云端硬盘并运行脚本.

It seems the issue was that I needed to login to Google Drive with the brand account's @pages.plusgoogle.com account and run the script.

以上,我尝试以帐户所有者身份登录云端硬盘时运行脚本.如果执行此操作,它将在运行脚本时询问您要在哪个帐户下运行它?但是,正如原始问题所显示的,不管您选择什么,它都不会运行.

Above, I tried to run the script while signed in to Drive as the account owner. If you do this it will ask you, when you run the script, which account do you want to run it under? But as the original question shows it doesn't matter what you choose it won't run.

为澄清起见,您实际上必须作为品牌帐户登录 drive.google.com .

To clarify, you have to actually be signed in to drive.google.com as the brand account for it to work.

这篇关于使用Youtube Data API编辑品牌帐户播放列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆