Integration with Google Docs
To create Resources type Google Docs on the portal, you need to set up an integration between the portal and Google. The portal connects to your Google Drive through a service account. This is a Google system account that acts on behalf of the platform and can only access the documents that you have shared with it.
To set up the integration, go to the Google Cloud Console at https://console.cloud.google.com/ and sign in to your Google account. If you haven't created any projects in Google Cloud before, the system will prompt you to create a new one.
1. Enabling the Google Drive API and Google Slides API
First, you need to activate the Google Drive API and Google Slides API , which allows LMS Collaborator to interact with the files on your Google Drive.
Activate the Google Drive API
On the main page of the console, click the Navigation menu button in the upper-left corner:

In the dropdown menu, go to the APIs & Services section and select Library:

In the search bar, type drive and press Enter on your keyboard:

In the search results select the card Google Drive API:

On the API page, click the Enable button. After that, the API will be activated for your project.
If the Manage button is displayed instead of Enable, the API is already enabled and you can skip this step.

Activate the Google Slides API
Similarly, on the console's main page click the Navigation menu button in the upper-left corner and in the dropdown menu, go to the APIs & Services section and select Library:

In the search bar, type Slides and press Enter on your keyboard:

In the search results select the card Google Slides API:

On the API page, click the Enable button. After that, the API will be activated for your project.
If the Manage button is displayed instead of Enable, the API is already enabled and you can skip this step.

2. Creating a Service Account
A Service account is a special technical account that LMS Collaborator will use to access the documents you choose.
To create a service account, click the Navigation menu button in the upper-left corner, then in the list that expands, select IAM & Admin and then the Service Accounts sub-item:

On the page that opens, click the Create service account button:

In the Service account name field, enter any name for the account (in the example, google-docs-intergration), after which the system will automatically generate a technical ID. Click the Create and continue button:

On the next steps (Permissions and Principals with access), you don't need to change anything. Leave the default settings and click the Continue button:

To complete the creation, click the button Done:

The created service account will appear in the general list:

3. Creating an Access Key
For the LMS Collaborator portal to authenticate as the service account you created, you need to generate a key file.
To create the access key, click the Actions button next to the service account you created and select Manage keys:

On the keys tab, click the Add key button and select Create new key from the dropdown list:

In the modal window, in the Key type field, select JSON and click the Create button:

The access key file in .json format will be automatically generated and downloaded to your computer. Keep it in a safe place, as it's not possible to download this same key again (if you lose it, you will need to create a new one).

Setting Up the Google Docs Integration on the Portal
Now you need to add the access key on the portal.
To do this, go to the System Settings - Integrations menu:

On the Integrations page, in the Google Docs section, you need to turn on the toggle and add the key you created earlier. To do this, click the Upload button and select the JSON file saved on your computer. Alternatively, open this file in a text editor, copy its entire contents, and paste them into the field.
After that, click the Save button.

Granting the Service Account Access to Google Documents
LMS Collaborator works with Google documents through the service account. This means the service account can only see the documents and presentations it has been given access to. For existing documents to appear on the portal, add the service account's email to the sharing settings of each one, just as you would share a document with a regular user.
To copy the service account address, go to the System Settings - Integrations - Google Docs menu and copy the service account email address:

Next, grant access to the files you need on your Google Drive.
To grant access, open the document (or folder) you need on Google Drive and click the Share button:

In the modal window, paste the copied service account email into the "Add people, groups and calendar events" field and click the Done button. The Viewer access level is enough for viewing the document on the portal.

After this, the Google document is ready to be added to the portal when creating Google Docs-type Resources. Learn more Resource Google docs