Google places api service is not woring in my android project - google-places-api

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?

Related

Google My Business API not found on the library

My web app have recently been approved to use the Google My Business API, when I login to my Google Cloud Library for the related project to enable the API, I could't find the the Google My Business API.
Can anyone tells how to resolve this issue ?
Thanks.
In the list of project APIs, it is shown as "Google My Business API".
The list of project APIs, including the "Google My Business API"
Have you tried with your corporate email account?
Faced a similar problem when I tried to enable Business Messages API. Then I realized
google business won't allow generic email addresses for the allow list and we have to share individual corporate accounts for APIs access and developer console access.

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.

What is the logical definition of a google api project

I am confused about the features, functionality, and boundaries of a Google API project. A single Google API project can have many credentials.
If your apps will all be using the same APIs, why would you want to create separate projects?
When or under what conditions should you create additional credentials fo the same project?
Base on Google Doc: Before you can send requests to Google Apps Activity API, you need to tell Google about your client and activate access to the API. You do this by using the Google Developers Console to create a project, which is a named collection of settings and API access information.
As above, Each API project is a named collection of settings and API access information. You can read this

The Google Admin SDK Email Settings API is not listed in the APIs Discovery Service

In working with the .NET client library we found that the Email Settings API was not available in it or any of the other client libraries. After communicating with the developers of the .NET library on how the library is generated we noticed that the Email Settings API is not listed in the API discovery service as part of the Admin SDK. The .NET client library relies on the discovery document as does the PHP client. Both the Directory API and the Reports API are.
I noticed that in the documentation for the Email Settings API that calls are still made to apps-apis.google.com:
https://apps-apis.google.com/a/feeds/emailsettings/2.0/
rather than to www.googleapis.com like the other Admin SDK APIs do:
https://www.googleapis.com/admin/directory/v1/
https://www.googleapis.com/groups/v1/groups/
https://www.googleapis.com/admin/reports/
I'm guessing that this is the underlying reason for why this particular API is not included. Is there a timetable for getting the Email Settings API moved to the googleapis service?
There are two types of Google APIs. Gdata APIs and discovery APIs.
The Gdata APIs are old APIs a lot of them have actually been shut down. The client libraries for them to my knowledge where not auto generated.
if you check the documentation for the email settings api there is some sample code for .net.
using Google.GData.Apps.GoogleMailSettings;
The key here is that its a Gdata, its a Gdata api. Which means that like you said its not supported by the current Google .net client library which only supports discovery APIs.
After doing some searching in the code for the Gdata client library. Yes it exists but it hasn't been developed on in ages. There is some code in there for Google email settings There should be a nuget package for it but I have not been able to find it.
The only thing that i have cound that might lead us to the corect nuget package is this
Install-Package Google.GData.Apps
I don't have an admin account so I cant help you test it. However I can probably give you some hints on getting it working. You should be able to track me down from my stack profile if you need help or just post another question on stack. I should spot it.

Google places api request denied error

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.

Resources