Access Not Configured Android Google API Key
N

3

11

I am trying to use Youtube Data API v3 to search on android, though when I try to search using my API key i always get this message:

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "accessNotConfigured",
    "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
   }
  ],
  "code": 403,
  "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
 }
}

I have the Youtube Data API set to on in my Console. I have been trying to figure this out for hours. Does anyone know what's wrong?

Nodus answered 19/1, 2014 at 19:40 Comment(0)
H
17

A bit mind confusing is that for the YouTube Data API you need to use the browser-key, but for the YouTube Player API (for Android) you need the Android-key.

Using the Android key for the YouTube Data API will not work and result in the error you received.

Hamel answered 28/1, 2014 at 14:6 Comment(5)
The same with iOS! iOS-key doesn't work but Browser Key works. What's wrong with Google? Got almost crazy trying to make it work.Isentropic
I know the Android key can be used for the YouTube Player API (for Android), but what function the iOS key has...Hamel
This should be put somewhere clear, because I'm sure a ton of developers will have that issue.Earnest
a little? my god I've lost 3 hours today! Thank you very much @Hamel !Zomba
LOL. I seriously can't believe this worked. Google--Scop
N
6

I've finally solved this. I deleted my project and created a new project in the old Cloud Console. I then activated all the APIs I need to use and then went into API Access and there was a key already there. It should say "Key for browser apps (with referers)" and I just used that key, and it works.

Nodus answered 21/1, 2014 at 18:16 Comment(2)
Thanks. This also solved partially my issue. What I noticed as difference between key generated using new console and old console: - new console generated key contains "-" char inside key - old console generated key doesn't contain "-" char inside key Maybe this is the issue :)Popcorn
I spent too much time trying to get this to work. The old Cloud Console and default "Key for browser apps (with referers)" did the trick. Very frustrating... Thanks for the tip!Lisk
E
0

It's a very late reply but the issue was very hard to detect. I tried a lot of solutions but nothing was working for me. The only solution works in my case is to generate new API_KEY from google API console.

Euchologion answered 22/3, 2019 at 5:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.