Just came across this error today intermittently:
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.
somehow when I refresh the page, the map comes back again. I thought if it's a violation, it would have revoke the key permanently and not allow the map loads using this key anymore. Also, the error always happens at page load. I have yet to hit the error if it's already successfully loaded. I briefly read through the terms but couldn't find anything suspicious. Anyone can advise on how to go about this error? Should I be checking for some js error or the map terms? Thanks.
This is how the map script looks like:
<script src="http://maps.google.com/maps/api/js?v=3&sensor=false&libraries=places&key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" type="text/javascript"> </script>
Click on the “APIs & auth” menu on the left, and from the submenu select APIs. From the list of APIs that appear, scroll down and ensure that Google Maps Android API v2 is set to “On”.
Disable an APIGo to the API Console. From the projects list, select a project or create a new one. If the API Manager page isn't already open, open the console left side menu and select API Manager. Next to the API you want to disable, click Disable.
You could try the documented URL for the maps API script:
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=SET_TO_TRUE_OR_FALSE">
</script>
Where key is recommended but not mandatory and sensor is required.
(so this should work):
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?sensor=SET_TO_TRUE_OR_FALSE">
</script>
I noticed the same issue this morning as well, I thought it was because I was using a subdomain of the domain registered with the API service, but it is happening to my actual domain as well.
I have removed the api key from the library url which seems to have fixed the problem for now, I will put it back when it starts working again. This must be an issue with Google's licensing servers since it is affecting their own websites as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With