我正在尝试访问我是所有者但不是主要所有者的帐户的Youtube Analytics数据。
我可以使用我的帐户登录,该帐户成功创建了一个客户端,但似乎被禁止从相关渠道访问数据。我曾尝试以YouTube频道登录,这是oauth进程将我引到的accounts.google.com登录屏幕上的一个建议选项,但我收到错误403:org_internal,因为oauth客户端仅限于用户在我们组织内。
使用通过我自己的帐户进行身份验证的googleapiclient对象,我正在打电话:
service.reports().query(
ids='channel==CHANNEL',
startDate=start,
endDate=end,
metrics=','.join(VIDSTATSTITLES),
dimensions='day',
sort='day',
filters='video=={}'.format(title)
).execute()
但是它返回403禁止错误。
遇到相同的问题。您解决了吗?
谢谢。