Pause Meta Ad Sets Automatically When a Shopify Product Sells Out
The fastest way to burn ad budget is paying for clicks to a sold-out product. This workflow watches Shopify inventory and, the moment a product hits zero, pauses the exact Meta ad sets promoting it — then re-enables them when stock returns.
- 1
Watch inventory every 15 minutes
Add a
Schedule Triggerand aShopifynode to pull products with their variant inventory levels. - 2
Find newly out-of-stock SKUs
A
Codenode compares current stock to a threshold and outputs only products that just crossed zero, with their mapped Meta ad-set id from a lookup table. - 3
Pause the matching ad sets
An
HTTP Requestnode calls the Meta Marketing API to setstatus: PAUSEDon each affected ad set — you stop paying instantly. - 4
Notify the team
A
Slacknode posts which products sold out and which ad sets were paused, so nobody re-launches them by accident. - 5
Auto-resume on restock
Extend the same flow to flip ad sets back to
ACTIVEwhen inventory returns above the threshold.
Frequently asked questions
How does it know which ad set promotes which product?
You keep a simple SKU to ad-set-id map (a small Google Sheet or a constant in the Code node). The workflow looks up the id when a product sells out. Ten minutes of setup that pays for itself the first time a bestseller runs dry.
Will it fight my ad manager's automated rules?
No — it only pauses on true zero-stock and resumes on restock. Keep your bid and budget rules as they are; this just prevents spend when the product literally cannot be bought.