The data connector for Google Sheets enables you to import the data from you Google sheets.


Prerequisites

Use the TD Console to Create Your Connection

Create a New Connection

When you configure a data connection, you provide authentication to access the integration. In Treasure Data, you configure the authentication and then specify the source information.

  1. Open TD Console.

  2. Navigate to Integrations HubCatalog.

  3. Search for and select Google Sheets.



  4. The following dialog opens.



  5. Authenticate the connection by selecting an existing OAuth connection or creating a new one.


  6. Name your new Google Sheets connection.


Account Authentication

Access to Treasure Data Google Sheets integration requires OAuth2 authentication. The authentication requires that users manually connect their Treasure Data account to their respective Google account.

If you don’t have an existing connection, create a new authentication.

  1. After opening the authentication dialog, select the link under "OAuth connection" to create a new connection

  2. Log into your Google Sheets account in the popup window and grant access to the Treasure Data app.


  3. You are redirected back to integration dialog pane. Select Google Sheets and select the new connection from the drop down menu.



Transfer Your Google Account Data to Treasure Data

After creating the authenticated connection, you are automatically taken to Authentications.

  1. Search for the connection you created. 



  2. Select New Source.

Connection

  1. Type a name for your Source in the Data Transfer field.

  2. Click Next


Source Table

  1. Edit the following parameters 


Parameters

Description

Spreadsheet Key

Specify the Google Spreadsheet key

Worksheet Title

Title of worksheet after importing to TD

Range to fetch

Range of fetch data from Google Spreadsheet

Use A1 notation without worksheet title (eg. A1:C100). If empty, ingest the whole sheet and number of columns is defined by the first row/column.

Use first row/column as header

 Select if you want to keep the first row or column as a header.

Skip first rows/columns

Skip n top rows when using Rows dimension or n left columns when using Column dimension

Major Dimension

Choose Rows or Columns

Value Render Option

Formatted value or Unformatted value

Date Time Render Option

Formatted String or Serial Number

Ignored if using Formatted Value in Value Render

  Data Settings

  1. Click Next.
    The Data Settings page opens.

  2. Optionally, edit the data settings or skip this page of the dialog.

 Data Preview 


Data Placement