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.

82 comments:

  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

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

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

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

    ReplyDelete
  4. Do you know how to write a simple medical assistant resume? Here is a quality step by step guide https://resumecvwriter.com/blog/medical-assistant-resume

    ReplyDelete
  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.

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Another great resource for ad scripts is https://www.optmyzr.com/



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

    ReplyDelete
  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

    https://www.webdschool.com/digital-marketing-course-in-chennai.html

    ReplyDelete
  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

    https://www.webdschool.com/web-development-course-in-chennai.html

    ReplyDelete
  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 : http://159.89.197.59/
    • Telegram : https://t.me/bolavita
    • WA Bolavita : https://wa.me/+628122222995/
    • Wechat : Bolavita
    • Line : cs_bolavita

    ReplyDelete
  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?

    ReplyDelete
  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

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

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

    ReplyDelete
  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

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

    ReplyDelete
  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

    ReplyDelete
  18. Nice article! I find this article very informative

    ReplyDelete
  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.

    ReplyDelete
  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

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

    ReplyDelete
  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.

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

    ReplyDelete
  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

    ReplyDelete
  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.

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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.

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  32. Hello this site is very good and responsive,for hosting for the purpose of getting informative stuff.thank you.
    www.Webroot.com/safe
    Webroot.com/safe
    webroot/safe

    ReplyDelete
  33. Hello this site is very good and responsive,for hosting for the purpose of getting informative stuff.thank you.
    www.Webroot.com/safe
    Webroot.com/safe
    webroot/safe

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

    ReplyDelete
  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

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

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

    ReplyDelete
  38. This comment has been removed by the author.

    ReplyDelete
  39. Top ranking students prefer to use learning aids than directly approach a textbook with just lecture notes and remembered info from the class. Online Test Banks can be of great help to you while pondering over a class that you attended months ago. Make the best of your college with study aids like Human Anatomy And Physiology 10th Edition Test Bank only at TestBanksOnline.

    ReplyDelete
  40. 123.hp.com setup of HP printers. We offer assets delivered by 2019, for example, drivers, programming and the 123.hp.com/introduce Printer setup manual.

    ReplyDelete
  41. very interesting post.this is my first time visit here.i found so mmany interesting stuff in your blog especially its discussion..thanks for the post! testbankgo

    ReplyDelete
  42. Indira securities believes in giving a cutting edge technology to its clients. In the same Endeavour we have tied up with Tradetron.

    ReplyDelete
  43. The custom boxes are as extraordinary as they are unique and work wonders for businesses Packaging boxes is aiming at creating boxes from extremely biodegradable material. custom packaging usa They're taking small stores to local domination, to national level brands to multi-national organization.

    ReplyDelete
  44. Jeval Perfume is the Topmost Perfumes Manufacturer For Men and women under Rs 300 to Rs 500 in India. With a long Lasting Fragrance.
    Best perfumes Manufacturer For Men under 300 in India - Jeval Perfumes

    ReplyDelete
  45. Pretty good post. I have just stumbled upon your blog and enjoyed reading your blog posts very much. I am looking for new posts to get more precious info. Big thanks for the useful info. talvinsingh.com

    ReplyDelete
  46. Good Will Health Care: We are Providing the Best Attendant & Critical Care Services at Home in Gurgaon Delhi. It how we normally provide hospice care - in homes , long-term care facilities.
    Best Attendant & Critical Care Services at Home in Gurgaon Delhi

    ReplyDelete
  47. Find unbiased dog food reviews and ratings by All Real Reviews.
    Pet Food Rating & Reviews

    ReplyDelete
  48. A complete instructions and solutions for 123 HP Deskjet 3632 wireless setup printer Network, Wi-Fi Protected Setup and Wired Connection setup.

    ReplyDelete
  49. Concord Advance provides fast, reliable and cost-efficient commission advance services to real estate agents and brokers. Best Services. Quickest Turnaround.
    Commission Advance

    ReplyDelete
  50. OAK Digital is a full service marketing agency located in New York. OAK specializes in SEM, affiliate, SEO, & Social media influencer campaigns.
    Affiliate Marketing Firms

    ReplyDelete
  51. Ag tiles is the trend of our time; flat, sleek, dark and maintenance-friendly. MBI has combined this combination into one series of garden tiles. The cover layer of the Ag tiles consists of very fine colorfast minerals. Over this is a Factor30 coating that prevents the penetration of dirt and moisture. Green deposits and lime efflorescence are therefore reduced to a minimum.Milano tiles is suitable for both terrace and driveway. We do not recommend using tiles that are larger than 60x60 for the driveway. The risk of breakage is quite high due to the point load.
    AG Tiles - Paving & Milano tiles manufacturer in Delhi India

    ReplyDelete
  52. Find unbiased reviews of the most popular air hockey table brands.
    Best Air Hockey Tables Reviews

    ReplyDelete
  53. The best nespresso machines are reviewed here to help you get the perfect pressure to extract the perfect flavor from every single cup you brew.
    Best Nespresso Coffee Machine Reviews

    ReplyDelete
  54. KDS enterprises are the Top Interiors decorator for Gypsum, False Ceiling, and Plaster of Paris Contractor & Dealer in Bibvewadi Pune our contractor must work every working day.
    KDS Enterprises - Best POP & False Ceiling Contractor in Bibvewadi, Pune

    ReplyDelete
  55. Thanks for the suggestion of Find best Stock broker company in India.
    Find best Stock broker company in Indore, India.

    ReplyDelete
  56. Thanks for your nice post I really like it and appreciate it. My work is about Quality Packaging Solution. If you need perfect quality boxes then you can visit our website.

    ReplyDelete
  57. Your Post is very informative. If you are looking for the best Handmade Soap Boxes then Check out our Exculsive range of Custom Soap Boxes at wholesale Price with free home Delivery. We are serving thousands of businesses in the UK, Canada and USA.

    ReplyDelete
  58. Your article is very useful for us. If you are looking for the Cheap Bespoke Boxes Manufacturer then Check out our Exculsive range of bespoke Boxes at wholesale Price.

    ReplyDelete
  59. 'If I was being truthful, I'd have to say I wrote the book so as not to end up like one of the guys in it,' says Kelman, laughing. 'I felt I had to understand what I had to avoid. I've just gotten engaged, but I do feel that the propensity to be utterly cynical and do whatever it takes to succeed is inside every man to one degree or another. It has something to do with the male drive to success, and the things people do to themselves, as well as others, in order to succeed. Though everyone picks up on the sex stuff, the book is not really about sex at all; it's about power.
    Complete Interview: A talk with Nic Kelman about his book 'Girls'

    ReplyDelete
  60. Infinite Greens has been providing landscaping and landscaping services for 10+ years, during this period we have gained invaluable experience, assembled a talented team, and found many solutions of natural beauty for your garden, cottage, site.

    We work and cooperate with leading firms and nurseries in India.

    Our studio carries out all types of landscape work from design to implementation. Our portfolio includes many completed projects from private plots and summer cottages to city parks, in which the landscape design is vividly implemented, photos of which you can see on this website and on our Instagram.

    Infinite Greens

    ReplyDelete
  61. Acquire simple Canon Printer Not Printing Color Correctly the issues like Canon printer will not print, not reacting, printing clear pages and will not print remotely.

    ReplyDelete
  62. Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon! forensic cleaning fife

    ReplyDelete