How do you write a script that will alert you when keywords are wasting your money?
Better yet – how do you write lots of small scripts that will fix all that wasted ad spend?
Think irrelevant search terms, fraudulent clicks from terrible placements, Geo locations outside your targetted area…the list goes on, and on.
Tell me if you do not want to understand how to create a script like this (👇).
And this is just one example of the scripts we will create together.
You will also learn how to export data to Google Sheets and pause campaigns when they run out of budget.
SAMPLE SCRIPT FROM THE WORKSHOP:
/** * This script is part of the Google Ads Scripts for Beginners Workshop * Learn how to create and extend scripts like these, visit: * https://nilsrooijmans.com/google-ads-scripting-workshop-for-beginners/ * * This script sends out an email alert if any keyword in your account has had over X clicks and zero conversions. * @author: Nils Rooijmans * * For questions, a high performance MCC version, or you want to learn how to write scripts like these please contact nils@nilsrooijmans.com */ // the script ignores keywords that have less than MIN_CLICKS, enter a number that is greater than zero var MIN_CLICKS = 100; // enter the date range between the quotes, supported values: //TODAY, YESTERDAY, LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS, LAST_BUSINESS_WEEK, LAST_WEEK_SUN_SAT, LAST_WEEK_MON_SUN, THIS_WEEK_MON_TODAY, THIS_WEEK_SUN_TODAY, LAST_MONTH, THIS_MONTH, ALL_TIME var PERIOD = "LAST_30_DAYS"; // enter your email address between the quotes var EMAIL_ADDRESS = ""; function main() { var keywordsWithoutConversions = []; var keywordSelector = AdsApp .keywords() .withCondition("Clicks > "+MIN_CLICKS) .forDateRange(PERIOD); var keywordIterator = keywordSelector.get(); while (keywordIterator.hasNext()) { var keyword = keywordIterator.next(); if (keyword.getStatsFor(PERIOD).getConversions() == 0) { Logger.log("Keyword '"+keyword.getText() +"' has had over "+MIN_CLICKS+" clicks during "+PERIOD+" and zero conversions"); keywordsWithoutConversions.push(keyword.getText()); } } if (keywordsWithoutConversions.length > 0) { var accountID = AdsApp.currentAccount().getCustomerId(); var emailSubject = "[GAds Script - ALERT] Zero Conversion Keywords in Account "+accountID; var emailBody = "The following keywords have had over "+MIN_CLICKS+" clicks and zero conversions:\n"+keywordsWithoutConversions.join("\n").toString(); MailApp.sendEmail(EMAIL_ADDRESS, emailSubject, emailBody) } }
Note: This script comes late in the class – after you have learned Javascript basics and essentials and basic Google Ads Scripting concepts. And yes, you will also learn how to make the output more useful by adding some metrics and reporting it via Google Sheets.
PLUS: A FEW STUDENT TESTIMONIALS TO WHET YOUR APPETITE…
Ready to finally get access to this PPC Superpower?