Google Sheets Connection

Connection Configuration

Configure the fields required to create the connection as explained below.

Connection Name

Name of the connection to be created.


Service Account Key Type

The preferred service account key type should be selected out of JSON or P12 for authentication.


Service Account ID

Google service account ID should be provided.


Upload File

Upload file with service account credentials as per the Service Account Key Type selected above.

See the sub-topic Generate Service Account Key to know the steps required for generating Service Account ID and Service Account Key for upload.


Add Configuration

Additional properties can be added using this option as key-value pairs.


Test Connection

After entering all the details, click on the TEST button.

If the connection service identification and authentication details are provided correctly, a success message stating Connection available is generated.

Click on the CREATE/UPDATE button to save the changes.

If the details are incorrect or the server is down, you will an appropriate failure message to rectify the connection configuration fields.


Generate Service Account Key

Prerequisite

  • You must have a Google account to access the GCP services.

Steps required to generate service account key

Follow these steps in Google Cloud to allow Gathr the access to your Google Sheets:

  • Create a Service Account and key

  • Enable the required APIs

  • Share a Spreadsheet from your Google Drive with the Service Account ID

Each of these steps are explained below:


Generate Service Account ID and Key

  1. To access/create Google account, click here.

  2. Sign in to GCP.

  3. Create a new project to proceed further. Else, use any existing project to continue.

  4. Navigate to IAM & Admin section and click on the Service Accounts option.

  5. On the Service Accounts page, click on the CREATE SERVICE ACCOUNT option as shown below:

    Create_Service_Account_1

  6. Provide the service account details and click CREATE AND CONTINUE.

    Create_Service_Account_2

  7. (Optional steps) Grant the service account access to project and users.

    Create_Service_Account_3

    Click Done.

  8. The created service account will be listed on the Service Accounts page along with the available ones (if any).

    This Service Account ID should be provided in Gathr during the Google Spreadsheet connection configuration.

    Create_Service_Account_4

    Click on the ellipses under Actions and select Manage Keys.

  9. Click on ADD KEY to create a new key or download an existing key.

    Choose a key type from the available options, JSON or P12, and click CREATE.

    Create_Service_Account_5

    The created Private key will be downloaded and saved locally.

    Create_Service_Account_6

    This Private Key file should be uploaded in Gathr during the Google Spreadsheet connection configuration.

Enable the Google Sheets API and Drive API

  1. Search for APIs & Services on Google console, or, follow the link given below:

    https://console.cloud.google.com/apis

    Enable_APIs_&_Services

  2. Click on ENABLE APIS AND SERVICES option.

  3. On the API Library page, search and open google sheets api.

    Enable_Google_Sheets_API_1

    Enable_Google_Sheets_API_2

  4. On the Google Sheets API page, click on ENABLE.

    Create_Service_Account_7

    A confirmation will appear once the Google Sheets API is enabled.

    Enable_Google_Sheets_API_4

  5. On the API Library page, search and open google drive api.

    Enable_Google_Drive_API_1

    Enable_Google_Drive_API_2

  6. On the Google Drive API page, click on ENABLE.

    Enable_Google_Drive_API_3

    A confirmation will appear once the Google Drive API is enabled.

    Enable_Google_Drive_API_4


Share Spreadsheet with Service Account ID

  1. Navigate to Google Sheets and open a spreadsheet.

  2. Share your Google Spreadsheet with the created Service Account.

    Create_Service_Account_8

After completing all the required steps navigate to Gathr console and provide the necessary details to create the connection.

To know more about how to create and manage service account keys using the Google Cloud Console, click here.


Google Sheets Usage Limits

To understand the usage limits that apply to Google Sheets, please refer to the link below:

Google Sheets Usage Limits.

Top