Search term theme clustering
Turns hundreds of search terms into a dozen clear themes with spend and results, ready for building ad groups or explaining performance.
What it does
- Takes your top search terms by impressions, from Search and optionally Performance Max.
- Asks Claude to group them into themes by intent and name each theme.
- Totals clicks, cost, conversions and CPA per theme in code (Claude never touches the numbers).
- Writes themes and their terms to a Google Sheet and emails the summary.
How it changes your account
It does not change your account. It reads search terms and writes a report.
Smart Bidding
Works with any bid strategy. Themes are ideal input for ad group structure, Performance Max search themes and negative lists.
Settings explained
- Days of data
How many full days of data to look at, ending yesterday.
- Search terms to cluster
Top terms by impressions.
- Roughly how many themes
- Include Performance Max search terms
Also checks Performance Max terms. Negative lists can be attached to Performance Max campaigns.
- Anthropic API key (stays in your browser)
Create a key in the Anthropic Console. It is added to your copy of the script on your device and never sent to us. API usage is billed to your Anthropic account.
- Claude model
Sonnet is the best balance of quality and cost. Haiku is faster and cheaper; Opus is the most capable.
- Email alerts to
Weekly themes email. Leave blank to use the Sheet only.
- Google Sheet name
The script keeps its working data in a Google Sheet with this exact name in your Drive, and creates it on the first run.
Install in two minutes
- In Google Ads, go to Tools, then Bulk actions, then Scripts.
- Click the plus button and name your script.
- Delete the sample code, paste yours and click Authorise.
- Click Preview and check the log. Nothing changes in Preview.
- Click Save and set it to run weekly.
In Google Ads, go to Tools > Bulk actions > Scripts, add a new script, paste the code and click Authorise. Then click Preview and read the log before anything runs for real.
Schedule it Weekly.
Questions
What does the AI part cost?
The script is free. Anthropic bills API usage to your own account, typically pennies to a few pounds a month for one account.
Is my data sent to Invincible?
No. The script sends only the text it needs straight from Google Ads to Anthropic, using your key. Nothing passes through us.
Does Claude calculate the figures?
No. Claude only names and groups the terms; every figure is added up by the script from Google Ads data.
Changelog
- 1.0.0 27 Nov 2026 Improvement
- First release in the Invincible Google Ads scripts library.
Scripts are provided as is. You're responsible for previewing, testing and monitoring them in your account. Scripts Terms of Use.