youtube 分析 API 错误 403,accessNotConfigured [英] youtube analytics api error 403, accessNotConfigured

查看:114
本文介绍了youtube 分析 API 错误 403,accessNotConfigured的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试执行用于提取 YouTubeAnalyticsReports 的 Java 示例代码.

I am trying to execute the java sample code for pulling YouTubeAnalyticsReports.

https://developers.google.com/youtube/analytics/v1/code_samples/java

我收到 com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden{代码":403,错误":[{域":使用限制","message" : "访问未配置",原因":accessNotConfigured"}],

I get com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden { "code" : 403, "errors" : [ { "domain" : "usageLimits", "message" : "Access Not Configured", "reason" : "accessNotConfigured" } ],

我已经配置了服务-YouTube 分析 API 的访问权限.

I have configured the access for Services-YouTube Analytics API.

第一次运行时,浏览器出现了,我必须授予应用程序访问数据的权限.在那之后,我一直收到 403 错误.我检查了配额,我几乎没有使用过.

When the ran for the first time, a browser came up and I had to give permission for the application to access the data. I have been getting the 403 error after that. I have checked the quota and I have hardly used any.

推荐答案

您尚未在 开发控制台.启用并等待 15 分钟后,它应该可以工作了.

You haven't enabled YouTube Analytics API v3 and Data API v3 in your devconsole. Once you enable and wait for 15 minutes, it should work.

这篇关于youtube 分析 API 错误 403,accessNotConfigured的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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