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.

12 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