Google maps autocomplete works fine while AGM maps Fails to get load even after providing a apiKey - google-maps-api-3

[![`I am able to get google place autocomplete response but fail to load google maps even after enabling all the apis from google console apikey
Thanks in advance
`]1]1

That error message means that you have exceeded the number of free usage attempts on google maps service. you free daily quota will reset after midnight.
So if you would like to override that and keep using google maps you will need to add billing information for this project to continue to use Google Maps Platform.
See this:
https://developers.google.com/maps/documentation/geocoding/intro#StatusCodes
and this for more details:
https://developers.google.com/maps/premium/previous-licenses/articles/usage-limits

Now, Google Maps requires you to enable a billing account, even if you will never exhaust your free quota. You can set up the billing account in your google cloud console.

Related

gmapsdistance - which API is needed? [duplicate]

I've started getting this error from a Google Maps widget within a CMS I use:
This API key is not authorized to use this service or API. Places API error: ApiTargetBlockedMapError
The error message provides a helpful link to this page, which includes the following text:
ApiTargetBlockedMapError Error
The Maps JavaScript API has not been authorized for the used API key.
Please check the API restrictions settings of your API key in the
Google Cloud Platform Console.
See API keys in the Google Cloud Platform Console. For more
information, see Using API Keys.
I know Google has tweaked this API in the past, so I went to the console and checked the permissions given for the key I am using. It includes these four permissions, include the Maps JavaScript API permission:
Geocoding API
Maps Embed API
Maps JavaScript API
Maps Static API
The only part not working is the address auto-complete. When I change to Don't Restrict Key mode so the key works with all services, it works fine. Any idea which service checkbox I might be missing? I'm wondering if Google is just displaying the wrong error.
Any ideas?
This is what I did. Updated.
Make sure you have enabled all the next Google Maps Services
If you have key restrictions, make sure you add the services like the next image..
Restart the project. It worked.
It turns out that Google has tweaked their permissions settings without updating the error. I had to give access to the Places API as well for the autocomplete to function.
I've submitted a PR to the CMS widget's documentation:
https://github.com/Frojd/wagtail-geo-widget/pull/59/files

Get access to clients data using API

Is it possible to make a platform where client can sign up and log in using their Google accounts, and accept that their Google Analytics data will be used for calculations.
They should accept the use only once, and then the program should download and process the Google Analytics data every day.
Please point me in the correct direction for documentation
Yes, you need to create a project in Google Cloud Platform, then go to : API and Services > Library > Google Analytics API. (This is to get analytics from an user). Then you need to create a project inside Firebase, allowing email authentication and you will be able to do your task.

How to Set Quota for Google Maps API from external site?

i'am trying to figure, how to set Google Maps API quota (specific : Geocoding API) from external site ? i want to build my own dashboard for set the quota, not using Google Cloud Console for daily operations.
PS : i need to set a certain quota on certain days.
I was searching for any tutorial & api on Google Cloud Console, i just found as far as enabling / disabling the API, not setting the quota
i expect some of tutorial or some kind explanation how to reach that.
It's a reasonable request but...
To my knowledge (!), there is no public API that would permit you to manage quotas (for any Google service) programmatically and thus through your own dashboards.
Found some references for you on controlling this using Google's Console:
https://developers.google.com/maps/documentation/geocoding/usage-and-billing
https://cloud.google.com/apis/docs/capping-api-usage

Google Maps V3 API: How can I get report of the use of the DIRECTIONS and GEOCODE APIS

I am using Google Maps API v3 in a Web.
And also I am using:
new google.maps.Geocoder(); (GEOCODING)
new google.maps.DirectionsService(); (DIRECTIONS for trace routes between 2 places)
Then I went to API Developers Console and create a KEY and I call the Google service in this way usin the key:
http://maps.google.es/maps/api/js?key='the-key-from-api-console'&sensor=true
The intent of this is to keep track of the use of apis to watch that I do not pass the limits of use.
In the API console Google reports me ok about the use of the javascript API v3 counting the number of visits, the number of loads of the maps even the URL of the pages that use the maps.
I can see that my use of this service does not exceed 25,000 requests / day
But i need reports of the use of GEOCODING and DIRECTIONS too and Google is not reporting me this info. In developers console I activated the Directions API, the Geocoding API and Google Maps JavaScript API v3. But I only get reports of Maps JavaScript API v3.
Report of Directions API and the Geocoding API stay always at 0%. It is as if Google is not using this report.
Could it be that the service should be contracted to have this data or to be other types of APIS enable the console in order to have use of this report?
I've been trying to find information clarifying this for me but I found nothing that completely solved my doubt.
Thanks in advance.
When you use both services via the methods of the Javascript-API the limits apply to the user that visits the page with the map, the quota of your account is not affected(so there is nothing to count/report for your account/project)
It applies to your account only when you request the webservices(usually via serverside scripts).

Google maps api v3 quota graph

we are using google maps api v3 in our web application, but it started to display message about exceeding daily quota. But I looked in developers console and I cannot find any message about this, or any graph. When I take a look on numbers for maps api we have around 5000 every day. Is there any way how I can get to quota which we exceed? Some more info? Are there any other quotas?
Thank you
What I've found is a graph you can see if you're going to the google developer console.
Under this link all your projects are listed, when you're logged in. Select the project you want and you'll see a graph with requests on the used APIs by this project with possible billing an more informations.
EDIT
Also Google observes the google-api tag here, add this tag to your Question and maybe you'll get official help.

Resources