Official list of supported `calendarId` by Google Calendar - google-calendar-api

Is there way to pull list of calendarId supported by Google Calendar? I would like to use this API Events.
I found some calendarId list here and it seems it is limited. I am wondering if there are more ids than in that list.

Related

Retrieve Google Analytics 4 event parameters via API

Google Analytics (particularly version 4, "GA4") has various predefined events, each with its own parameters. E.g. the purchase event has an items parameter, which contains data such as item_id and item_name for each purchased item. JS code on a website can send these events and pass the extra data, and I can actually see the data in the "Analysis hub" in the Google Analytics interface.
Is there a way to also fetch this extra data using the Google Analytics Data API? There is a way to retrieve some predefined dimensions and also "custom dimensions" (via customEvent:parameter_name), but e.g. purchase item data doesn't seem to be a part of that.
Do I have to define custom dimensions (e.g. a purchasedProductId) and send them in addition to the items parameter, if I want to access this data via API?
Jan,
Ecommerce reporting is not yet supported in the Google Analytics Data API. I will update this question once I have more information about the timeline of this feature implementation.
Thanks,
Ilya
The Google Analytics Team

Way to use Google Search API to access Google Enchanced Events results?

I am working to automate Google searches for events in a specific area. When manually searching for events, for example "concerts in Los Angeles" there is a form of enchanted rich results called "Events" that feature structured data like date, event title, host, etc.
I would like to automate the searching for these events, but cannot figure out an API or site that allows for the scraping of these Events blocks. Is there a google search keyword or other method in which I could isolate these events?

Google Events API: Total Count of Events in a Calendar

I need the total count of events in a google calendar. The v3 events API doesn't seem to offer this.
Anything obvious I'm missing? Or just not supported?
Use Events.list to retrieve all events associated with a calendar. Give it a quick run in the Try-it.
There are also sample Quickstarts which show how to list these events.

How to implement Google Calendar API

I just want to say that I am not a web developer.
I work at a high school and we have a Day 1 - 4 schedule rotation. I'm trying to create some sort of calendar that staff and students can subscribe (not sure if this is the correct word) to so that they can schedule information to existing calendars on their smartphones. Similar to how there are calendars for holidays and stuff like that. Google Calendar API allows you to create projects based on a variety of languages. Would I need to create an Android and iOS app to accomplish this or is there some sort of cross-platform scripting that I can use to implement this?
Sorry if what I'm asking seems weird, I'm very new to this API, but I have done some scripting for Google sheets and other Google products and this seems very different. I'm trying to phrase this question so that it's not opinion-based.
Based from the official documentation, you need to call the events.insert() method to create an event providing at least these parameters:
calendarId
event
But in order to successfully create events, you need to set your OAuth scope to https://www.googleapis.com/auth/calendar and ensures the authenticated user has write access to the calendar with the calendarId you provided (for example by calling calendarList.get() for the calendarId and checking the accessRole).
Check the examples in the documentation.

How I can get places with specific types using Google Places API?

I need all locations of type cafe, gas_station, and restaurant using Google Places Api. Here is my query via the API:
https://maps.googleapis.com/maps/api/place/search/json?location=41.104805,29.024291&radius=50000&sensor=true&key=AIzaSyAVH0qHD6BPxRlnck3rIqcxC5TTwOTyfds&types=gas_station||shopping_mall
This returns mosque location types only. I'm not getting shopping_mall, gas_station, or restaurant types. here i am checking type in google place api
How can i get all these types?
Unfortunately, Google Places API does not appear to have anything under those categories in that area.
Use types=establishment to get a more complete list of businesses etc. in that area.
Unfortunately, you will have to find some other way to determine what is a gas station, etc. Google Places API does not appear to have that data, at least at this time.
It may be possible to contribute that data yourself.
Since the answer above was posted, Google has added support for additional location types.
https://developers.google.com/places/documentation/supported_types
It was suggested in other SO thread, that you use 'keyword' instead of 'types' in your query to Google. Related SO thread:
How can I search places with specific types using Google Places API?

Resources