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

Shopping query must-contain filter

Keeps Shopping on topic: any search that does not contain one of your required words is blocked.

FreeRuns weeklyWorks with Smart BiddingE-commerce, Beauty, Retail

What it does

  • Reads Shopping search terms for the campaigns you choose.
  • Finds terms that contain none of your required words or phrases.
  • Adds them as negatives in a shared list attached to those campaigns.
  • Emails what it blocked.

How it changes your account

It adds negatives to one shared list attached to your Shopping campaigns.

Smart Bidding

Works with any bid strategy. Shopping has no keywords, so a must-contain rule is a clean way to keep it to searches that match your range.

Settings explained

Shopping campaigns containing

Leave blank for every Shopping campaign.

Search terms must contain one of

One word or phrase per line. Terms with none of these are blocked.

Days of data

How many full days of data to look at, ending yesterday.

Only block terms with at least this many clicks
Negative list name

Negatives go into this shared negative keyword list, created if needed and attached to the selected campaigns.

Add negatives as

Exact blocks only that search. Phrase blocks any search containing it, which is stronger.

Alerts only (recommended for the first week)

While this is on, the script only logs and emails what it would change. Nothing in your account changes. Turn it off once you are happy with what it reports.

Email alerts to

Where alerts and summaries go. Separate several addresses with commas. Leave blank to log only.

Slack webhook URL (optional, stays in your browser)

Paste a Slack incoming webhook URL to get the same alerts in a channel. It is added to your copy of the script on your device and never sent to us.

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.

It starts with Alerts only on. Leave it on for a week, check the emails, then turn it off and copy the script again.

Questions

Does it work for Performance Max?

It is built for Standard Shopping campaigns. For Performance Max use campaign-level negatives or the PMax search term negator.

What if a good search lacks my words?

Add the word to the list. Terms already blocked can be removed from the shared list.

Will it change my account straight away?

No. Alerts only is on by default, so the first runs only report what would change. You turn it off when you are happy.

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.