Imports data from a Google Spreadsheet.
Before you can download data from a Google Spreadsheet you have to give acces. There are two ways to do this:
Take the steps below to download a Google Spreadsheet with a service account.
conn_id
client_email
from the Service Account `Read` access to the Google spreadsheetTake the steps below to download a Google Spreadsheet with a delegated account. Please take note of the security precautions needed to secure this connection method.
To retrieve the file ID do the following:
https://docs.google.com/spreadsheets/d/1orAc9s3DWu5_G5m3UGxuf9ibMh2P7rrmirNoT-Iw_pI/edit?usp=sharing
extract:
sheet_id: 1orAc9s3DWu5_G5m3UGxuf9ibMh2P7rrmirNoT-Iw_pI
sheet_name: Sheet2
range: A2:B1001
property | type | required | description |
---|---|---|---|
sheet_id | string | yes | Contains the id of the spreadsheet. |
sheet_name | string | no | Name of the sheet you want to import. Use the exact name as seen in the Google Spreadsheet. If no sheet_name is provided, the first sheet will be imported. |
range | string | no | Range of the data you want to import. Notation is like: A2:B1001. This would select a matrix in your sheet from top left A2 till bottom right B1001. If no range is provided all data from the sheet is imported. |
conn_id | string | no | Connection string as handed to you by the Onesecondbefore team. If your cloud is Google Cloud, the conn_id is not obliged. It will take the client_cloud.db_conn_id. |
delegated_account | string | no | Delegated account to use to download the content of the Google Drive spreadsheet. |
item | description |
---|---|
API | Google Sheets API |
Pre-formatted schema | No. This from task does not come with a pre-formatted schema. Do not define file and only define schema
if you use Snowflake. BigQuery can auto-detect the source file.
|