Invincible
  • 3
    Services
    • Paid Media
    • PPC (Google Ads)
    • Paid Social (Meta, TikTok)
    • Amazon Ads
    • Display & Native
    • Video Advertising
    • Video Content Creation
      for Paid Ads
    • Programmatic
    • EARNED MEDIA
    • SEO
    • Content Marketing
    • Organic Social
    • PR & Communications
    • Influencer Marketing
    • SYSTEMS & PLATFORMS
    • eCommerce (Shopify Plus)
    • CRM (HubSpot, Klaviyo)
    • Marketing Automation
    • Website Development
    • Data & Analytics
    • AI & INNOVATION

    Go With Pride AI

    Creative Catalyst Winner

    • AI Chatbots
    • Predictive Analytics
    • Marketing AI Integration
Work InsightsFree scripts About

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.

FreeRuns weeklyReport onlyHospitality, Fitness, E-commerce, Beauty

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

  1. In Google Ads, go to Tools, then Bulk actions, then Scripts.
  2. Click the plus button and name your script.
  3. Delete the sample code, paste yours and click Authorise.
  4. Click Preview and check the log. Nothing changes in Preview.
  5. 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. 1.0.0 27 Nov 2026 Improvement
    • First release in the Invincible Google Ads scripts library.

Browse all Google Ads scripts

Scripts are provided as is. You're responsible for previewing, testing and monitoring them in your account. Scripts Terms of Use.