Guide to Connecting n8n to Google Cloud APIs (OAuth 2.0)

VPTS Team Content has been moderated
Published date:26/12/2025 Update:26/12/2025 Views:180 Reviews: 5.0/5511reviews
VPTS on

Among the integrated services, Google Cloud APIs—especially Google Sheets and Gmail—play an important role in storing data, processing information, and communicating with...

Among the integrated services,Google Cloud APIs– especiallyGoogle SheetsandGmail– plays an important role in storing data, processing information, and communicating with customers. To ensure safety, security, and compliance with Google's policies, connecting n8n to these services should be performed usingOAuth 2.0. This article presents a step-by-step guide to configuring Google Cloud and n8n, helping your systemVPTSlog in to Google successfully, operate stably, and avoid common errors during deployment.

CONNECT N8N TO GOOGLE CLOUD APIS

Step 1: Create a Project on Google Cloud Console

First, open your browser and navigate to the pageGoogle Cloud Consoleat: 

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

On the main interface, click Select a project and choose New Project to create a new project

Google Cloud APIs

Location: leave as default

  • Project name: e.g. n8n-google
  • Location: leave as default
  • ClickCreate
Google Cloud APIs

This project should useexclusive to VPTS's n8n systemfor easier management and security control.

Step 2: Enable necessary APIs

After the project is created, you need to enable the APIs that n8n will use. In the left menu, selectAPIs & Services → Library

Google Cloud APIs

Here, search for and enable the following APIs one by one:

  • Google Sheets API
  • Google Drive API

If the workflow sends emails, enableGmail APIand select Enable

Google Cloud APIs

Step 3: Configure OAuth Consent Screen

The OAuth Consent Screen is the screen allowing Google to confirm that you permit n8n to access your Google data. In the Google Cloud Console, go to:
APIs & Services → OAuth consent screen → First steps

In sectionApp information, fill in the information:

  • App name: Enter your desired app name.
  • User support email: select your Google email

In the section Taget, click to select External and continue to click Next to proceed to step 3. At this step, you only need to re-enter your email and click Next.

Google Cloud APIs

Next, in the sectionTo end check the box and click Continue -> Create

Google Cloud APIs

Step 4: Create OAuth Client ID

Create Credentials byAPIs & Services and select Identiftiers.

Google Cloud APIs

Then, click Create Credentials and select OAuth Client ID.

Google Cloud APIs

On the OAuth Client creation screen:

  • Application type: selectWeb Application
  • Name: Please name it
  • Authorized redirect URIs: (for example https://hotron8n.devttt.com/rest/oauth2-credential/callback)
Google Cloud APIs

Step 5: Save Client ID& Client Secret

Sau khi Create, Client IDand Client Secret will appear; you need to copy both and save them in a secure note. Then, click OK to close the popup window.

Google Cloud APIs

Now you have connected n8n to Google Cloud APIs; next is the guide to configuring n8n with Google Cloud APIs.

GUIDE TO CONFIGURING N8N CONNECTION WITH GOOGLE CLOUD APIS

On the n8n interface page, clickCredentials, click the search box and type Googlesheets

Google Cloud APIs

Please fill in the information in the following configuration:

  • Client ID: Paste value Client IDsaved in Step 5
  • Client Secret: Paste value Client Secretsaved in Step 5
Google Cloud APIs

After filling it out, click the buttonSign in with Google, a window will appear; click Advanced and proceed to devttt.com.

Google Cloud APIs

Select all and continue. Once authentication is successful, you will see a notification in n8n.

Finally, to save the Credential in n8n, click the button Save to save.

Google Cloud APIs

Having guided you through successfully integrating n8n with Google Cloud APIs, this serves as an important foundation for building effective automation systems. However, to keep workflows running smoothly, stably, and processing data optimally, using a dedicated VPS infrastructure is essential. Contact our provider for support!!!

See more:Guide to Updating to the Latest Version of N8N

Don't miss the opportunity to use high-quality VPS services with exclusive offers only at VPTS!

  • Hotline: 0328 812 674

CONCLUSION

Through the step-by-step connection guiden8n with Google Cloud APIs using OAuth 2.0 authentication, CompanyVPTShelped users clearly understand the configuration, permission provisioning, and system integration process accurately and efficiently. Successful deployment not only provides a solid foundation for stable automation workflows but also enhances data management, processing, and synchronization capabilities. Thereby,VPTSaffirming its role as a reliable provider of infrastructure solutions and technical guidance, meeting practical automation needs effectively.

VPTS – Comprehensive Digital Infrastructure Solutions Provider

VPTS is a digital infrastructure solution provider in Vietnam, serving deployment, operation, and data storage needs for individuals, developers, and enterprises. The service ecosystem includesVietnam VPS, International VPS, VPS Anti DDoS, Hosting cPanel, dedicated server, Rack rental, Proxy IPv4/IPv6, S3 MinIOandCloud Storage.

Besides providing infrastructure resources, VPTS also focuses on assisting customers with deployment, configuration, and practical troubleshooting. Content on the VPTS Blog is drawn from common scenarios in operating VPS, servers, and online systems, helping readers understand root causes and apply clear solutions.

VPTS – Stable infrastructure, flexible solutions, and continuous partnership throughout operations.

VPTS Team Contact Information