Sample my Google Ads Scripts for Beginners Workshop

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…

"This workshop helped me understand what is written in a script, decide which script I want to use and find errors during the setup of the script in my account."

Katrin von der Mülbe, Senior Performance Marketing Manager at MyHammer AG - Berlin, Germany

ᴎils rooijmans
2021-05-24T03:55:34+00:00

Katrin von der Mülbe, Senior Performance Marketing Manager at MyHammer AG - Berlin, Germany

"This workshop helped me understand what is written in a script, decide which script I want to use and find errors during the setup of the script in my account."
0
0
ᴎils rooijmans
"Nils got me started on the path of mastering scripts"

James Gibson, Senior PPC Traffic Manager at Redbrain - Lightwater, UK

ᴎils rooijmans
2021-06-01T12:25:55+00:00

James Gibson, Senior PPC Traffic Manager at Redbrain - Lightwater, UK

"Nils got me started on the path of mastering scripts"
0
0
ᴎils rooijmans
"The course you gave helped me to think creatively about how to work with scripts, confidently make adjustments or sometimes even completely rebuild them from scratch myself"

Karlijn Corbran, Team Lead - Paid Search at iProspect - Zurich, Switzerland

ᴎils rooijmans
2021-05-24T03:48:45+00:00

Karlijn Corbran, Team Lead - Paid Search at iProspect - Zurich, Switzerland

"The course you gave helped me to think creatively about how to work with scripts, confidently make adjustments or sometimes even completely rebuild them from scratch myself"
0
0
ᴎils rooijmans
"YES! I really am able to write a small script myself now!"

Franziska Jogwick, Senior Marketing Manager at Springer Nature - Berlin, Germany

ᴎils rooijmans
2021-05-24T04:04:54+00:00

Franziska Jogwick, Senior Marketing Manager at Springer Nature - Berlin, Germany

"YES! I really am able to write a small script myself now!"
0
0
ᴎils rooijmans
"Your training on Google Ads scripts has inspired me to actively get started with scripting myself. Thanks to your teachings and the resulting practice afterwards I am now quite proficient in Javascript and can automate almost anything I want."

Pascal van Dooren, Search Specialist at Greenhouse Group BV - Eindhoven, Netherlands

ᴎils rooijmans
2021-06-01T12:34:02+00:00

Pascal van Dooren, Search Specialist at Greenhouse Group BV - Eindhoven, Netherlands

"Your training on Google Ads scripts has inspired me to actively get started with scripting myself. Thanks to your teachings and the resulting practice afterwards I am now quite proficient in Javascript and can automate almost anything I want."
0
0
ᴎils rooijmans
"Nils helped me overcome the self-imposed hurdle of getting closer to Google Ads scripting. In the workshop, I benefited from his years of experience. He was able to provide many useful tips to avoid hours of troubleshooting scripts. The workshop was also a good mix of theoretical input and small tasks - learning by doing!"

Laura Nelle, Specialist Performance Marketing at Projecter GmbH - Leipzig, Germany

ᴎils rooijmans
2021-05-24T04:21:01+00:00

Laura Nelle, Specialist Performance Marketing at Projecter GmbH - Leipzig, Germany

"Nils helped me overcome the self-imposed hurdle of getting closer to Google Ads scripting. In the workshop, I benefited from his years of experience. He was able to provide many useful tips to avoid hours of troubleshooting scripts. The workshop was also a good mix of theoretical input and small tasks - learning by doing!"
0
0
ᴎils rooijmans
"Thanks to this workshop I am better at understanding scripts and adjusting simple things. Now I know why some scripts are not working and how to adjust things to fix them. Being able to apply javascript directly to Google Ads makes learning javascript so much more fun. I liked the exercises, it really makes you understand what has just been explained in theory."

Stéphanie Erné, Head of PPC at Vsee Search Marketing - Deventer, Netherlands

ᴎils rooijmans
2021-09-03T08:08:46+00:00

Stéphanie Erné, Head of PPC at Vsee Search Marketing - Deventer, Netherlands

"Thanks to this workshop I am better at understanding scripts and adjusting simple things. Now I know why some scripts are not working and how to adjust things to fix them. Being able to apply javascript directly to Google Ads makes learning javascript so much more fun. I liked the exercises, it really makes you understand what has just been explained in theory."
0
0
ᴎils rooijmans

Ready to finally get access to this PPC Superpower?

👉 Register now for my next Google Ads Scripts for Beginners Workshop!