View The AdWords Script That Alerts You When Your Account Is Down
January 13, 2016
According to the WSJ, recent studies in hospitals across the US have shown that caretakers have a hard time knowing when their intervention is needed to keep a person alive. This indecision is due to the fact that patients are hooked up to so many finicky monitors that there is a constant stream of alarms which they eventually tune out, ignore, or worse, don’t get because they turned off the monitoring equipment. In one particular study at a pediatric hospital in Philadelphia, they “found 99% of the alarms had no impact on the patient’s care, and the time it took nurses to respond rose in tandem with an increasing number of alarms in the previous two hours.” Interesting fact, but what’s the relevance on a blog about PPC you may ask.
Don’t Let Your PPC Patient Flatline
This scenario reminds me of search marketing where agencies and consultants are tasked with keeping many accounts healthy at the same time. To make sure no issues are missed, account managers resort to all sorts of tools and systems to alert them of potential problems. But this usually only creates a sea of noise and when that one critical alert is triggered, it gets ignored along with all the useless ones. It’s nowhere near as bad as letting a person die, but it certainly won’t look great on a resume when PPC accounts under your supervision flatline and no attempt was made to resolve the issue.
Getting The Right Level Of Alerts
So how do you get alerts that are meaningful and worth paying attention to? In Optmyzr, we provide both email alerts and in-app notifications on a dashboard because we believe that different account managers respond better to different methods of getting alerts. Having the flexibility to choose is part of one of the themes of PPC predictions for 2016. Experts say that custom automation will be big in 2016. Automation can send a constant stream of alerts (most probably useless) whereas custom automation can send alerts at the right time based upon factors account managers know about each of the accounts they oversee.
Alert When AdWords Billing Is Down
One particularly important alert to act on immediately is when the billing instrument for AdWords is declined. When this happens, and when there is no backup billing method on file, ads will stop serving immediately. Unfortunately, Google removed the alert for this situation from their API so our team went to work on creating a workaround. The script we wrote and which we are sharing here checks whether an account has served any impressions in the last couple of hours.
AdWords Script: Alert When Account Stops Serving
What we’ve done is written this automation for you. The script simply checks whether the account had any impressions during the last 6 hours. If there weren’t any, there may be an issue with the billing and it’s time to investigate, so an email gets sent. Had you written this code yourself, one of the issues to overcome would have been how to check stats for the last couple of hours when those hours spanned different days, weeks, months, or even years. By using our code, you’ll save a couple of hours by not having to figure out how to do this. That’s the beauty of using cookie-cutter automation that someone else has created.
If you run this automation exactly the way we’ve written it, it may still trigger useless and false alerts because we decided to check data for the last 6 hours and that may not work for an account that is turned off by dayparting for 12 hours every day. We also decided to check impressions but you may find it more useful to check if there were any clicks.
Tweak The Script And Achieve Custom Automation
This brings me to custom automation. I started talking about scripts at HeroConf 3 years ago and made the point that they are better than typical automation because you get access to the code. With a little bit of work, you can leverage the baseline built by someone else, add your own methodology, and make it into a custom automation that not only saves time but also produces stellar results.
The script can be easily updated with one or several email addresses (comma separated) of people who should be notified when an account stops accruing data. You can also set the number of hours to look back so that you can reduce the false positives that would occur during times when there is no expectation of any data accruing, like when the account is paused at night. Finally, you can check any metric in AdWords, including:
The script will then no longer be used primarily to check when there are issues with billing, but it could be used to check when there might be a condition impacting what users do when they see the ad or visit the landing page. You can tweak these settings in lines 19-21 of the provided code.
More advanced ways to alter the code could include looking at whether an alert has already been sent so that only 1 alert goes out for each account. That way if you intentionally ignore an alert, you won’t be bothered with another one about the same issue every hour. To do this, you could look back at some hours before the period you are checking and if there was no data then either, assume that the alert was already sent.
You could even alter the code to take into account dayparting settings so that you could look at metrics for a much shorter time frame, which would mean you’d get alerts more quickly when an issue first surfaces.
Or you could alter the code to do this type of analysis at the campaign level to find budget issues or at the ad group level to find when there might be issues with disapproved ads or keywords.
As always, we’re also putting this script into our Enhanced Scripts on Optmyzr so that you can easily run this methodology across many accounts under an MCC, copy settings between accounts, all without ever touching a single line of code.
I hope this code helps you prevent unpleasant situations where a client’s account has been offline and ignored. I’d love to hear ideas for new scripts to build so please reach out to me anytime.
Keynotes from Bing & Google + the Hero Conf Advanced Track
Where do you go to get the most relevant information in PPC, plus the opportunity to network with the best and brightest the industry has to offer? Why Hero Conf, of course.
3 Questions You Need To Answer Before Beginning Paid Advertising
So you’ve you decided you want to start PPC advertising, but now you are asking, “Where do I start?” We've listed and answered 3 questions you should be asking.
Road Trip - 5 Tips For Creating International Campaigns
International markets can add complexity to any account, but here are a few settings and opportunities to make your global ad strategy stand out in non-US markets.
A bi-weekly newsletter packed full of resources and strategies that will help make you a better PPC expert.
Hanapin Marketing | The PPC Agency of Experts Behind PPC Hero
Discover 3 Levels Of Geo Targeting For Beginners, Intermediates, & Experts
Setting geographic targets is day one. Whether it’s to exclude places you cannot sell or serve or to specifically target your primary customer base, the implementation of geo-targets is on the must-do list.
[New Webinar!] What You Need To Know About New AdWords Features
In this new live webinar, Hanapin Associate Director of Services Jeff Baum and Optmyzr’s CEO Frederick Vallaeys will walk you through the new AdWords tools and show how you can use them to optimize your accounts.
The Social Strategies You Need To Know For App Promotion
Create social strategies to promote app awareness and leverage geographic and demographic data reported by these platforms to refine audiences.
Guide the Industry and Take the 2016 State of PPC Survey!
Each year, Hanapin Marketing manages extensive research into the State of PPC Report, which provides a statistical breakdown of the digital ad industry and guides expectations.
What's In A Name? Building Powerful Product Titles For Ecommerce
Over the years, we've tested a variety of different product title alterations in hopes of finding the perfect title. Did we? Yes, and no. The fact of the matter is, it depends.
What Upgraded Bing URLs Mean For You
Bing is continuing its effort to catch up with Adwords. Upgraded URLs, which isolate tracking parameters from final URLs, are now available to Bing advertisers.
Where Does Your Hero Conf Dollar (or Pound) Go?
5 Common Excel Issues And How To Fix
Excel, while a fabulous tool for PPC, is not without its occasional hang-ups. In this post, we’ll go through some common problems, and how to fix them.
[New Whitepaper!] Guide to Google AdWords: Advanced Edition
In this whitepaper, you will gain a greater understanding of the distinction between e-commerce and lead generation PPC strategies, learn the effective use of Remarketing, how to utilize advanced segmentation for improved targeting, cross-device attribution, and how to use automated rules in your accounts.
Google Announces Controversial Updates To The Keyword Planner Tool
Google updated the AdWords Community on the state of the Keyword Planner tool and the response from several advertisers was quite dramatic.