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

Stock-level bidder

Labels every product by stock level in a supplemental feed, so you can stop pushing items about to sell out and give overstocked lines more room.

FreeRuns dailyWorks with Smart BiddingE-commerce, Beauty, Retail

What it does

  • Reads Merchant Center availability for your products through Google Ads, and units in stock from your Sheet if you add one.
  • Labels each product stock_out, stock_low, stock_over or stock_ok in the custom label you choose.
  • Writes the labels to a Google Sheet that Merchant Center picks up as a supplemental feed.
  • Emails the products that changed state, with their recent clicks.

How it changes your account

It does not change your Google Ads account. It writes a supplemental feed Sheet; Merchant Center applies the labels when it next fetches the Sheet.

Smart Bidding

Works with Smart Bidding. Split Shopping or Performance Max by the stock label and give overstock a lower ROAS target and low stock a higher one, so bidding follows what you can actually sell.

Settings explained

Stock Google Sheet URL (optional)

A Sheet with product ID in column A and units in stock in column B, for example a Shopify inventory export. Without it, only Merchant Center availability is used (in stock or out of stock).

Low stock below (units)

Products with fewer units are labelled stock_low.

Overstocked above (units)

Products with more units are labelled stock_over.

Custom label to write

Pick a custom label your feed does not already use.

Email alerts to

Daily summary of products changing state. Leave blank to use the Sheet only.

Google Sheet name

The script writes a supplemental feed to this Sheet. Add it once in Merchant Center as a supplemental data source from Google Sheets.

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 daily.

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 Daily.

Questions

Why does it use a Sheet instead of changing the feed directly?

Google Ads scripts cannot write to Merchant Center. A Google Sheet added once as a supplemental data source is the reliable route; Merchant Center refreshes it daily.

Does it work with the Content API?

It does not need it. The Content API for Shopping was switched off in August 2026; product data here comes from Google Ads.

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.