A.C. Byrne
A.C. Byrne

Reputation: 113

Google Places API Key seems to expire immediately after one use

I recently generated a new Server API key using the Google API Console, for use with the Places API. I'm interested in using the Details API Call, and it worked as expected during my first request. Every subsequent request, however, has yielded this error:

{
   "error_message" : "The provided API key is expired.",
   "html_attributions" : [],
   "status" : "REQUEST_DENIED"
}

The key is definitely not expired, since it was issued only minutes before and had worked just fine a few seconds ago. I've tried issuing new keys, but the result is always the same: works once, then never again. Any ideas? Thanks in advance.

Upvotes: 11

Views: 10674

Answers (3)

Rajesh Tiwari
Rajesh Tiwari

Reputation: 430

Figure out problem in android Do this in google developer console:

  1. Create key for browser applications not for android application

  2. Enable: Google Places API Web Service

  3. Wait for approx 10 min till it approves

  4. Sha key should be same

    Note: Please check sha key as well they must be same on developer console as well as android app.

Upvotes: 12

Shamir Kp
Shamir Kp

Reputation: 498

Try enabling Google Places API Web Service in google console.

Upvotes: 0

Daniele
Daniele

Reputation: 359

Try to go on APIs & Auth menu > API > Places and the push "enable".

Upvotes: 0

Related Questions