Skip to main content

Generating new keywords and their search volumes using the Google Ads API

Workflow preview

Workflow preview
100%
Generating new keywords and their search volumes using the Google Ads API preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Generate new keywords for SEO with the monthly Search volumes This workflow is an improvement on the workflows below. It can be used to generate new keywords that you can use for your SEO campaigns...

Best for

  • Market Research automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.splitout, n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-base.set, n8n-nodes-base.googlesheets, n8n-nodes-base.executeworkflowtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Zacharia Kimotho.

Original n8n.io source

1.1 Workflow description

Title
Generating new keywords and their search volumes using the Google Ads API
Workflow name
Generating new keywords and their search volumes using the Google Ads API

Generate new keywords for SEO with the monthly Search volumes

This workflow is an improvement on the workflows below. It can be used to generate new keywords that you can use for your SEO campaigns or Google ads campaigns

Generate SEO Keyword Search Volume Data using Google API and Generating Keywords using Google Autosuggest

Usage

  1. Send the keywords you need as an array to this workflow
  2. Pin the data and map it to the set Keywords node
  3. Map the keywords to the Google ads API with the location and Language of your choice
  4. Split the results and set them data
  5. Pass this to the next nodes as needed for storage
  6. Make a copy of this spreedsheet and update the data accordingly

Having challenges with the google Ads API? Read this blog

Setup

  1. Replace the trigger with your desired trigger eg a webhook or manual trigger

  2. Map the data correctly to the set Keywords node

  3. On the Generate new keywords, Update the {customer_id} on the url and login-customer-id with your actual one. Update the developer-token` also with your values.

The url should be corrected as below https://googleads.googleapis.com/v18/customers/{customer-id}:generateKeywordIdeas

You should send the headers as below



            {
              "name": "content-type",
              "value": "application/json"
            },
            {
              "name": "developer-token",
              "value": "5j-tyzivCNmiCcoW-xkaxw"
            },
            {
              "name": "login-customer-id",
              "value": "513554 "
            }
         
    

and the json body should take the following format


{
  "geoTargetConstants": ["geoTargetConstants/2840"], 
  "includeAdultKeywords": false,
  "pageToken": "",
  "pageSize": 2,
  "keywordPlanNetwork": "GOOGLE_SEARCH",
  "language": "languageConstants/1000", 
  "keywordSeed": {
    "keywords": {{ $json.Keyword }}
  }
}

Troubleshooting

  1. If you get an error with the workflow, check the credentials you are using

  2. Check the account you are using eg the right customer id and developer token

  3. Follow the guide on the blog to set up your Google ads account

Made by @Imperol

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Generate new keywords

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - Set Keywords

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Upsert

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 7 - Trigger

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1

Block 8 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generating new keywords and their search volumes using the Google Ads API
Complexity intermediate
Nodes 11
Categories Market Research
Author Zacharia Kimotho
Published 03 Jan 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2695/2695.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generating new keywords and their search volumes using the Google Ads API do?

Generate new keywords for SEO with the monthly Search volumes This workflow is an improvement on the workflows below. It can be used to generate new keywords that you can use for your SEO campaigns...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research use case.