• 18-19 College Green, Dublin 2
  • 01 685 9088
  • info@cunninghamwebsolutions.com
  • cunninghamwebsolutions
    Cunningham Web Solutions
    • Home
    • About Us
    • Our Services
      • Web Design
      • Digital Marketing
      • SEO Services
      • E-commerce Websites
      • Website Redevelopment
      • Social Media Services
    • Digital Marketing
      • Adwords
      • Social Media Services
      • Email Marketing
      • Display Advertising
      • Remarketing
    • Portfolio
    • FAQ’s
    • Blog
    • Contact Us
    MENU CLOSE back  

    How to split test in AdWords more effectively using Adwords Scripts

    You are here:
    1. Home
    2. Digital Marketing
    3. How to split test in AdWords more effectively using Adwords Scripts
    Thumbnail for 14186
    labels in google scripts

    Google AdWords scripts are an incredibly powerful tool for managing Google AdWords campaigns and automating laborious tasks.

    AdWords scripts were voted the 3rd most useful Adwords optimization tool by a panel of 41 seasoned AdWords experts.

    One of those tasks is A/B testing, where it can be incredibly difficult to keep track of when all of your tests have finished in large-scale Adwords accounts. However, split testing is essential for increasing your CTR, Quality Score and conversion rates.

    In this article, I’m going to be explaining how you can use AdWords scripts to monitor and report the progress of your A/B tests, so you won’t have to trawl through your data to see when your tests have finished.

    I’m also going to be showing you how you can use scripts that aggregate data, so you can reach statistically significant decisions on ads faster, where individually there would not be enough data. Furthermore, I’ll explain how to avoid “Simpson’s paradox” that can skew your results when you’re aggregating data.

    Adwords scripts for monitoring your tests

    If you have thousands of adverts within your account it can be very difficult to keep track of the progress of your tests. This is an area that scripts can come in very useful.

    Russel Savage has created this free script that monitors all of your split tests, to see when they have hit statistical significance, and then emails you when the test is done, so that you can take action.

    The script keeps track of when you make changes and knows when a new test has started, without you having to keep track. It also applies labels to adverts so that you can see within your account, what stage your tests are at.

    Here is an example of the labels that the scripts apply to adverts. If the test has finished it will apply the labels “loser 95% confidence” to the advert that has lost, and labels the best performing ad “current champion”.

    To use this script there are three steps that you need to follow. Firstly copy and paste the script into Adwords. If your unsure on how to do this follow these instructions here (LINK _WWWL).

    The second step is to tell the script which email address that you want the emails to be sent to, to tell you that your tests have finished.

    On line 20 of the script replace “user@email.com=” with the email address that you want the emails sent to, telling you when your test has finished too.

    The third step is to choose a confidence level on line 21, by default it is set to 95% which means that when you make a decision, you will be correct 19 out of 20 times. If you wish you can increase this to 99% so you will be correct 99 out of 100 times but this will require more data.

    The fourth step is to choose what you would like to compare. At the moment the script is set to CTR, so the winner will be the advert with the highest CTR.

    However you may want to test for different metrics depending on what your are trying to achieve. For example if you want to reduce the cost per conversion in an account, you may want to change the metric to cost per conversion, or if your trying to increase the conversion rate, you might want to set it to compare conversion rates.

    To do this you need to make two very simple changes to the codes on line 33 and 34.

    To compare cost per conversions use the following:

    var VISITORS_METRIC = ‘Conversions’;

    var CONVERSIONS_METRIC = ‘Cost’;

    To compare conversion rate use the following:

    var VISITORS_METRIC = ‘Clicks’;

    var CONVERSIONS_METRIC = ‘Conversions’;

    Finally if you want to include links to the campaigns and ad groups that you are testing in the email, you need to fill out lines 60 and 61 of the script.

    To do this log into Adwords and copy the URL of the page, it should look something like this.

    https://adwords.google.com/cm/CampaignMgmt?authuser=0&__u=6598756484&__c=9807638908#r.ONLINE&app=cm

    U and C are 10 didgit codes that are unique to each account. What you need to do is copy these into lines 60 ad 61 of the script, so it should look something like this.

    var __c = ‘9807638908’;

    var __u = ‘6598756484’;

    Once you have done this you should be set and ready to go.

    Aggregating data using Adwords scripts to test faster

    When split testing adverts in ad groups that only have a small search volume it can be difficult to get enough data to make statistically significant decisions.

    You must, however, be careful when aggregating data to avoid “Simpsons Paradox”

    Simpson’s paradox is “a paradox in which a trend that appears in different groups of data disappears when these groups are combined, and the reverse trend appears for the aggregate data.”

    Example:

    Ad group 1 data

    Ad group 2 data

    ad group data

    Aggregate data aggregate data

    Advert 1 is the best performing ad group in both ad group 1 and ad group 2, however when the data is aggregated, it appears that advert 2 was the best performing, giving an incorrect result.

    There are, however, two simple measure that you can take to ensure that you don’t fall into Simpsons paradox.

    You need to ensure that your ads are served evenly, so both ads will have a similar number of impressions. To do this use the “rotate ads indefinitely” which can be found in your campaign settings.

    google adwords rotate indefinitely

    If your ads are distributed evenly across ad groups, and your ad groups are closely themed, there’s no risk of falling into the Simpson’s Paradox trap.

    My favorite scripts for aggregating data for split testing come from Fredrick Valaeys from optmyzr. The script produces a report of the various elements of your text ads.

    The script aggregates data from all of the commonly used headlines, display URL’s and description lines within your account.

    ad template performance

    This script is ideal for aggregating data from similar ads across an entire account so you can make statistically significant decisions faster. Its also fantastic for finding the best performing text elements so you can theoretical create the perfect Adwords ads.

    The only downside to this script is that its not freely available and is only purchasable through a subscription to Optmyzr.

    Conclusion

    As I hope you can see, AdWords Scripts are an incredibly useful tool for making A/B testing easier on large scale PPC Accounts, or where you have a large number of ad groups with very few impressions.

    With the growing number of pre written Adwords scripts available, they are no longer just for experienced coders, any Adwords user can use them. So if there is anything you take from today, it should be that you should start utilizing scripts to make tasks such as split testing more efficient and less laborious.

    From our sponsors: How to split test in AdWords more effectively using Adwords Scripts

    Posted on 4th April 2016Digital Marketing
    FacebookshareTwittertweetGoogle+share

    Related posts

    Thumbnail for 25786
    The Future of CX with Larry Ellison
    19th October 2020
    20201019 ML Brief
    19th October 2020
    20201016 ML Brief
    19th October 2020
    Must-know tips for boosting your video strategy
    19th October 2020
    NewsCred rebrands as Welcome
    13th October 2020
    Thumbnail for 25769
    How to make your data sing
    13th October 2020
    Latest News
    • Archived
      22nd March 2023
    • Archived
      18th March 2023
    • Archived
      20th January 2023
    • 20201019 ML Brief
      19th October 2020
    • Thumbnail for 25788
      Handling Continuous Integration And Delivery With GitHub Actions
      19th October 2020
    • Thumbnail for 25786
      The Future of CX with Larry Ellison
      19th October 2020
    News Categories
    • Digital Marketing
    • Web Design

    Our services

    Website Design
    Website Design

    A website is an important part of any business. Professional website development is an essential element of a successful online business.

    We provide website design services for every type of website imaginable. We supply brochure websites, E-commerce websites, bespoke website design, custom website development and a range of website applications. We love developing websites, come and talk to us about your project and we will tailor make a solution to match your requirements.

    You can contact us by phone, email or send us a request through our online form and we can give you a call back.

    More Information

    Digital Marketing
    Digital Marketing

    Our digital marketeers have years of experience in developing and excuting digital marketing strategies. We can help you promote your business online with the most effective methods to achieve the greatest return for your marketing budget. We offer a full service with includes the following:

    1. Social Media Marketing

    2. Email & Newsletter Advertising

    3. PPC - Pay Per Click

    4. A range of other methods are available

    More Information

    SEO
    SEO Services

    SEO is an essential part of owning an online property. The higher up the search engines that your website appears, the more visitors you will have and therefore the greater the potential for more business and increased profits.

    We offer a range of SEO services and packages. Our packages are very popular due to the expanse of on-page and off-page SEO services that they cover. Contact us to discuss your website and the SEO services that would best suit to increase your websites ranking.

    More Information

    E-commerce
    E-commerce Websites

    E-commerce is a rapidly growing area with sales online increasing year on year. A professional E-commerce store online is essential to increase sales and is a reflection of your business to potential customers. We provide professional E-commerce websites custom built to meet our clients requirements.

    Starting to sell online can be a daunting task and we are here to make that journey as smooth as possible. When you work with Cunningham Web Solutions on your E-commerce website, you will benefit from the experience of our team and every detail from the website design to stock management is carefully planned and designed with you in mind.

    More Information

    Social Media Services
    Social Media Services

    Social Media is becoming an increasingly effective method of marketing online. The opportunities that social media marketing can offer are endless and when managed correctly can bring great benefits to every business.

    Social Media Marketing is a low cost form of advertising that continues to bring a very good ROI for our clients. In conjuction with excellent website development and SEO, social media marketing should be an essential part of every digital marketing strategy.

    We offer Social Media Management packages and we also offer Social Media Training to individuals and to companies. Contact us to find out more.

    More Information

    Cunningham Web Solutions
    © Copyright 2025 | Cunningham Web Solutions
    • Home
    • Our Services
    • FAQ's
    • Account Services
    • Privacy Policy
    • Contact Us