Get 'Suggested Time' via Google Calendar API - google-calendar-api

Is there a way to get 'Suggested Time' list programmatically to schedule among multiple attendees, Which API can I use?
A google search for 'google calendar API suggested times' gets me to finding 'free time' via FreeBusy API, which is different from 'Suggested Times' when you are creating an event with attendees
Any pointers to the pertinent API is appreciated.
Thanks,
NT

As a community wiki comment:
there is no suggested time method. Your going to have to calculate this yourself. -> #DaImTo
You can create a feature request for this on Google Issue Tracker

Related

GET Goals from Google Analytics using API Method with Date Range

I am trying to get the goals from our google analytics account but applying a date range. I haven't seen in the documentation a way to pass a date range for this method. Any help would be appreciated! Thanks!
Testing using their API test page here: https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/goals/get
GET https://www.googleapis.com/analytics/v3/management/accounts/accountId/webproperties/webPropertyId/profiles/profileId/goals/goalId
When I pull the request using the their test API page, I am assuming it is only pulling the goal conversions for the day I am making the request, not for all of time.
I think you might be confusing the reporting api with the management api.
If you want to get data out of GA, use the reporting api.
If you want to configure GA or read GA configurations, use the management api.
In your case, you want to REPORT on the goals, but you're using the management api to do so.
You should use the reporting API to get a list of goals completed.
Reporting API reference/documentation: https://developers.google.com/analytics/devguides/reporting/core/v4/

Can I track my Firebase function in Google Analytics?

Is there any way to perform Server-side event tracking?
Every call to my Firebase function, has to go through multiple steps. I couldn't monitor it through console logs. Actually I need to prepare an report at end of every week and month.
Looking for the better way to do this. Is there any better tool available other than Google Analytics?
Appreciate your help!
As of late 2020 it is possible to log events from server-side code with the Analytics Data API and the GA4 Measurement Protocol documentation on sending events with this REST API, which you can use from Cloud Functions (and almost any other environment).
Old answer 👇
There is no server-side API for Google Analytics for Firebase.
Some options to consider:
Insert events directly from the clients that also trigger the Cloud Functions.
Use regular Google Analytics for these stats.
Insert the events into BigQuery and use Data Studio for reporting.

Google Calendar and Twilio as On-Call

So I have been using Twilio and Google Calendar for a while now. I was wondering if anyone had a way to connect the two together so I can create an "on-call app" that will automatically take my Twilio number and redirect that number to whoever is on call, based on Google Calendar. I see examples of sending SMS reminders of upcoming events from a google calendar, but nothing that is helping me use Google Calendar and Twilio as a way to help reduce our errors on switching the on-call number.
Twilio developer evangelist here.
I'm not sure about your exact use case, but my colleague Marcos wrote about how you might connect Google Calendar with Twilio. You could use that as a basis for building something that would work for you.
What I guess you would need to do is connect to Google Calendar. Then, when you have a call, look up the current person who is on call (presumably this is represented by events within the calendar). If you record the person's phone number within the event then you can extract that and use it to generate a call or SMS via Twilio.
Does this help at all?

How to get from Google Analytics API if the option "bot filtering is checked" on a profile

I have a list of different accounts with many properties and profiles on Google Analytics.
I would like to use the the Google Analytics API, to ask for each one of these profiles if the option "Bot Filtering" (Exclude all hits from known bots and spiders) is active or not. How could I do that? (I don't want to go through all accounts manually, it would be too much time consuming).
I have tried via the method GET of a profile or even in filter but I could not find this information.
Thanks in advance
As per changelog of Management API, 17th December 2016, botFilteringEnabled property is added to the view resource.
Unfortunately that setting is not exposed in the Management API you could always submit a feature request to the issue tracker.

Google event tracking (background events)

Ok so here is a scenario I would like to get some ideas on:
A user shows up to my site and registers for my service...lets call the service "vaporware".
After registration the user proceeds to view all the glorious features that my cloud based vaporware has to offer. Each feature that they use during their visit is recorded using Event Tracking in Google Analytics and I can effectively track engagement.
Now the problem:
One of the features in my Vapor product has tasks built in. These tasks are important for a number of reasons...they are recurring and do not require any action from the user to execute.
How would I using either "old" google analytics or the new Universal Analytics go about tying these "background events" visitors? I am thinking that the new Measurement Protocol may be have the answer as this perhaps can be considered cross platform tracking...
Regardless this keeps coming up a lot for me and am interested even finding a hack/work around to start recording these types of events in GA.
If they're logged in, you can substitute the autogenerated client ID with your own user/account ID (make sure to anonymize it before sending it to Google).
With the Measurement Protocol it's the cid parameter:
...v=1&tid=UA-XXXX-Y&cid=my-user-identifier&t=event...
In the Universal Analytics JS code, it would be something like this:
ga('create', 'UA-XXXX-Y', {
'clientId': 'my-user-identifier'
});
Hope this helps :)

Resources