Google places api request denied error - google-places-api

I am using google palces api for autocomplete textview in my android project. I have enabled the api key. I am using a server key but all the time I have this error when I call the service through a browser :
{
"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",
"predictions" : [],
"status" : "REQUEST_DENIED"
}
And same error in android debugger.

As mentioned in the error, you have to go to the Google Developers Console, then open APIs & auth -> APIs and enable the Google Places API Web Service which include the autocomplete feature :
Find detailed information about places across a wide range of categories. Backed by the same database used by Google Maps and Google+, the Google Places API Web Service features about 100 million businesses and points of interest that are updated frequently through owner-verified listings and user-moderated contributions. Key features include autocomplete, search, place picker, photos and add place.
Hope that can help.

Related

How to get the get API path and parameters of Google play developer API?

I have added a non-renewable subscription for one of my projects. We also started implementing the Google play developer API to get the subscription latest status from the Play Store. For that we have done the below steps as per this blog:
Linked the developer account to a new Google Cloud Project.
Enabled the Google Play Developer API for the Google Cloud Project.
Created a service account and created a key for the service account.
I have below clarifications related to this implementation:
I tried to Grant Access for the following permissions: But the corresponding checkmark is not clickable.
View financial data, orders, and cancellation survey responses
Manage orders and subscriptions
The 3rd step as per the blog is to Authorize an API key, but I didn't get a clear idea of that.
We are going to implement this API on the back end side as a corn job, do we need to generate a JWT token for accessing this API? Is this possible to call without a Token? I found 2 types of implementations from this blog, which one is easy and secure?
"Your application can complete these tasks either by using the Google APIs client library for your language or by directly interacting with the OAuth 2.0 system using HTTP."
From where we get the get API path and other details. I found a similar get API from AppStore like this. Is the play store providing a similar kind of get API?
We need the latest purchase status API and for that what parameters do we need to pass?

How to get server-side call to Google Places API to work?

I'm trying to get Place Detail via Google Places API as follows:
https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJLQUUOYZZwokR1BfSFbM-XB4&key=<<KEY>>
but I keep getting the following error (both in browser and server-side):
{
"error_message" : "This API project is not authorized to use this API. Please ensure this API is activated in the Google Developers Console: https://console.developers.google.com/apis/api/places_backend?project=_",
"html_attributions" : [],
"status" : "REQUEST_DENIED"
}
I created a brand new key without any restrictions (and Maps API is enabled in my google console). How do I get this to work??
The Places API is separate from the Maps API. Make sure the Places API is enabled in the developer console as well.

Is there an API of all enabled APIs in Google console?

I would like to get a list of all the APIs, which are enabled for my project in Google Developer Console. Is there any way?
PS: I know there is a Google Discovery API, which can be used. But I would rather not apply a filter myself.
The discovery services API returns a list of all available Google APIs and has nothing to do with your project on Google Developer console.
There is not currently an API that will give you access to the enabled APIs within a project on Google Developers console. You will have to check manually on the website yourself.

Google places api service is not woring in my android project

Google places api service is not woring in my android project.I have enabled api key.I am using server key to get places in autocompleteTextView. But I found error "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",
"predictions" : []"
Always while debugging. Please any body help me.
It sounds like you're using the Google Places API Web Service from your Android app? Have you considered using the Google Places API for Android?

How to search for zagat selected places only in Google Places API?

How do I search for Zagat selected places only in Google Places api, as when I follow the docs and add zagatselected to the query, the results fail and give invalid request.
Notice: I'm a billing user (i.e. I enabled billing in the API Console)
To obtain Zagat data you have to become an enterprise user; just being a "billing user" is not enough.
Per Google: "The zagatselected parameter is experimental, and only available to Places API enterprise customers."
Become a Enterprise Customer
Some features of the Places API — such as review summaries, and certain request filters — requires additional licensing, available as part of a Places API enterprise license.
You can verify that your account has been enabled for Places API enterprise features as follows:
Visit the APIs Console and log in with your Google Account.
Select the project that was created for you when you signed up.
The project name will start with Google Maps APIs for Business.
Click the Services link from the left-hand menu.
The Places API - Zagat Content service should be enabled. Note that only the initial owner of the project will be able to see the Places API - Zagat Content service.
The Places API service should be disabled.
from Google Places API Document

Resources