How can I get alerts for my Google API usage? - google-api

This week my API stopped making requests to the Google API, see the usage graph below:
Is there a way I can setup alerts on the data that is reported to me in the above graph?
Alert me when usage is below a threshold?
Alert me when usage is above a threshold?
Alert me when we encounter an error of X type?

There is no API for the Google Developer console sadly the only thing that is close would be the Google Cloud Resource Manager API which doesn't give you the information you are looking for.
There is also no alert within the Google Developer console. That being said this is an awesome idea. In the upper right hand corer of the Google developer console there is a speech bubble with an i in it. Click on it and send feedback. Google does listen to feed back from developers lets request a notification feature.

Related

Google API Picker getting 400 errors in console - when logging back to Google at logImpressions endpoint

We have the Google Picker working, but have noticed that the picker code seems to be trying to log events to Google, and is getting 400 errors when doing so.
Looks like Google library code trying to talk to Google infrastructure:
Just a problem with the Google infrastructure, or is there any way to stop this?
Found the problem - it was that third party cookies were disabled (in Incognito mode).

How to use Google analytics in a Xamarin project?

I would like to use Google Analytics in my Xamarin project, but I always find articles showing how to use it with Firebase. Is that the only possibility? Can I use just Goggle Analytics without Firebase, as I use for example in my Angular project?
While the link to the repo google-analytics-dotnet-sdk created by me supplied by another another answer to this question.
Will work if you are using Universal analytics. It will not send hits to GA4. I have been working on a version for Ga4 but set aside while i wait for the Measurement protocol for Ga4 to be completed.
Currently the measurement protocol for GA4 does not allow for recreating hits similar to what is sent by the standard google analytics sdks for web and mobile.
Which means that you cant exactly recreate the same events.
Measurement Protocol (Google Analytics 4) I guess what I am saying is that if your goal is to recreate similar hits as firebase sends then your not going to be able to. We need to wait for them to open up for more of the Measurement protocol.
This is the current status of it.
GoogleAnalytics.Ga4-Dotnet.Sdk - Beta

My Google API keeps returning a limit reached error, when I am sure I am under the limit

I am currently building a NodeJS backend app that is querying the Google Calendar API. I have setup a new project on Google Cloud API platform and have generated all the required credentials. As stated by the google calendar API page, the allowed queries per day is 1,000,000. Since I am only querying for testing purposes at the moment, I am sure that I haven't even hit a 100. Yet whenever I try to query the API it returns the error:
"The API returned an error: Error: Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
Also I have noticed that the dev console has generated a API key for me. Where am I supposed to put that?
My initial thinking is that Google API requires me to perform an additional signup using some CLI tools or something along those lines to signup. If not, where am I supposed to sign up?
Thanks in advance.
Note: I already have all the information from the cloud platform such as client_id, client_secret, project_id.
In "Error: Daily Limit for Unauthenticated Use Exceeded", they key word is Unauthenticated. Your request to the Calendar API is missing an OAuth Access Token. You will need to research Google OAuth.
This question has been answered many times. Please learn how to search SO for similar questions whenever you post a new question. https://stackoverflow.com/search?q=google+oauth+%22daily+limit+for+unauthenticated%22
To anyone who comes across this post in the future. I fixed the issue by using the project generated by Google Calendar API site (https://developers.google.com/calendar/quickstart/nodejs) by clicked the big blue "Enable the google calendar api" and then changing the name of the quickstart project that was generated. I don't know why it works now but it does and it's been working quite stably so far. Lets see how to goes.

Google Contacts API was turned off in our Developer Console mysteriously

Our application relies on the Google Contacts API. Access to the Google Contacts API was disabled in our Application on August 7th, 2017 at 6pm (Pacific). Graph:
We weren't notified by Google and I'm certain we haven't hit the quota. Our users let us know and we were able to re-enable it this morning successfully.
But we're trying to figure out how this happened. Has anyone else seen API access disabled without their knowledge... or can someone from Google help us track this down?
Thanks!
Yes, had the same issue today with one of our projects that is using Google Contacts API - found Contacts API disabled...
And that came with another quite annoying issue when we started to get "unusual traffic" web page content with the CAPTCHA thing instead of error, when trying to access Google Contacts API.
The detailed issue was registered by me here, you can take a look:
https://issuetracker.google.com/issues/64472602

Get Google Calendar API Limit

Is there any way to get the requests quota of Google Calendar API by calling some API method in code?
I know that I can see the total and remaining requests count on the project dashboard. But, I want to fetch it in my application and display it to admin user on a web page for convenience so that he doesn't need to sign in to Google to view the quota.
Thanks
No there is no way to see how much of the Quota you have used on any of the Google APIs. I normally keep a running count of requests for display to the user. But there is no way to check what the over all quota usage is for the application.
I have done send feed back from the Developer console several times asking them to add an API. There are cloud monitoring APIs but nothing for monitoring quota usage.

Resources