Generating New Keywords and their Search Volumes using the Google Ads API

Go to Workflow
11,627 views
Built by Zacharia Kimotho Zacharia Kimotho
Created on June 05, 2026

Description

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
Send the keywords you need as an array to this workflow
Pin the data and map it to the set Keywords node
Map the keywords to the Google ads API with the location and Language of your choice
Split the results and set them data
Pass this to the next nodes as needed for storage
Make a copy of this spreedsheet and update the data accordingly

Having challenges with the google Ads API? Read this blog

Setup

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

Map the data correctly to the set Keywords node
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

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

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

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


Made by @Imperol

Nodes Used (2)

Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest