Mryqu's Notes


  • 首页

  • 搜索
close

解决"Access Not Configured. The API (YouTube Analytics API) is not enabled for your project."

时间: 2015-10-16   |   分类: DataBuilder     |   阅读: 137 字 ~1分钟

在用Google Developers OAuth 2.0 Playground试用Google YoutubeAnalytics API时总是返回下列403 Forbidden错误:

{
  "code" : 403,
  "errors" : [ {
    "domain" : "usageLimits",
    "message" : "Access Not Configured. The API (YouTube Analytics API) is not enabled for your project. Please use the Google Developers Console to update your configuration.",
    "reason" : "accessNotConfigured",
    "extendedHelp" : "https://console.developers.google.com"
  } ],
  "message" : "Access Not Configured. The API (YouTube Analytics API) is not enabled for your project. Please use the Google Developers Console to update your configuration."
}

在https://console.developers.google.com查看我的项目,各种可能需要的API都激活了:

  • Analytics API
  • BigQuery API
  • Cloud Debugger API
  • Contacts API
  • Debuglet Controller API
  • Google Cloud Logging API
  • Google Cloud SQL
  • Google Cloud Storage
  • Google Cloud Storage JSON API
  • Google+ API
  • Google+ Domains API
  • YouTube Analytics API
  • YouTube Data API v3
  • YouTube Reporting API

解决 “Access Not Configured. The API (YouTube Analytics API) is not enabled for your project.”

最后的解决过程如下:

  • 创建一个web应用证书,关键是其redirectURI为https://developers.google.com/oauthplayground。 解决 “Access Not Configured. The API (YouTube Analytics API) is not enabled for your project.”
  • 关键的一点是在Google Developers OAuth 2.0 Playground中采用**“Use yourown OAuthcredentials”**。我觉得403错误可能是playground自动创建的证书没有和自己的项目绑定,因此认为YoutubeAnalytics API没有激活。 解决 “Access Not Configured. The API (YouTube Analytics API) is not enabled for your project.”
  • 200OK出来了,搞定: 解决 “Access Not Configured. The API (YouTube Analytics API) is not enabled for your project.”

当然,类似查询也可以在Google API Explorer里面完成,而且没碰到什么障碍。 解决 “Access Not Configured. The API (YouTube Analytics API) is not enabled for your project.”

标题:解决"Access Not Configured. The API (YouTube Analytics API) is not enabled for your project."
作者:mryqu
声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 CN 许可协议。转载请注明出处!

#youtube# #analytics# #usagelimits# #accessnotconfigured# #403#
Hello Youtube Analytics
Use proxy on Google Analytics API
  • 文章目录
  • 站点概览

Programmer & Architect

662 日志
27 分类
1472 标签
GitHub Twitter FB Page
© 2009 - 2023 Mryqu's Notes
Powered by - Hugo v0.120.4
Theme by - NexT
0%