Google credentials
This section contains:
- OAuth2 single service: Create an OAuth2 credential for a specific service node, such as the Gmail node.
- OAuth2 generic: Create an OAuth2 credential for use with custom operations.
- Service Account: Create a Service Account (opens in a new tab) credential for some specific service nodes.
- Google PaLM and Gemini: Get a Google Gemini/Google PaLM API key.
OAuth2 and Service Account
There are two authentication methods available for Google services nodes:
- OAuth2 (opens in a new tab): Recommended because it's more widely available and easier to set up.
- Service Account (opens in a new tab): Refer to the Google documentation: Understanding service accounts (opens in a new tab) for guidance on when you need a service account.
Compatible nodes
Once configured, you can use your credentials to authenticate the following nodes. Most nodes are compatible with OAuth2 authentication. Support for Service Account authentication is limited.
| Node | OAuth | Service Account |
|---|---|---|
| Google Ads | :white_check_mark: | :x: |
| Gmail | :white_check_mark: | :warning: |
| Google Analytics | :white_check_mark: | :x: |
| Google BigQuery | :white_check_mark: | :white_check_mark: |
| Google Books | :white_check_mark: | :white_check_mark: |
| Google Calendar | :white_check_mark: | :x: |
| Google Chat | :x: | :white_check_mark: |
| Google Cloud Storage | :white_check_mark: | :x: |
| Google Contacts | :white_check_mark: | :x: |
| Google Cloud Firestore | :white_check_mark: | :white_check_mark: |
| Google Cloud Natural Language | :white_check_mark: | :x: |
| Google Cloud Realtime Database | :white_check_mark: | :x: |
| Google Docs | :white_check_mark: | :white_check_mark: |
| Google Drive | :white_check_mark: | :white_check_mark: |
| Google Drive Trigger | :white_check_mark: | :white_check_mark: |
| Google Perspective | :white_check_mark: | :x: |
| Google Sheets | :white_check_mark: | :white_check_mark: |
| Google Slides | :white_check_mark: | :white_check_mark: |
| Google Tasks | :white_check_mark: | :x: |
| Google Translate | :white_check_mark: | :white_check_mark: |
| Google Workspace Admin | :white_check_mark: | :x: |
| YouTube | :white_check_mark: | :x: |
⚠️
Gmail and Service Accounts: Google technically supports Service Accounts for use with Gmail, but it requires enabling domain-wide delegation, which Google discourages, and its behavior can be inconsistent.
n8n recommends using OAuth2 with the Gmail node.