Access Not Configured. YouTube Data API has not been used in project 608941808256

AbhiRam picture AbhiRam · Nov 1, 2016 · Viewed 18.3k times · Source

I have enabled YouTube data API and Google+ API for my project and change the Android API Key in Auth.java I also entered my playlist info into Constants.java. However I still get this unhelpful error:

com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden

{
  "code": 403,
  "errors": [
  {
    "domain": "usageLimits",
    "message": "Access Not Configured. YouTube Data API has not been used in project 608941808256 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube/overview?project=608941808256 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
    "reason": "accessNotConfigured",
    "extendedHelp": "https://console.developers.google.com/apis/api/youtube/overview?project=608941808256"
    }
  ],
  "message": "Access Not Configured. YouTube Data API has not been used in project 608941808256 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube/overview?project=608941808256 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
}

can some one help me please

Answer

CpnCrunch picture CpnCrunch · Jan 10, 2019

We had the same issue. We resolved it by starting from scratch and creating a brand new API project. For some reason the existing API project didn't work. Steps to check if you have this issue:

  • Create a new project in the API console (click the project dropdown at the top of the window, and choose "New project").
  • Enable the APIs required (e.g. YouTube Data).
  • Go to credentials->Domain verification and enter your domain.
  • Fill in the OAuth consent screen, and make the "application name" the same as your project name. Also choose the scopes you will be using, add your domain, save it, and submit for verification.
  • Create credentials of type "OAuth2 client key->Web application" and enter the correct callback uri.
  • Wait a few hours.

You should now be able to test in the APIs explorer (enter your own client key).