doublesecretagency / craft-googlemaps

Google Maps plugin for Craft CMS - Maps in minutes. Powered by the Google Maps API.
https://plugins.doublesecretagency.com/google-maps/
Other
10 stars 10 forks source link

Unable to get API keys working #101

Closed CreateSean closed 10 months ago

CreateSean commented 10 months ago

I am unable to get the API keys working - I've followed the instructions from the docs and I keep getting errors when testing.

Have deleted keys and re-created 3 times but no success. Does not work locally or on production server.

Please advise

image

lindseydiloreto commented 10 months ago

Hi @CreateSean,

It's tough to say exactly what the issue is, but clearly the API keys are not valid in Google's eyes. The Server Key message would typically indicate if it were a billing error.

If I had to guess (which is basically what I'm doing), I'd say that your "Application Restrictions" are invalid...

https://plugins.doublesecretagency.com/google-maps/getting-started/api-keys/#the-difference

Make sure you've restricted those keys to the correct domain(s) and IP address, respectively.

Hope that helps! If you're still stuck, ping me on Discord and we can discuss in greater detail. 👍