Google Sheets Source Connector
The Google Sheets source connector in DataSync lets you retrieve data from Google Sheets for loading or synchronizing in your data warehouse. Before you start, you must have a Google account and set up an OAuth client in Google Cloud Console so DataSync can authenticate.
After creating all required source connections, configure your destination connection to finalize the setup.
Authenticate with the same Google account used to create the Google Cloud project and OAuth client.
Set up Google Cloud
Create or select a Google Cloud project
- Go to the Google Cloud Console.
- Sign in with your Google account.
- Select Select a project, and then do one of the following:
- Select an existing project.
- Select New project, enter a project name and location, and then select Create.
Enable required APIs
- In Google Cloud Console, select APIs & Services, then Enabled APIs & Services.
- If you have multiple projects, select the right one.
- Click + Enable APIs and services.
- In the search bar, enter
Google Sheetsand press Enter. - Select Google Analytics API and click Enable.
- In the search bar, enter
Google Driveand press Enter. - Select Google Drive API and click Enable.
Create OAuth credentials
- In Google Cloud Console, go to APIs & Services, then Credentials.
- Select + Create credentials, then OAuth client ID.
- Under Application type, select Web application.
- Under Authorized JavaScript origins, add your DataSync server URL and your company domain.
- Leave Authorized redirect URIs empty for now.
- Select Create, and then copy the Client ID and Client secret for later use.
The values in Authorized JavaScript origins must be valid URLs (for example, ending in .com or .net).
Create a source connection in DataSync
- Log in to DataSync.
- From the welcome screen, select Connections.
- Next to Source Connections, click New.
- Select Google Sheets.
- In the Connection Properties panel, enter the required values.
- Copy the Callback URL shown in Connection Properties.
- In Google Cloud Console, go to APIs & Services, then Credentials.
- Select your OAuth client, and then add the DataSync Callback URL under Authorized redirect URIs. Click Save.
- (Optional) In the Additional Connection Properties panel, select Add property and enter the parameters for each property.
- In the Advanced Settings panel, configure the settings, including the Tracking Type and other values according to your requirements.
- Click Save, and then complete the Google sign-in and consent prompts.
Parameters
Connection properties
| Parameter | Description |
|---|---|
| Description | Unique name for the connection. Example: Google Sheets |
| Callback URL | URL generated by DataSync that you add to Authorized redirect URIs in Google Cloud Console. |
| Client ID | OAuth client ID from Google Cloud Console > APIs & Services > Credentials. Example: 1234567890-abc.apps.googleusercontent.com |
| Client Secret | OAuth client secret from Google Cloud Console > APIs & Services > Credentials. Example: XyZ123_ABCD |
| Verbosity |
|
| Pool idle timeout | Maximum idle time for connections before returning them to the pool, in seconds. |
| Max Pool Size | Maximum number of connections allowed in the pool. |
| Pool wait time | Maximum wait time for connection allocation before error is thrown, in seconds. |
Additional connection properties
Additional connection string properties not specified in the Connection Properties panel. For each property added, you can choose Visible or Encrypted. Selecting Encrypted hides the value from the interface and stores it encrypted in the back end, such as when defining passwords.
| Parameter | Description |
|---|---|
| Property | Connection string property that defines the action or behavior. Example: ReadOnly |
| Value | Value for the property. Example: True |
| Type | Visibility of the property: Visible or Encrypted. |
Advanced settings
Advanced settings control how the Google Sheets connector tracks changes, handles regional and time configuration, and processes data batches during extraction. These options allow fine‑tuning for performance and accuracy, and should be configured according to your system environment and operational requirements.
| Setting | Description |
|---|---|
| Tracking Type | Method for tracking changes: None or Date. |
| Region | Region setting for the connector, if required by your setup. |
| Time Zone | Time zone matching the Google Sheets application server. |
| Time Offset | Refresh offset in seconds to compensate for timing issues in record selection. Minimum value is 0; maximum is 3600 seconds. |
| Batch Size | Quantity of records processed in each batch during extraction. Larger batch sizes increase memory usage but can improve performance up to a point. The default value is 2000 and the maximum should not exceed 10000 records. Adjust according to your network speed and disk performance; in most cases the default (2000) works best. |