Support

Home Forums Event Espresso Premium GoogleMap Issue

GoogleMap Issue

Posted: November 27, 2020 at 7:33 am

Viewing 13 reply threads


Vuxe

November 27, 2020 at 7:33 am

hey
i have an issue when using googleMap Api : i setup google account with a billing card, i take api key with referer restrict to domain and restrict to GoogleMap (also try with no referer and no api specified) but still don’t work, i have the following error
Geocoding Service: This API project is not authorized to use this API. For more information on authentication and Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-key
_.ke ..
Google Map geocode was not successful for the following reason: REQUEST_DENIED


i must have something wrong … but don’t see what…


Tony

  • Support Staff

November 27, 2020 at 7:52 am

Hi there,

*.clubin.org/* allows {anything}.clubin.org/{anything}

So that would allow http://www.clubin.org, maps.clubin.org etc but you using a naked domain, meaning there is nothing before it so you want:

*clubin.org/* Or just clubin.org

Remove the restrictions on the API’s the key is using and see if it works then, the Maps JavaScript API is not the only API used so that single allow won’t be enough, however, start by getting your referrers working correctly first.


Vuxe

November 27, 2020 at 1:50 pm

ok I now understand better how to use domain restriction… but anything i change don’t work… even if i set now domain restriction et no API restriction … must have something else but don’t know where to see (i check billig, i check the fact billing is link to domain….)


Tony

  • Support Staff

November 27, 2020 at 4:16 pm

Still getting exactly the same error message in the console?

Can you link me to an event I can view this on?


Vuxe

November 28, 2020 at 1:34 am

yes still same message at this page
https://clubin.org/new/evenements/gouvernance-et-innovation/ (site is not public)


Tony

  • Support Staff

November 30, 2020 at 3:42 am

It’s actually not the same error, its now this:

Google Maps JavaScript API error: RefererNotAllowedMapError
https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error
Your site URL to be authorized: https://clubin.org/new/evenements/gouvernance-et-innovation/

Which means your URL referrers are not set correctly, can you post another screenshot of what you currently have in your referrer section?


Vuxe

November 30, 2020 at 4:03 am

This reply has been marked as private.


Tony

  • Support Staff

November 30, 2020 at 4:07 am

Please re-read my first reply: https://eventespresso.com/topic/googlemap-issue/#post-318933

Your referrer is set incorrectly, try using *clubin.org/* or clubin.org


Vuxe

November 30, 2020 at 4:20 am

,) i know but *clubin.org/* don’t work so i try the full url (as screenshot)

are we okay that except the billing configuration, there’s nothing to setup ?


Tony

  • Support Staff

November 30, 2020 at 5:01 am

,) i know but *clubin.org/* don’t work so i try the full url (as screenshot)

The full URL is not the correct URL to use, it will only work for that specific page.

Have you set it to be *clubin.org/*? That is the exact same format I use on my keys (I have many) and it works as is. Looking at your site right now it shows the API isn’t available (meaning the referrer is working), so what settings do you have right now?

are we okay that except the billing configuration, there’s nothing to setup ?

I don’t know. Have you changed anything since the last screenshot?


Vuxe

November 30, 2020 at 6:01 am

my setting


Tony

  • Support Staff

November 30, 2020 at 6:55 am

Ok, from your Google Cloud Platform click the navigation menu (top left)

Go to API’s & Services.

Make sure you have the correct Project selected and check which APIs are enabled on the project, like this:

https://monosnap.com/file/hazwy8dBlhUab2rAy4VcZ8U8yTOXdC

At a minimum you’ll need the Geocoding API and Maps JavaScript API enabled, I recommend enabling Maps Static and Places whilst there.


Vuxe

November 30, 2020 at 7:12 am

i thought enable all api was enough… but not. After activing Geocoding and Co … it’s work !!!
1.000.000 THANKS for support(ing) me…


Tony

  • Support Staff

November 30, 2020 at 7:31 am

I think you mean enabling the API’s on the key itself? That basically allows you to limit specific keys to specific API’s but the project as a whole needs the API’s enabling on it to then give access to the keys.

Either way, I’m glad it’s working for you now.

Any further problems just let us know.

Viewing 13 reply threads

The support post ‘GoogleMap Issue’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso