4

I am trying to render google maps with the following link inside QlikView application

The error message I am getting is (not in QlikView, but in browser, when I try to render the link using browser):

  • The Google Maps API server rejected your request. This site or IP is not authorized to use this API key.

I have actvated following Google services on my account:

  • Google Maps Android API v2
  • Google Maps JavaScript API v3
  • Static Maps API
  • Translate API

Already found this thread on StackOverflow: The Google Maps API server rejected your request

I have tried the following:

  • make sure the Referers is set to Any referer allowed
  • Make sure you have enabled "Static Maps API" service in addition to "Google Maps API".

Unfortunately, I am still getting the same error message. Can anyone help please? Thanks.

13
  • 1
    Do you actually have a valid key?
    – Lee Taylor
    Commented May 26, 2014 at 15:00
  • 1
    You can always try to generate a new key, if that is an option.
    – MrUpsidown
    Commented May 26, 2014 at 15:01
  • @LeeTaylor: how can I check it?
    – Adam
    Commented May 26, 2014 at 15:04
  • @MrUpsidown: tried it already...
    – Adam
    Commented May 26, 2014 at 15:04
  • 1
    I am almost out of ideas. Double check the key, regenerate, empty your browser cache, clear any cache in QlikView (?), double check the output HTML...
    – MrUpsidown
    Commented May 26, 2014 at 15:36

2 Answers 2

1

generate key from https://console.developers.google.com/ for maps api of type browser key. And make sure that while calling document.referrer should be set to your domain.

0

Google API keys are binded to Domain Names, if you request a Google Service from a site that is not whitelisted the request gets tossed.

Go to your Google Console. https://console.developers.google.com/ Click in the left Menu API's & Auth then Credential

Under Public API access click create new key and choose on the next Page Browser Key. You are now forced to enter all Domain Names that are allowed to make API request with this key.

Enter your Domain names use the new key and you should ready to go.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.