Google Ads Scripts

Tags: ngrams, search queries, search terms, negative keywords

Turn your search terms into nGrams

This script will create 1, 2, 3, and 4 word nGrams from search terms.

For Pro users, those nGrams can then be added as negative keywords to a Negative Keyword List.

What's an nGram?

Let's say we have two search terms:

  • google ads api development
  • bing ads api development

The 1 word nGrams will be:

  • google
  • bing
  • ads
  • api
  • development

The 2 word nGrams will be:

  • google ads
  • ads api
  • api development
  • bing ads

Importantly, metrics will also be combined so provide a total clicks, etc. per nGram

Use this script to run a report or as an alerts system e.g. send an email if an nGram gets over 100 clicks without a conversion.

Read less


Search Query N-Grams

Lifetime access + updates


Instant Access

The script and template sheet will be available to download once payment is confirmed.


Buy for Life

Purchases are for the original, editable source code and include lifetime updates. By purchasing, you agree not to resell or distribute the script.


Any-reason-refunds for 30 days

Purchases are refundableable for any reason within 30 days of purchase.

Install the script

The script will be available here after purchase

We're available for hire

Looking for a new script or an upgrade to an existing script? Perhaps a Google Ads API solution or your very own web app?

With a decade of experience and a library of templates, we deliver professional solutions fast.

Prices are quoted on a per-project basis.

Learn more about our services or get in touch for a quote.

You Might Also Be Interested In

Members only

Auto Negative Keywords (Positive Keywords Script)

This hugely popular script will automatically add negative keywords based on “positive keywords” you define. Ad Group Level.

Members only

Rule Based Bid Updater / Pauser (Keywords & Products)

Setup rules to update keyword and product bids based on cost, conversions, ROAS, CPA, and more. This script also includes pause functionality.

Members only

Auto Negative Keywords (Positive Keyword Script) Manager Level

Automatically add negative keywords based on “positive keywords” you define. Manager (MCC) version.