Google Ads Script to pause out of stock products

Problem description

With a recent client, I discovered an interesting problem. The stock levels on specific products would change dramatically throughout the day. It could be in-stock for 15 minutes, out of stock for 4 minutes, then in stock again for 1 hour and out of stock for 4 hours.

My initial analysis showed that advertising these products when they were out of stock brought zero benefit to the advertiser. This means we needed to pause the ads during out-of-stock periods, but since the availability changed so frequently, there was no way a human could keep up with it.

I decided to create an automation to handle this.

For this particular client, I had to consider several challenges.

Requirements

  • The inventory would come back in stock at different levels throughout the day.
  • Products would go out of stock for varying periods – sometimes minutes, sometimes days.
  • There were multiple providers selling the same products, but I didn’t want to promote all of them.
  • It needed a reliable way to check current stock status as frequent as possible
  • It needs to work around Google Ads script runtime limitations.

The Solution

To make it simple, I built a Google Ads script that checks the current stock status of products and automatically enables or disables campaigns based on inventory levels at specific providers.

When all the conditions are met, I can advertise the product with a 500% ROAS, completely hands-free.

If this sounds like something you’d like to implement at your company, reach out and I can help solve this problem for you πŸ™‚

htaccess domain redirect, the proper way [2021 edition]

Normally, I write here about Conversion Rate Optimization, but recently, i had to do domain migration and all the guides on the first page of google were not helpful, so I think it’s the right thing to do and share some of the learnings from the process.

I spent three hours trying to figure out how to properly do a htaccess redirect from and old domain to a new one without loosing any pages. Some guides worked partially, some didn’t work at all.

Continue reading →

Writesonic Writes Own Review Using The AI-Powered Copywriting Tool

This might shock you, but the following article was written using Artificial Intelligence(AI). It was a challenge that I recently discussed with a friend and I wanted to put it to the test. Is AI ready to produce long-form content? Honestly, I can’t think a better topic to try this out than making this tool write self-review . Continue reading to learn when a robot will take your job.

Continue reading →

eCommerce UX Audit part 1: Improve Your Homepage (Download inside)

ecommerce UX Audit - Improve your homepage

Don’st judge an eCommerce by its cover. I mean homepage, and yes, you should judge it. It’s often the the most visited page of an eCommerce store, the welcome screen your new clients see for the first time, the passageway to conversions and profit. Most businesses don’t pay enough attention to their homepage but they should. In this article I will talk about 10-ish points that can make or break the user journey. Keep reading and you’ll learn how to improve them.

Continue reading →

Google Ads vs Google Analytics Conversion Tracking Explained

It’s just one of those days, we have all been there. You check your campaigns and see 50 conversions in Google Ads, but Google Analytics shows only 45. The plot thickens! In this article, I will play the detective and explain the differences between Google Ads and Google Analytics Conversion Tracking. By the end of this article you will understand the differences and have the knowledge to make informed decisions for future projects.

Continue reading →

Google Ads Weekly Optimization Routine (15-minute per week)

Google Ads Management is time-consuming and can take hours weekly, but you are in luck! In this guide, I will share the deepest darkest secrets of paid traffic agencies and their workflows. Let me present the Weekly Google Ads Management Routine with ready-to-use recipes and tips to use on your account. Just don’t share it with anyone πŸ˜‰ .

Continue reading →

A Simple Guide To Installing Hotjar On Your Website

What is hotjar?

Hotjar is a website heatmaps and behavior analytics tool. It helps you to see how visitors are using your website.

The main functions of Hotjar are 

  • user sessions recording, 
  • creating heatmaps 
  • creating clickmaps
  • feedback surveys

Each of these has a different objective and can work as separately as a single analysis tool but give best results when mixed and used together.

At the time of writing this article, Hotjar has notified that funnels and form tracking will be retired by 14 December 2020. This is a shame, since funnels those were crucial functions for power users. On the other hand there are some alternatives that we can use to get the same result.

Continue reading →