Reputation: 21
When calling Places in a social engine install Google is responding in the console with the error ?libraries=places&key=XXXXXXXXXXXXXXXXXXXXXXXXX&c=17:61 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=_ For more information on authentication and Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-key
and this panel see https://i.sstatic.net/Z9NuE.jpg
Other versions of this question appear to be pre the current version and/or answer was activating additional api's
The only thing I noticed was the lack of a project id in the Develops console link indicating the api key is not connecting
I've made sure that places, geocoding, maps javascript etc. are all enabled and also tried the fix of disabling/re-enabling each of the services.
see https://i.sstatic.net/BOfZb.jpg
The API key is correct
I checked billing details are up to date
The address that is being called is correct AFAIK <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places&key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&c=17"></script>
Additionally I've made sure the url is listed in the allowed domains as both www.womensadventureclub.com.au & womensadventureclub.com.au
The domain has been added to the Search Console and verified (listing as https://www.womensadventureclub.com.au)
This is a plugin so not my own code but it appears to be accurately reaching google but the API key is not being recognised.
Any ideas what else I could try or if there is something I'm missing?
Thanks Brad
Upvotes: 1
Views: 528
Reputation: 21
The problem was an incorrect restriction in http referrers
I was using (*).womensadventureclub.com.au/*
due to misreading the example Any URL in a single subdomain, using a wildcard asterisk (*): sub.example.com/*
I then thought that using (*)://*.womensadventureclub.com.au/*
would fix the issue but found in another area it failed. Changing to https://www.womensadventureclub.com.au/* & https://womensadventureclub.com.au/*
fixed it
Upvotes: 1