To read events from your public Google Calendars you’ll need create a Google API key and save within your plugin settings.
You’ll need the Google Calendar Pro add-on to read events from both private and public calendars and additional display features such as event colors, attendees and attachments.
Here are step-by-step instructions to create and save a Google API key:
1 Navigate to the Google Developers Console.
2 From the top Project menu select Create project.
3 Give your project a name, agree to the terms, then click Create.
4 From the Google Developers Console Dashboard select Enable API. If you don’t see this, select API Manager from the top-left “hamburger” menu.
5 Under Google Apps APIs, select Calendar API. Then click Click Enable.
6 Before you can create an API key under the Credentials tab, you will need to configure your oAuth consent screen:
7 Set User Type to External and click Create.
8 Enter an App name (not important), User support Email, and Developer Support Email, then click Save and Continue.
9 Select Credentials under API Manager in the left-hand menu, click Create credentials, then select API key. You can get to the same result using the “Go to Credentials” button, but the screens you’re taken through are a bit different.
10 On the API key created popup, select and copy (Cmd-C or Ctrl-C) your newly created API key.
11 Now back on your WordPress dashboard, go to Calendars, then Settings from the menu. Enter your Google API key here, making sure you have pasted the exact key without extra spaces. Then click Save Changes.
In case of any error or problem, you may try obtaining a new Google API key by repeating the steps above before contacting support. You can generate more than one API key under the same project on Google Developers Console.