Reputation: 699
I'm using Google.Apis.Calendar.v3 .NET Nuget package in my project to create google calendar events. But it automatically adds Google Meet link to the event which i dont want to.
When i create event, notification mails are sent to attendees which includes this string:
Joining info Join with Google Meet meet.google.com/******
How can i remove Google Meet from my events. I tried to add this ConferenceData property to Event object and set its value to null but still Google meet is visible in Google Calendar Event .
Event calendarEvent = new Event
{
... ,
ConferenceData = null
};
Upvotes: 0
Views: 1811
Reputation: 1519
With PHP I am achieving like this:
$event_data = array(
'summary' => $event->getSubject(),
'location' => $event->getLocation()->getDisplayName(),
'description' => $html,
'start' => array(
'dateTime' => $event->getStart()->getDateTime(),
'timeZone' => $event->getStart()->getTimeZone(),
),
'end' => array(
'dateTime' => $event->getEnd()->getDateTime(),
'timeZone' => $event->getEnd()->getTimeZone(),
),
'reminders' => [
'useDefault' => true,
],
'attendees' => array(
array('email' => '[email protected]'),
array('email' => '[email protected]'),
),
'conferenceData' => null,
);
$google_event_insert = $service->events->insert($calendarId, $google_event, ['conferenceDataVersion' => 1]);
From above code, please note, we are sending "conferenceData" as null + adding a query parameter conferenceDataVersion=1 to the insert request.
This works perfectly OK for me. You can use it in similar way in your .net code.
Upvotes: 2
Reputation: 2676
If you are using G Suite account you can do as the answer for this question:
To disable Meet conferences being automatically Added to any event created from the API:
- As an Admin, go to
admin.google.com
- Go to Apps > G Suite > Settings for Calendar > Sharing Settings
- Set
Video Calls
toOFF
Also I would suggest you to look at the guide for Add video and phone conferences to events.
In there there is some explanation on how to modify events:
The
conferenceData
field can be used to read, copy, and clear existing conference details; it can also be used to request generation of new conferences. To allow creation and modification of conference details, set theconferenceDataVersion
request parameter to 1.
Upvotes: 0