Google Ads N-Gram Report: Find Waste with AI

A Google Ads n-gram report finds wasted word patterns search terms hide. Here is how to build and read one with an AI agent.

TL;DR

A Google Ads n-gram report splits every search term into its individual words and word pairs, then adds up the cost, clicks and conversions tied to each one, so a word that quietly drags down performance across dozens of different queries shows up as one line instead of staying hidden inside each query separately. Google Ads has no built-in n-gram report; it has to be built from the search terms data and then split apart, which is exactly the kind of mechanical breakdown an AI agent can do in one pass instead of a manual spreadsheet pivot.

A Google Ads n-gram report takes every search term your ads showed for, breaks it into its individual words (or short word pairs), and adds up the cost, clicks and conversions tied to each one across every query it appeared in. The point is to catch a pattern a search terms report hides: one word that shows up in twenty different queries, none of which individually looks alarming, but which together are burning real budget. Google Ads does not build this report for you. It has to be assembled from the raw search terms data, and that mechanical splitting and regrouping is exactly the kind of task an AI agent connected to the account can do in one pass instead of a manual spreadsheet pivot.

This post covers what an n-gram report actually shows, why the search terms report alone misses the pattern, the query behind building one, and how to read the output with an AI agent instead of pivot tables, plus where that reading has to stop and a human decision has to start.

What an n-gram report actually breaks down

Say your search terms report for the last 30 days has these three queries, each spending money with no conversions: "cheap dental implants chicago," "cheap teeth whitening kit," and "cheap root canal cost." Looked at individually, none of them is obviously the same problem. They're different services, different intents, nothing ties them together on the surface.

Split each one into single words and add up cost by word, and "cheap" shows up in all three, with their combined spend attached to it. That's the pattern an n-gram report exists to catch: not "this specific query is bad" but "this specific word, wherever it appears, correlates with spend that isn't converting." A word like that is a much stronger negative keyword candidate than any one of the three queries on its own, because blocking it protects you against every future variation of the same pattern, not just the three you happened to see this month.

Two-word n-grams work the same way but catch a narrower, more specific pattern. If "cheap dental" keeps showing up across several different follow-on words, cheap dental implants, cheap dental crowns, cheap dental x-ray, that two-word combination is the thing to negative, not the broader single word "cheap," which might be fine when paired with something else.

Why the search terms report alone misses this

The standard search terms report in Google Ads (Campaigns → Search terms, or via GAQL from search_term_view) lists every query with its own row of metrics. That's genuinely useful for finding one specific bad query, but it has a structural blind spot: it shows you queries, not words, so a wasteful pattern spread thin across dozens of low-volume, low-spend queries never rises to the top of a list sorted by cost. Each individual row looks small. Only when you regroup by the shared word does the combined cost become visible.

A single junk search term is easy to catch; a junk pattern spread thin is not, because the report format rewards concentrated waste and hides distributed waste. An n-gram report fixes that by changing the unit from "one query" to "one word, summed across every query that contains it."

Building the report: the query behind it

The data an n-gram report runs on is the same search terms data you'd pull for any other review, just regrouped afterward. A GAQL query against search_term_view for the window you care about gets you the raw rows:

SELECT
            search_term_view.search_term,
            metrics.cost_micros,
            metrics.clicks,
            metrics.conversions
          FROM search_term_view
          WHERE segments.date DURING LAST_30_DAYS
            AND campaign.status = 'ENABLED'

That query returns one row per search term, exactly what the Google Ads UI shows you. The n-gram part happens after the data comes back: split each search_term on whitespace, and for every word (or, on a second pass, every adjacent word pair) add that query's cost, clicks and conversions into a running total keyed by the word. Sort the result by cost descending and the words draining the most unconverted spend land at the top.

Nothing about this step touches the Google Ads API again; it's pure text processing on data already pulled, part of why it's a good fit for an AI agent rather than a script: the hard part isn't the Google Ads side, it's reliably splitting and summing the text, which a model does without you writing the aggregation logic.

A worked example of what the output looks like

Say the agent pulls 90 days of search terms for a home services account, splits every query into single words, and ranks by cost with zero conversions. A realistic slice of that output might look like this:

WordCostClicksConversionsQueries it appears in
cheap$41261014
free$29847111
diy$1872908
jobs$1552206
chicago$890140938

Four of those rows are easy calls: "cheap," "free," "diy" and "jobs" are classic intent mismatches for a service business selling installed work, and near-zero conversions across many distinct queries makes the case on its own. "Chicago" is the row to pause on: a location word spreads across both wasted and converting queries, and the nine conversions sitting on top of $890 in spend say it's doing real work, not just burning budget. Cost alone ranks "chicago" above "jobs," but cost next to conversions says which one to actually block.

Watch for these before you negative a word

A few patterns cause an n-gram report to point at the wrong word if you read it too quickly:

  • Brand and location terms. A city, neighborhood or your own brand name will often show up as a high-cost word simply because it appears in a large share of your traffic, not because it's a bad fit. Always check the conversion count sitting next to the cost, not the cost alone.
  • A word that's fine in one campaign and bad in another. "Repair" might fit an appliance repair campaign and be dead weight on a new installations campaign in the same account. Rerunning the report filtered to one campaign at a time catches this; an account-wide pass can hide it.
  • Low sample size. A word in only two queries with no conversions isn't a pattern yet, it's a coincidence. A reasonable floor is five or more distinct queries, or $50 to $100 in spend, before treating a word-level finding as real rather than noise.
  • Seasonal and launch timing. A word tied to a new product or promotion can look wasteful in its first week purely because conversions lag clicks. Check whether anything recently launched before negative-keywording a pattern that hasn't had time to convert yet.

Reading it with an AI agent instead of a spreadsheet pivot

The manual version of this is exporting the search terms report, opening it in a spreadsheet, writing a formula to split each query into words, and building a pivot table to sum cost by word. It works, but it's slow enough that most accounts only do it occasionally, if ever, which means the pattern sits there draining budget between reviews.

An AI agent connected to the account through MCP can run the same search_term_view query, do the word splitting and tallying itself, and hand back a ranked list in one turn, for example: "pull the last 30 days of search terms, split them into single words, and list the ten words with the most cost and zero conversions." You get the same output the spreadsheet pivot would produce, without building or maintaining the spreadsheet.

What makes this more useful than a flat word count is that a capable agent can go one step further than a script would by default: it can read the resulting list and flag which words look like genuine intent mismatches ("cheap," "free," "jobs") versus words that are probably fine on their own but happened to show up in a few bad queries by coincidence. That distinction is a judgment call, not a sum, and it's the part a fixed script or a plain pivot table can't make for you. The Google Ads AI Agent explainer covers how that read, explain, propose loop works end to end, and mining search terms for negative keywords covers the step right after this one once you've found a candidate word.

From pattern to negative keyword, the point of running this at all

An n-gram report alone fixes nothing, it tells you where to look. The next step is deciding what to do with the word that surfaces: add it as a negative keyword, and at what match type. A broad match or phrase match negative on a single word like "cheap" blocks every search containing that word across the whole campaign or account, which is powerful and also risky if that word occasionally appears in queries that do convert.

This is where it's worth checking the n-gram finding against the raw search terms it came from before blocking anything: pull up the actual queries that contributed most of that word's cost, confirm none of them are secretly converting, and only then stage the negative. An AI agent doing the first pass can hand you both pieces in the same turn: the aggregated word-level number and the underlying queries it's made of, so you're not negative-keywording on a sum alone.

Worth connecting here: if the n-gram report keeps surfacing the same handful of words every month, that's usually a sign the account needs a shared negative keyword list applied across every campaign rather than a one-off negative added to whichever campaign happened to trigger the review.

What AI can tell you, and what still needs a person

An AI agent running this analysis is doing real work: pulling the data, doing the word splitting correctly, and ranking the output by cost, something that would otherwise need a script or a recurring manual export. What it should not do is decide on its own that a word is safe to block everywhere and apply that change. The honest line is the same one that runs through every AI-assisted change to a live account: the agent finds and explains the pattern, and stages the exact negative keyword it's proposing with the words it would match and the type, but a person approves it before it touches the account. Google Ads Automation: Rules, Scripts, or an AI Agent goes into why that approval step matters more than how smart the analysis underneath it is.

One-word versus two-word patterns, in practice

Single words catch the broadest pattern; a two-word pass is a useful follow-up once a word has already flagged something. A 2-gram pass on "cheap" from the example above might show "cheap dental" at $210 and "cheap teeth" at $90, revealing which specific service lines are attracting the mismatched intent. That matters for the fix: a pairing tied to one service line fits a phrase match negative at the ad group level, while a word spread across every service line fits an account-level negative better.

Three-word and longer groupings technically work the same way but rarely pay off. By the time you're grouping on three specific words in a row, you've usually narrowed back down to something close to a single search term, which defeats the point of grouping at all. Stick to one-word passes as the default and two-word passes as the targeted follow-up on whatever the one-word pass already surfaced.

Running this on a recurring basis instead of once

Accounts that get real value from n-gram analysis run it on a cadence, monthly for most, weekly for accounts spending enough that a new wasteful pattern can rack up real cost in a few days. The mechanical part, pulling search terms and regrouping by word, doesn't get more interesting the tenth time, which is why it tends to lapse when it's a manual spreadsheet task nobody wants to rebuild every month.

Asking an AI agent to run the same prompt on a schedule keeps the review cheap enough that it actually happens. The output shifts month to month too, as seasonality and new campaigns bring in new queries, so last month's clean word list is no guarantee for this month. Treating it as a recurring five-minute check rather than a project is what catches a pattern in its first month instead of its sixth.

Getting started

If you haven't connected an AI client to the account yet, the Google Ads MCP setup guide for Claude or the ChatGPT guide covers the few minutes of setup it takes. Once it's connected, the n-gram report is just a prompt, not a project: ask for the last 30 or 90 days of search terms split into single words and ranked by wasted cost, and you'll see the pattern a plain search terms list was hiding the whole time.

Frequently asked questions

What is an n-gram in a Google Ads search terms report?

An n-gram is a word or a short sequence of words pulled out of a search term. A 1-gram is a single word, a 2-gram is two words in a row, and so on. Breaking every search term into its n-grams and summing the cost and conversions attached to each one surfaces a word that is quietly wasting spend across many different queries, something you would not see looking at any single search term on its own.

Does Google Ads have a built-in n-gram report?

No. Google Ads shows you the search terms report, which lists each full query with its own metrics, but it does not split those queries into words and regroup them for you. An n-gram report is something you build from the search terms data, either with a script, a spreadsheet pivot, or an AI agent that does the splitting and tallying for you.

How many words should an n-gram report group by?

Start with single words (1-grams), since that catches the most common pattern: one word that shows up across many underperforming queries. Two-word phrases (2-grams) are useful as a second pass once you have found a problem word and want to see which specific pairings it appears in, but grouping by three or more words usually splits the data too thin to be useful.

Can an AI agent add negative keywords automatically after finding a bad n-gram?

It can draft the negative keyword and the exact match type for you to review, but it should not add it unattended. An n-gram report tells you a word correlates with wasted spend; it does not tell you whether blocking that word everywhere is safe, since the same word might also appear in a handful of queries that convert well. A person needs to make that call before anything is staged for real.

Your next fix, already drafted.

Free for 7 days. Cancel anytime before day 8.