Google Places Api Key Not Allowed

I am using google places in android app and 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 tried using android key, browser key and server key but it doesn't work, please help me, I don't know what happened to the key ... !! Please help the url I am using:

https://maps.googleapis.com/maps/api/place/search/json?radius=50&sensor=true&key=<my key>&location=22,75

      

+3


source to share


5 answers


Follow the following link to get google registered map key

https://developers.google.com/maps/documentation/android/start

and make sure you enable api from api and auth,



also when providing sha1 key and your application name, provide valid data.

Hope it helps

+2


source


To make sure you are activating a valid API for Valid Key.



Note: - Enable api api for browser api server - browser key. place api for android key - android key

+3


source


Make sure you have enabled " Google Web Service Web Service API " (on the Google Api Console, https://console.developers.google.com ). You must use Server Key (not Android button)

Enable api

set credentials

+1


source


"status": "REQUEST_DENIED" - Represents an issue regarding Google API permission. Make sure you don't forget to enable the API:

Android API for Google Maps
Geocoding API Google Maps
Geolocation API Google Maps
Google Places API for Android Google Places API
Web Service

I face the same issue too, but after surfing the developer site I found; it also requires you to enable the Places API for the web service and work for me.

Hope this can be helpful!

0


source


"status" : "REQUEST_DENIED"

Imagine an issue with enabling Google API permission. Make sure you don't forget to enable the API:

  • Google Maps API for Android
  • Google Maps Geocoding API
  • Google Maps Geolocation API
  • Google Places API for Android
  • Google Places API Web Service
0


source







All Articles