Google has disabled use of Maps API for this application - google-maps-api-3

I got this error on my site
Google has disabled use of the Maps API for this application. See the Terms of Service for more information: http://www.google.com/intl/en-US_US/help/terms_maps.html.
I try clear browser data, cache etc. but no luck. This is my code.
<script src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=drawing"></script>
and i change it to
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=XXXXXXXXXXX&sensor=false&libraries=drawing"></script>
But stil no luck. this site is working for 3 yrs and suddenly i got this error.

You need to do what was suggested -- check the terms of agreement and contact Google to get the capability reinstated. You may have exceeded the number of accesses per second (for example), or run afoul of one of the other restrictions.
Check your Google account screen for API usage.

Related

Troubleshooting Microsoft Cognitive Services Face API

Earlier today, I was able to send snapshots to the Face API and get responses including faceAttributes describing emotion.
I'm using JavaScript via XMLHttpRequest.
Now, though I've not changed the code, I get OK 200 from the API calls, but the responseText and the response properties are both, "[]".
I'd like to troubleshoot to see what I'm doing wrong, but it seems like the only information available in the cognitive services portal relates to quota.
Where should I look for further analytics?
You'll get an empty response if the API does not detect a face in the image or if the image file is too large (>4MB). You can confirm by testing with an image you know previously worked. To get the best results, make sure the face is well-lit and all features are reasonably visible.
Hello from Cognitive Services - Face API Team,
I wonder the problem belongs to one specific image or all API calls?
For a quick check, you can try the image on the online demo [1].
[1] https://azure.microsoft.com/en-us/services/cognitive-services/face/
Unfortunately doing the troubleshooting from the external perspective is quite difficult since you don't get any logs. The most common steps are to try to repro your problem using either the testing console (https://westus.dev.cognitive.microsoft.com/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523b) or a tool such as curl or Fiddler so that you can see the raw REST request and response.
With one of those tools you can try to change up your request, try to call a different API, make sure there are no additional details being returned in the body or response headers, etc.
If all else fails please open a support incident from the Azure management portal and we can work with you.
We are also working to improve the logging and troubleshooting capabilities, but it may be some time to see improvements in this area.

Google Maps API - says key incorrect, but it is right

I'm trying to use a Google Maps key in my webform, but it keeps coming back saying that the key is wrong (in the developers console).
I've gone to the Google console and regenerated the API key. That won't work. I've also looked at the referrers and set them (when I run it it comes up as http://localhost:12345/myform.aspx - so I've added a referrer of http://localhost:12345/*) with no avail. I've also checked the referrer in the developers console (F12) which comes up as http://localhost:12345/myform.aspx so there's no issue there.
Am I missing something blindingly obvious?
EDIT - code is <script src="http://maps.google.com/maps/api/js?v=3&key=LONG_KEY_HERE;sensor=false"></script>
Returning
Google Maps API error: InvalidKeyMapError
https://developers.google.com/maps/documentation/javascript/error-messages#invalid-key-map-error
You don't need to use a key if you are running it in localhost. Try using google maps without the key
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?sensor=SET_TO_TRUE_OR_FALSE">
</script>
Google Maps v3 API key won't work for local testing
Somehow, it's now started working. Three days after generating an API key.
That's progress for you!
(oh, and I removed the sensor part at the end. I did try it without it before and it didn't work, but for some reason it did today. I blame it on the fact that it was Friday when I tried it and Google had just decided to clock off early for the weekend)

Google Maps API v3 - new browser key, still REQUEST_DENIED

I've enabled the Google Maps v3 (and v2) services in the API console and then generated a browser key.
I just swapped a maps.google.com/geo?q= URL for the below URL (example):
http://maps.googleapis.com/maps/api/geocode/json?sensor=false&key=newbrowserkeyfromconsole&address=ALE+BILSERVICE,ALVANGEN,Sweden
It is called with 1600 HTTPGET requests in one run, but now it doesn't even work when pasting 1 URL in a browser!
EDIT: I wrote that it runs once per day, but that is false. Fixed street addresses don't suddenly switch GPS coordinates. ;)
I looked at several similar threads, where generating a new browser key in the API console seemed to work. But not for me. I'm running this from "whatever client ip", so I left the url filter box empty when generating it, and get "Any referrer allowed", so it seems OK.
If I remove the key, I get OVER_QUERY_LIMIT.
Please advise.
Currently, the Google API Console cannot generate working API v3 browser keys for geocoding use at all, whether used via a JSON output URL or Javascript. This has been the case for at least the past 3 days.
Just as for Google Places a few months ago.
All you can do is ignore the error code 610, REQUEST_DENIED, and erroneous alerts, and wait for Google to fix it.
I'll be happy to change the accepted answer to one that describes how to contact Google about your Google Developer account, raise a ticket, register/pay for support, or similar.

Google Maps API V3 error: 403 (Forbidden access for too many pageviews)

I have a published layer in Google Maps Engine that I am attempting to display using the Google Maps V3 API. In GME, the layer's "Shared with" access list includes my user and the "API access" access list also includes by user.
I am making the Maps V3 API call using MapsEngineLayer from the visualization library, and setting the appropriate auth token and layer asset id as part of the layerOptions.
The API call is failing with the error message:
Google Maps API V3 error: 403 (Forbidden access for too many pageviews)
The URL looks like:
https://earthbuilder.googleapis.com/my_gme_layer_asset_id-4/maproot/json?
output=jsonp&access_token=my_auth_token&callback=xdc._tsel5i
I have found some discussion threads related to "403" and "forbidden", but am having difficulty figuring out the meaning of (and solution to) the "too many pageviews" issue.
Any suggestions would be appreciated.
If you tried with #David solution and it doesnt work. It worths to check that you are not caching (or storing locally) the google maps js script. Google don't allow that. If you serve that file it will work for about 3 days and then stop working.
How many requests have you made so far today, there are usage limits on the Maps API that may be preventing you from requesting any further data.
https://developers.google.com/maps/faq#usagelimits
Although it does seem unlikely that you have hit their hard set 25,000 requests, you may want to make sure that you aren't accidentally DOSing them with http requests. That sort of thing will invariably burn through your limit, and potentially place your IP on a blacklist.
Also, you should check the Maps API Reference materials, i think you may be trying to use a deprecated API.
https://developers.google.com/maps/documentation/webservices
Your http request should look more like this:
http://maps.googleapis.com/maps/api/service/output?parameters
Where output is either json or xml.
edit: The Maps API Help page is located here.

google maps v3: referers ignored

I am using google maps v3 and therefor have generated an api key in google's "apis conosole". I am loading the map with the key as parameter. As I can see the statistics in the api-project account, I am quite sure this works smooth.
Now I want to limit the domains which should be able to use a specific key, so I added an entry in "Referers" in the following way: "www.domain.com". I have assumed that if I load the map from a differnt domain (i.e. www.domain.org) I would receive an error, which does not happen. The map is loaded without any warnings (even not in chrome's console). In the apis console these "wrong" referers are even listed.
Additional info: all pages are using a single google app engine account and multiple google apps domains.
Any ideas what my mistake might be?
Thanks!
I think you need to enter full url or wildcards.
http://www.domain.com/*
or
*.domain.com/*
Probably if you dont have at least one value entry - it's ignored (to stop you completely shooting yourself in the foot)

Resources