TeamDrive Notification Using Google admin SDK for reports - push-notification

I'm using the documentation https://developers.google.com/admin-sdk/reports/v1/guides/push#making-watch-requests for creating the channel for team drive for google using google reports API. According to the document, we can make channel depending upon various filter conditions. For my purpose, I choose to use the filter "owner_is_team_drive==true". The problem with using this filter is that a channel gets created properly (I get a channel object in return) but the notification doesn't come if I perform any action.
I'm using Google Admin SDK for reports for creating the request for the channel. While looking at the logs I found that the API being used to hit the request is https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?filters=owner_is_team_drive%3D%3Dtrue
PS: I tried using other filters(like "doc_type==team_drive") and also the API without filters, I get the notification properly.

Related

Is it possible to specify the application version for website in the Google Analytics?

There is a single-page application (website) that can perform its functions without updating (including from a local copy). It was connected (via Google Tag Manager) Google Analytics, I get data about the application functions usage (by triggers on buttons clicks). But in GA, "application version" is shown as "(not set)" in all reports.
Is it possible somehow to pass the version of the app from the site, or is this feature only for apps?
UPD:
It's GA4.
Unfortunately I tried do it in GTM via the "fields to set" and get failed. Now I can see appVersion in realtime report as parameter of event "page_view" or my custom events, but in regular reports application version still marked as "(not_set)".
I can't test it now, but I believe this parameter is indeed a standard parameter only expected on mobile applications (Android, iOS).
Therefore, you should not be able to see any values for it in default reports, unless you manage to send it as firebase does it for an app.
From the firebase docs, there is the event app_update (normally collected automatically on apps) that expects a previous_app_version parameter. What you could do is to try to dispatch that event, with the parameter and see if thé version shows up in default reporting, but I would not bet on it.

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 do i tell Openrefine to fetch some data trough the google and facebook API (Grel)

I have a list of around 500 foundations and companies and i need to fetch more data like address, description, lat long, email or phone number, from the google and FB APIs I have found something more or less like this, but it won't work in OpenRefine, i need some help please.
I think it is possible to do beacause there is an addon called spotlight for spreadsheets that is able to fetch Google URLs and Lat Long https://www.youtube.com/watch?v=Vj1v3QfyrgA&feature=youtu.be
https://maps.googleapis.com/maps/api/place/findplacefromtext/output?parameters/json?input=value&inputtype=textquery&fields=photos,formatted_address,name,rating,email,geometry&key=YOURKEY
I have created the FB and Google places and google staic map API already. I have tried different queries, but it won't work unless it is in GREL
value.parseJson().geonames[0].lng
value.parseJson().geonames[0].geonameId
value.parseJson().geonames[0].lat
From the error "This API project is not authorized to use this API" the first thing to check is that you have enabled the Places and/or Geocoding API in the Google Developer console, and you have setup an API Key and that it is showing as a credential for the Places API and/or the Geocoding API
Next step, take OpenRefine out of the equation and check you can get a simple API call working in your browser - using one of the Google Places API examples:
https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=Museum%20of%20Contemporary%20Art%20Australia&inputtype=textquery&fields=photos,formatted_address,name,rating,opening_hours,geometry&key=<INSERT YOUR API KEY HERE>
If that gives you the same error, you know the issue is not with OpenRefine.
If you are still having problems in OpenRefine make sure you are creating URLs in OpenRefine that are valid for the appropriate Google API based on the documentation for that API and that you are using the correct API key.

TeamDrive Notification Using Google admin SDK for reports having issue with owner_is_team_drive flag

I'm using the documentation https://developers.google.com/admin-sdk/reports/v1/guides/push#making-watch-requests for creating the channel for team drive for google using google reports API. According to the document, we can make channel depending upon various filter conditions. For my purpose, I choose to use the filter "owner_is_team_drive==true". The problem with using this filter is that a channel gets created properly (I get a channel object in return) but the notification doesn't come if I perform any action.
I'm using Google Admin SDK for reports for creating the request for the channel. While looking at the logs I found that the API being used to hit the request is https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?filters=owner_is_team_drive%3D%3Dtrue
PS: I tried using other filters(like "doc_type==team_drive") and also the API without filters, I get the notification properly.

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 ?

Resources