REQUEST DENIED with Google Places API KEY for Server Web used in an Android application

北慕城南 提交于 2019-11-27 05:29:56

The problem is that you are not using the Google Places API for Android, you are using the Google Places API Web Service.

Here is an example of using Google Places API for Android, and here is an example of using the Google Places API Web Service. You are definitely using the latter.

Enable the Google Places API Web Service and it will work:

If you go to this link while signed into your Google Cloud Console account: https://console.cloud.google.com/apis/library?filter=category:maps

This is the API that should be enabled:

From the documentation:

Note: You need an Android API key, not a browser key. You can use the same API key for your Google Maps Android API v2 apps and your Google Places API for Android apps.

Check this for more help.

For an easier way try latest GCM configuration file implementation and easily create project using their developer interface.

Enable Google services for your app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!