Generate SEO Keywords with Google Ads API & n8n Automation

Discover how to automatically generate new SEO keywords with monthly search volumes using n8n and Google Ads API. This workflow saves hours by creating targeted keyword lists for SEO and Google Ads campaigns efficiently.
httpRequest
googleSheets
splitOut
+3
Workflow Identifier: 1333
NODES in Use: executeWorkflowTrigger, set, httpRequest, splitOut, googleSheets, set
Automate SEO keywords with n8n and Google Ads API

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow takes a list of starting keywords and finds new keyword ideas from Google Ads API.
It also gathers important info like monthly search numbers, how hard the competition is, and top bids for ads.
All results go into a Google Sheet so you can look and use them easy.
It saves a lot of time because no manual searching or copying needed.


Who Should Use This Workflow

This is good for people who need fresh keyword ideas fast.
Especially for beginners with many clients who want fresh SEO or ad keywords every week.
If you spend lots of time looking keywords one by one, this helps to get many at once.


Tools and Services Used

  • n8n platform: Runs the automation and connects nodes.
  • Google Ads API: Provides new keyword ideas and stats.
  • Google Sheets: Stores and shows keywords with details.
  • Google OAuth2 credentials: Securely access Google Ads and Sheets APIs.

Inputs, Processing, and Outputs

Inputs

  • An array of seed keywords placed in the starting trigger node.
  • Google Ads API credentials like developer-token, customer-id, and login-customer-id.
  • Google Sheets details: spreadsheet ID and sheet name to save results.

Processing

  • The trigger node grabs the keyword array and sends to the Set Keywords node.
  • The HTTP Request node calls the Google Ads API with those keywords.
  • The API responds with keyword ideas plus monthly searches, competition, and bids.
  • The Split Out node separates each keyword idea for easy handling.
  • The Edit Fields node extracts and changes names of key info, converts numbers for bids.
  • The Upsert node adds or updates rows in Google Sheets with keyword data.

Outputs

  • Google Sheet filled with new keyword ideas and their search and competition info.
  • Separated keyword items ready for other workflows or reports if linked onward.

Beginner Step-by-Step: How to Use This Workflow in n8n

1. Import the Workflow

  1. Download the provided workflow file using the Download button on this page.
  2. Open your n8n editor and click “Import from File.”
  3. Select the downloaded file to load the workflow into your workspace.

2. Add Credentials and IDs

  1. Find the Google Ads API credentials stored in n8n or add new ones with developer-token, customer-id, and login-customer-id.
  2. Check the HTTP Request node labeled Generate new keywords and update the URL replacing {customer-id} with your actual ID.
  3. In the Upsert Google Sheets node, enter your spreadsheet ID and sheet name.

3. Test the Workflow

  1. Run the workflow once manually or trigger it to see if new keywords come back and update the sheet.
  2. Check for any errors related to credentials, API call, or sheet access.

4. Activate for Production

  1. After successful tests, enable or activate the trigger node (like manual or webhook) so the workflow runs automatically when started.

If using self hosting n8n or running on a VPS, see self-host n8n for help with setup.


Customization Ideas

  • Change the country by editing geoTargetConstants in the API call body.
  • Set different languages by adjusting the language property in the HTTP request JSON.
  • Get more keyword ideas per run by increasing pageSize but watch API limits.
  • Use another data store instead of Google Sheets, like Airtable or a database node.
  • Replace the trigger node with a webhook to start the workflow from another app.

Edge Cases and Troubleshooting

  • 401 Unauthorized or Invalid Credentials: Check that developer-token, customer-id, and login-customer-id are correct and active in the Google Ads API credentials.
  • Empty Results from Keyword Ideas: Make input keywords broader or fix geoTarget and language constants for better coverage.
  • Google Sheets Not Updating: Confirm the sheet name and ID are correct and the Google Sheets credential has write permission.

Summary

✓ Automatically create keyword ideas with search volume and competition figures.
✓ Save data cleanly in Google Sheets without manual effort.
→ Helps quickly find new keywords based on input seeds.
→ Reduces manual work and errors in keyword research.
→ Sets up repeatable runs inside n8n with easy triggers.


Automate SEO keywords with n8n and Google Ads API

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

No, Google Ads API credentials are required to generate keyword ideas and obtain related metrics.
Yes, each API call consumes Google Ads API quota. Adjust frequency and results count to manage limits.
Yes, data stays within your Google Accounts, secured by OAuth and Google APIs.
Yes, modify the language constants in the HTTP Request node to change target languages.
Author
Written By
Ritu Sanjali

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.