Reputation: 247
I am using google places in android app and i am getting this error
{
"error_message" : "This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console: Learn more: https://code.google.com/apis/console",
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
}
I have tried using Android key ,browser key and server key but this is not working please help me out I dont know whats wrong with the key...!! Please Help me URL that i am using is:
https://maps.googleapis.com/maps/api/place/search/json?radius=50&sensor=true&key=<my key>&location=22,75
Upvotes: 3
Views: 7963
Reputation: 8606
Make sure you have 'Google Places API Web Service' enable (on your Google Api Console, https://console.developers.google.com ). You must use a Server Key (not an Android key)
Upvotes: 2
Reputation: 1
"status" : "REQUEST_DENIED"
Represent Issue regarding Enabling Google API Permission. Please Be sure either you are not forgotten to enable API :
Upvotes: 0
Reputation: 1
"status" : "REQUEST_DENIED" - Represent Issue regarding Enabling Google API Permission. Please Be sure either you are not forgotten to enable API :
Google Maps Android API
Google Maps Geocoding API
Google Maps Geolocation API
Google Places API for Android
Google Places API Web Service
I also facing same problem, But after surfing Developer site I found; it require enable Places API for Web Service too and work for me.
Hope this might be helpful !
Upvotes: 0
Reputation: 1343
To ensure that are you enable valid API for Valid Key.
Note:- Enable place api for Browser api server - browser key. place api for android key - android key
Upvotes: 3
Reputation: 36
Follow the following link to get the google map key registered
https://developers.google.com/maps/documentation/android/start
and make sure that you have enabled the api from api and auth,
also while providing the sha1 key and your app package name,provide valid data.
Hope it might help
Upvotes: 2