google-calendar-apigoogle-meet

Google Stopped creating Google Meet link while creating event using Google Calendar API


From today Google has stopped creating Google meet Url while creating an Event.

    ConferenceData conferenceData = new ConferenceData();
    ConferenceSolution conferenceSolution = new ConferenceSolution();
            
    CreateConferenceRequest createRequest = new CreateConferenceRequest();
    ConferenceSolutionKey conferenceSolutionKey_ = new ConferenceSolutionKey();
    conferenceSolutionKey_.setType("hangoutsMeet");
    
    createRequest.setConferenceSolutionKey(conferenceSolutionKey_);
    createRequest.setRequestId(UUID.randomUUID().toString());
    conferenceData.setConferenceId(UUID.randomUUID().toString());
    
    conferenceData.setCreateRequest(createRequest);
    event.setConferenceData(conferenceData);

Note : I have not created EntryPoint Is there anything updated from Google side and therefore this code is not working ?

Our production code has been impacted due to this issue.


Solution

  • Looks like Google has made some changed and it was stopped creating Google Meet url ( Event was created ) Base on input form Google Engineer it is require to set ConferenceDataVersion = 1. However for Java API that is not just enough. Here it is complete solution of creating Calendar Event + Meet url

        Event event = new Event()
                .setSummary("Your summary")
                .setLocation("Your location")
                .setDescription("Your description");
        
        ConferenceData conferenceData = new ConferenceData();
        ConferenceSolution conferenceSolution = new ConferenceSolution();
        
        CreateConferenceRequest createRequest = new CreateConferenceRequest();
        ConferenceSolutionKey conferenceSolutionKey_ = new ConferenceSolutionKey();
        conferenceSolutionKey_.setType("hangoutsMeet");
        
        createRequest.setConferenceSolutionKey(conferenceSolutionKey_);
        createRequest.setRequestId(UUID.randomUUID().toString());
        
        List<EntryPoint> entryPoints = new ArrayList<EntryPoint>();
        EntryPoint entryPoint = new EntryPoint();
        entryPoint.setEntryPointType("video");
        entryPoints.add(entryPoint);
        conferenceData.setEntryPoints(entryPoints);
        conferenceData.setCreateRequest(createRequest);
        conferenceSolution.setKey(conferenceSolutionKey_);
        conferenceData.setConferenceSolution(conferenceSolution);
        
        event.setConferenceData(conferenceData);
        
        // Build your calenderService using Scope + AccessToken
        Calendar calenderService = getCalenderService();
        
        // calendarId  = Your private or public calendarId. Default option = "primary"
        event = calenderService.events().insert("calendarId", event).setConferenceDataVersion(1).execute();