How to Connect N8n | Google Sheets Integration | Custom OAuth N8N Setup | GCP API | Full Tutorial
Description: Welcome to Tech & Code Report with Aymal! In this tutorial, I show both ways to connect Google services with n8n:
n8n Cloud: Use the recommended Sign in with Google / Managed OAuth2 option for a quick connection.
Self-hosted n8n: Configure your own Google OAuth2 credentials using Google Cloud, including the required APIs, OAuth consent screen, Client ID, Client Secret, and n8n redirect URL.
This makes the tutorial applicable whether you are using n8n Cloud or a self-hosted n8n instance. We tackle one of the most critical foundational integrations for automated workflows: connecting Google Sheets to n8n using robust custom OAuth 2.0 credentials. As a full-stack engineer specializing in AI-related development and intelligent systems, I rely heavily on secure, scalable data pipelines. Moving away from standard built-in authentication toward custom Google Cloud Console configurations is essential for production-grade, self-hosted environments.
We will walk through the entire Google Cloud platform configuration, from enabling the necessary Drive and Sheets APIs to generating your Client ID and Secret. Then, we will seamlessly link these custom credentials back to your n8n workspace to ensure authenticated, uninterrupted automation.
🔍 What you will learn in this video:
How to create a new project in the Google Cloud Console.
Why enabling the Google Drive API is necessary alongside the Google Sheets API.
How to generate Custom OAuth 2.0 Client IDs and Client Secrets.
The correct way to map authorized redirect URIs from n8n to Google Cloud.
How to bypass Google's unverified app screen during the OAuth consent flow.
Building and executing a test workflow to append rows directly into your spreadsheet.
🕒 Timestamps:
0:00 Intro - Tech & Code Report
0:05 Creating a Google Cloud Project
0:15 Navigating to APIs & Services
0:33 Enabling the Google Drive API
0:58 Enabling the Google Sheets API
1:11 Generating OAuth 2.0 Credentials
1:42 Configuring Custom OAuth in n8n
2:23 Completing the Google Sign-in Consent Flow
3:45 Building a Test Workflow in n8n
4:29 Verifying Automated Data in Google Sheets
If you found this integration guide valuable, please hit the like button, share your thoughts or technical questions in the comments section below, and subscribe to the channel for more advanced development tutorials!
⚠️ Usage Policy: Please share this content only via direct YouTube links or embed codes. Downloading and re-uploading to other platforms or any other forms of distribution are strictly prohibited.
🌐 Website: https://aigensols.com
💼 Upwork: https://www.upwork.com/freelancers/~01cfbef93ef054b570?viewMode=1
🟦 LinkedIn: https://www.linkedin.com/in/aymal-khalid-khan-52537a154/
⬛ Github: https://github.com/aymalkhalid
#Automation #ArtificialIntelligence #SoftwareEngineering #DataPipelines #CloudComputing #n8n #GoogleSheets #OAuth2 #GoogleCloud #n8nTutorial #AymalKhalidKhan #TechAndCodeReport #AigenSols #CodeReport #TechAutomation Close description
n8n Cloud: Use the recommended Sign in with Google / Managed OAuth2 option for a quick connection.
Self-hosted n8n: Configure your own Google OAuth2 credentials using Google Cloud, including the required APIs, OAuth consent screen, Client ID, Client Secret, and n8n redirect URL.
This makes the tutorial applicable whether you are using n8n Cloud or a self-hosted n8n instance. We tackle one of the most critical foundational integrations for automated workflows: connecting Google Sheets to n8n using robust custom OAuth 2.0 credentials. As a full-stack engineer specializing in AI-related development and intelligent systems, I rely heavily on secure, scalable data pipelines. Moving away from standard built-in authentication toward custom Google Cloud Console configurations is essential for production-grade, self-hosted environments.
We will walk through the entire Google Cloud platform configuration, from enabling the necessary Drive and Sheets APIs to generating your Client ID and Secret. Then, we will seamlessly link these custom credentials back to your n8n workspace to ensure authenticated, uninterrupted automation.
🔍 What you will learn in this video:
How to create a new project in the Google Cloud Console.
Why enabling the Google Drive API is necessary alongside the Google Sheets API.
How to generate Custom OAuth 2.0 Client IDs and Client Secrets.
The correct way to map authorized redirect URIs from n8n to Google Cloud.
How to bypass Google's unverified app screen during the OAuth consent flow.
Building and executing a test workflow to append rows directly into your spreadsheet.
🕒 Timestamps:
0:00 Intro - Tech & Code Report
0:05 Creating a Google Cloud Project
0:15 Navigating to APIs & Services
0:33 Enabling the Google Drive API
0:58 Enabling the Google Sheets API
1:11 Generating OAuth 2.0 Credentials
1:42 Configuring Custom OAuth in n8n
2:23 Completing the Google Sign-in Consent Flow
3:45 Building a Test Workflow in n8n
4:29 Verifying Automated Data in Google Sheets
If you found this integration guide valuable, please hit the like button, share your thoughts or technical questions in the comments section below, and subscribe to the channel for more advanced development tutorials!
⚠️ Usage Policy: Please share this content only via direct YouTube links or embed codes. Downloading and re-uploading to other platforms or any other forms of distribution are strictly prohibited.
🌐 Website: https://aigensols.com
💼 Upwork: https://www.upwork.com/freelancers/~01cfbef93ef054b570?viewMode=1
🟦 LinkedIn: https://www.linkedin.com/in/aymal-khalid-khan-52537a154/
⬛ Github: https://github.com/aymalkhalid
#Automation #ArtificialIntelligence #SoftwareEngineering #DataPipelines #CloudComputing #n8n #GoogleSheets #OAuth2 #GoogleCloud #n8nTutorial #AymalKhalidKhan #TechAndCodeReport #AigenSols #CodeReport #TechAutomation Close description
