How to Set Quota for Google Maps API from external site? - google-maps-api-3

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

Related

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 enable Advertising Features with Google Analytics API?

We couldn't find any code on Google Analytics Developers about how to enable Advertising Features for acccountId. Is it possible to make such request using API? If this isn't possible then gapi.client.analytics.management.remarketingAudience.insert({ seems pretty useless because you still need to do it manually. Any solution?
The API you mentioned is to create an audience segment.
You can't enable advertising features with API. You can enable it in Google Analytics interface or modifying code (in page or in GTM).

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

[![`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.

Use Google Analytics service with API key

I'm trying to make requests to Google Analytics, from my server. Thus, I'd like to avoid using Oauth.
One way to perform requests without authenticating is by using an API_KEY with this kind of URL :
https://www.googleapis.com/analytics/v3/data/ga?end-date=yesterday&ids={ GA_TABLE_ID}&key={API_KEY}&metrics=ga%3Asessions&start-date=30daysAgo
But I have no idea of how to create such an API_KEY.
I tried creating one in the Google Developers Console but I always get the following result with this key :
{"error":{"errors":[{"domain":"global","reason":"required","message":"Login Required","locationType":"header","location":"Authorization"}],"code":401,"message":"Login Required"}}
Is it possible I have to link my Google Analytics project with my Google Developers Console someway ?

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).

Resources