28

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

robsch
  • 9,358
  • 9
  • 63
  • 104
AbhiRam
  • 2,033
  • 7
  • 41
  • 94

3 Answers3

57

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).

CpnCrunch
  • 4,831
  • 1
  • 33
  • 31
  • 10
    This also fixed my issue! I didn't have to wait a few hours — it was ready to go immediately. – Kobold Feb 15 '19 at 06:12
  • 34
    Fixed it for me. It seems once your API access is automatically disabled due to a period of no use, the daily requests quota turns to 0, and there is no way to get it back to normal, so you are left with sort of a zombie project, even if you don't realize it at first - since Google don't really tell you that. (In fact, their API reply implies you can re-enable access by visiting the project - this is not true, at least the moment). The only thing to do is to create a new project with a new API key and new quotas. – Danra Mar 20 '19 at 10:22
  • 2
    Yeap, created new project from scratch. It worked. Thanx! – Alex Polymath May 16 '19 at 19:11
  • 1
    Thank you, this worked for me too. The keys from the existing project would not work even though they're set up just like the new project. Go figure. – Tensigh Sep 16 '19 at 22:57
  • I had the same issue! Like @Danra said above, it seems the old account is disabled somehow and can't be fixed. I used another project on which I had never used the YouTube Data API before, and that worked! – IcyFlame Jun 06 '20 at 11:36
2

I had the same problem here. Besides enabling the Google+ API and the Contacts API I have also to create a new OAuth Client Key for Web applications.

When you create it you'll see that the client id will start with the Project Id that you have on the error message.

In summary you'll have to do as follow:

  1. Create an OAuth Client Key with type web application
  2. And the Client Id to you API

Then you should be able to authenticate.

Hope I could help.

0

I Solved this problem by creating a new project and then creating new credentials

user2694064
  • 357
  • 2
  • 4