Wednesday, January 31, 2018

Working with Experiment Campaigns in AdWords Scripts

If you've started using Google's Draft and Experiment campaigns, you may have noticed some odd behavior with scripts. We were getting these campaigns back in our selectors, even if they were no longer active experiments. And if we tried to change their status to 'ended', we couldn't do so.

I'll explain the similarities and differences so that hopefully you can avoid some of the frustration I faced when we started using experiments in AdWords and some scripts started to break.

Experiment campaigns are like other campaigns in the following ways:

  1. Experiment campaigns are returned in API reports like CAMPAIGN_PERFORMANCE_REPORT
  2. Experiment campaigns are returned by AW Scripts selectors like campaignSelector = AdWordsApp.campaigns()
Experiment campaigns are unlike normal campaigns in some important ways:
  1. Experiment campaigns, once enabled are always enabled. If you end the experiment, the ServingStatus becomes 'ENDED' but the CampaignStatus remains 'ENABLED'
  2. Experiment campaigns cannot have labels
  3. Experiment campaigns cannot have their status or budget changed (as these are tied to the corresponding 'base' campaign)
As you can see, there are situations where some of these oddities can lead to issues. For example, if you have a script that pauses any campaigns that have exceeded a certain budget for the month (like those that Optmyzr provides), the script will recognize that an experiment campaign has spent too much but it will be unable to label it or pause it.

So I wanted to exclude experiment campaigns from my selectors and found this was possible and documented. You can exclude campaigns of different types by adding the following to a selector:
  • withCondition("CampaignExperimentType = BASE")
  • withCondition("CampaignExperimentType = DRAFT")
  • withCondition("CampaignExperimentType = EXPERIMENT")

But there is also an undocumented feature in AdWords Scripts that can help filter these campaigns:
  • withCondition("ServingStatus = SERVING")
The other possible condition values are ENDED, PENDING, NONE, SUSPENDED

The cool trick I learned here is that you can use conditions that are not documented in the AdWords Scripts reference. You just refer to the fields in the corresponding API report and try adding them to selectors.

Thanks to Alex from the Google team for pointing this out.


  1. It's really a nice and helpful piece of info. I am glad that you just shared this helpful
    information with us. Please keep us up to date like this.
    Best website designing company in Laxmi Nagar

  2. I am very grateful you did share your knowledge here. It is an exuberant post.

    P/S: Pls feel free to visit my place, if you care about sunglass spot free shipping

  3. I admire this article for the well-researched content and excellent wording
    seo company in chennai

  4. Do you know how to write a simple medical assistant resume? Here is a quality step by step guide

  5. Buy a discounted IWC watch from this Time and get free shipping. Large selection in stock. replica watches UKIWC watches, is an iconic brand. The IWC Portuguese, replica IWC watches sale a collection that includes the IWC Portuguese automatic and IWC Yacht Club chronograph is legendary. IWC Schaffhausen is also known for the IWC Aquatimer, Top Gun, Big Pilot watch, Mark XVII, Pilot's Watch, Spitfire chronograph and their Big Pilot Watch, the St-Exupery.

  6. This comment has been removed by the author.

  7. Another great resource for ad scripts is

    Reach out to Captive Nest if you have any questions about AdWords Scripts or complex API's.

  8. Thank for this blog are more informative step by step and useful contents. I here by attached my site would you see this blog.

    7 tips to start a career in digital marketing

    “Digital marketing is the marketing of product or service using digital technologies, mainly on the Internet, but also including mobile phones, display advertising, and any other digital medium”. This is the definition that you would get when you search for the term “Digital marketing” in google. Let’s give out a simpler explanation by saying, “the form of marketing, using the internet and technologies like phones, computer etc”.

    we have offered to the advanced syllabus course digital marketing for available join now

    more details click the link now

  9. Amazing blog useful information.

    Web designing trends in 2020

    When we look into the trends, everything which is ruling today’s world was once a start up and slowly begun getting into. But Now they have literally transformed our lives on a tremendous note. To name a few, Facebook, Whats App, Twitter can be a promising proof for such a transformation and have a true impact on the digital world.

    we have offered to the advanced syllabus course web design and development for available join now

    more details click the link

  10. Bolavita - Situs Taruhan Bola | Live Casino | Sabung Ayam Online | Slot Games |Togel Online Aman Dan Terpercaya

    Minimal Depo & WD Hanya IDR 25.000,- *

    Melayani Deposit Pulsa Telkomsel | XL | Gopay | OVO |LinkAja | DANA Serta Semua Bank Indonesia

    Kontak :
    • Livechat :
    • Telegram :
    • WA Bolavita :
    • Wechat : Bolavita
    • Line : cs_bolavita

  11. I've am Adwords professional and recently I have some network issues unable to use Adwords editor. Can I know whats the issue? If its the problem with my network can I use vpn.
    Can I know more about what is the best free vpn for mac?

  12. Nice article! I find this article very informative and it is also well-structured. I am bookmarking your blog, could come handy in future.
    Pay someone to do homework
    best essay writing help online
    Write My Assignment

  13. The post is written in very a good manner and it contains many useful information for me. buy 50 instagram likes australia

  14. Nice blog. Find the best coupons here on our website
    promo Code

  15. decent post, stay aware of this fascinating work. It truly regards realize that this subject is being secured additionally on this site so cheers for setting aside time to examine this!

    SEO Services Toronto

  16. Connect HP Deskjet 3050 to WiFi availability should be possible in minutes with our help. Call us today to think about Wi-Fi necessities, establishment and setup directions. Follow the straightforward Wi-Fi arrangement steps to finish the guidance.

  17. That is very interesting; you are a very skilled blogger. I have shared your website in my social networks! A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article.
    Best CRM System

  18. Nice article! I find this article very informative

  19. Very interesting blog, thanks for sharing such type of information about Aeromexico Reservations, you can simply click on this link and read more information about Aeromexico.

  20. Your this webpage is on legitimate steroids in UK so you are mentioned to visit the site for purchasing just authentic steroids in United Kingdom. I will be glad to see you out there this decent post here.
    iot courses in delhi

  21. I figure it could be more broad in the event that you get a football sports movement
    360DigiTMG data analytics course

  22. If you are a college student struggling with your grades, this message is for you. Get access to more than 700 textbook solutions manuals online with a single login. Students are welcome to experience smart learning with ScholarOn online educational assistance.

  23. Different occasions, bosses require the specialist to perform errands contraindicated by unequivocal clinical restrictions. Website Scraper and Email Extractor

  24. Advanced showcasing is the publicizing and advancement of organizations and their brands through computerized media channels. Computerized media, right now, incorporates sites, web-based media, radio, Send Mass Emails with CBT Bulk Email Sender Desktop Software

  25. Reliable religion & theology coursework writing services are not hard to come across for those in need of Religious Research Writing Services and theology & religion essay writing services.

  26. I never work on Ad-words scripts so I have not much idea about it I hope this may be the best for us.
    Best dissertation help UK

  27. I like to ask the applicant to list what they consider to be the "top 5 mistakes made with Google AdWords". If they can't think of 5 mistakes (and there are a lot more) it's likely that they will make some of the mistakes they haven't listed on your account. adwords specialist

  28. Great info, really helped as iv been trying to write my AdWord script for my campaign like a pro but have been very difficult and the script students can easily get the uk coursework writers are ready to help us in or Adword script.

  29. Bass Clef Notes: The modern staff is made up of five lines and four spaces, each of which is reserved for a specific pitch. At the beginning of each staff. bass clef

  30. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. Great work
    business analytics course

  31. Thanks for sharing the info we have run the campaigns for best children's hospitals in hyderabad it is running successfully thanks for sharing the info

  32. Hello this site is very good and responsive,for hosting for the purpose of getting informative stuff.thank you.

  33. Hello this site is very good and responsive,for hosting for the purpose of getting informative stuff.thank you.

  34. SAS BookingThe information you provide in this blog is very informative & I am glad to find such a great blog.

  35. Choosing a good website M928bet You can be sure that it is a reliable site, protected in the event that you lose and
    have a chance to win easily. Than other websites

  36. 100% Successful Instalation Guide for 123.hp/setup. Fix Driver unavailable Errors. Install Latest Drivers from Instant Software Setup.

  37. Open Demat Account Online for Free with Indira Securities in just 15 mins
    Online trading investing app