如何使用 YouTube 分析货币 [英] How to use YouTube analytics monetary

查看:24
本文介绍了如何使用 YouTube 分析货币的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从 YouTube 分析 API 访问收入和货币化播放,我能得到的只是401 未经授权"-响应.我已使用 OAuth2 登录并使用了范围

I am trying to access earnings and monetizedPlaybacks from the YouTube analytics API and all I am able to get is "401 Unauthorized"-Responses. I have logged in using OAuth2 and I used the scopes

这是我在我的应用程序中使用的 Java-Snippet:

Here is the Java-Snippet that I use in my application:

analytics.reports()
        .query("channel==" + channelId, "2013-06-01", "2013-07-01", "earnings,views,monetizedPlaybacks")
        .setFilters("video==" + videoId)
        .setDimensions("month")
        .execute()

我也尝试使用 APIs Explorer,但行为相同.

I also tried to use the APIs Explorer, but this behaves identical.

如果我只检索观看次数(没有收入,也没有货币化播放次数),一切正常.

If I retrieve only the number of views (no earnings and not monetizedPlaybacks) everything works fine.

我发现这个错误报告声称API 已损坏,但引起的反应却非常少.

I found this bugreport that claims that the API is broken, but it causes remarkably few reactions.

任何想法表示赞赏.

推荐答案

此功能目前在 youtube 合作伙伴的 API 中不可用,即使可以使用 GUI 检索信息.相反,需要一个 CMS 帐户.

This feature is currently not available in the API for youtube partner even though the information can be retrieved using the GUI. Instead a CMS-Account is needed.

有一个关于该问题的错误报告/功能请求:

There is a bugreport / feature request about the issue:

https://code.google.com/p/gdata-issues/issues/detail?id=4826

这篇关于如何使用 YouTube 分析货币的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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