Wednesday, December 5, 2012

Automating Maintenance Tasks with AdWords Scripting Part 3

In our final installment of automating the monthly maintenance tasks found in AdWords for Dummies with AdWords scripting, let's end with the end of the month clean up of your account.

Declutter your account by shedding keywords that don't have any conversions.


Similar to the previous post, you will need to have set up conversion tracking for all of this to work.  We can actually use a variation of the previous script to accomplish this.  Really we are doing the same thing just increasing bids instead of decreasing them.

//-----------------------------------
// Pause Keywords That Are Not Performing
// Created By: Russ Savage
// FreeAdWordsScripts.com
//-----------------------------------
function main() {
  var THE_VALUE_OF_ONE_CONVERSION = 10;
  var DECREASE_BIDS_BY_PERCENTAGE = .5;
  
  var kw_iter = AdWordsApp.keywords()
    .withCondition("Status = ENABLED")
    .get();
  
  while(kw_iter.hasNext()) {
    var kw = kw_iter.next();
    var kw_stats = kw.getStatsFor("LAST_30_DAYS");
    var cost = kw_stats.getCost();
    var conversions = kw_stats.getConversions();
    if(conversions == 0) {
      if(THE_VALUE_OF_ONE_CONVERSION * 5 > cost) {
        kw.pause();
      }
      else if(THE_VALUE_OF_ONE_CONVERSION * 2 > cost) {
        kw.setMaxCpc(kw.getMaxCpc() * (1-DECREASE_BIDS_BY_PERCENTAGE)); 
      }
    }else{
      //no conversions on this keyword
      //we will deal with that later
      continue;
    }
  }
}

Thanks,
Russ

20 comments:

  1. Replies
    1. toast, cook, broil & bake a variety of other foods. Browse our wide selection of best toaster ovens from top brands. The best toaster oven for Your Kitchen. The Best Toaster Oven Buying Guide With Reviews 2021.Best Air Fryer Toaster Ovens Consumer Reports Reviewed. Enjoy! #1. Breville BOV900BSS Smart Oven

      Delete
    2. Best Overall Knife Set: Mercer Culinary Genesis 6-piece Forged Knife Block Set. Best Budget-Friendly Knife Set. the best kitchen-knife sets on best kitchen knife sets, according to reviews, including the best German-made knives, the best self sharpening knives.

      Delete
  2. Looking for the best writing service online but lost in the number of fake reviews and don’t know who to believe? We at ScamFighter publish only genuine reviews on all writing service from the web. Look at the last review on https://scamfighter.net/review/boomessays.com

    ReplyDelete
  3. ترجمه متون و مقالات رشته پزشکی به علت تخصصی بودن اصطلاحات آن فرایندی سخت و نیازمند توانایی بسیار بالا درامر ترجمه است و مترجمان متون عمومی نمیتوانند متون پزشکی را به خوبی ترجمه کنند. وب سایت ترجمه آنلاین با کادری حرفه ای از مترجمان باسابقه کشور آماده است تا شما را در مسیر ترجمه تخصصی پزشکی مقالات شما یاری نماید.

    ReplyDelete
  4. Recently a friend of mine showed me this site https://bestwritingservice.com/essays/Literature/the-death-of-freedom.html. He uses it when he needs help with learning. I use it when I can't write an article by myself. I can order anything there on any topic.

    ReplyDelete
  5. The advantages incorporate offers and limits. paracord watch supplier These days, most online retailers offer incredible limits to their normal clients.

    ReplyDelete
  6. This is very good post i have read i must appreciate to you to written this for us
    3g 4g wifi routers

    ReplyDelete
  7. The life forms as human are multicellular. The cell is some self - contained and self-keeping up in supplements. The supplements into energy complete particular capacity.
    molecular sieve supplier

    ReplyDelete
  8. My friend showed me this site https://essays-writers.com/. It is very useful for my studies. I can buy there an essay or article on any topic.

    ReplyDelete
  9. At the point when you first call your back up plan to utilize your breakdown cover, a professional will endeavor to fix your vehicle where it is.IOT hardware devices

    ReplyDelete
  10. Do not have time to do all the written work? I offer you a way out of this situation. https://primedissertations.com/capstone-help/ help in all areas of writing!

    ReplyDelete
  11. I learned absolutely everything about my question when I read this post, thanks to the author for the detailed description. I wrote my review on the essay services reviews , you can go in and read. Thank you very much for your attention and your time.

    ReplyDelete
  12. This is a very informative blog that has related to "Automating Maintenance Tasks With AdWords Scripting" and around one week I was searching Script Writing related to Automating Maintenance and I found this content very useful for me.

    ReplyDelete
  13. How to get money off Cash App without card on a PDA starting late? Will keep up for help.

    Cash App makes your trade especially direct from your removed. In like way, to perceive get money off Cash app without card you need to ensure that you didn't endeavor to use any pre-stacked card there. Further, you need to move into the Cash out tab from the Cash App concordance to move the all out without a card.

    ReplyDelete
  14. Canon printer in error state due to ghosting inconvenience? Arrive at help group for help.

    Ghosting issue can raise a great deal of ruckus and that may likewise prompt Canon printer in error state circumstance. Along these lines, to manage such a circumstance you can utilize the assistance of client care by dialing the assist group with numbering and looking for help. You can likewise get help by watching tech recordings on Youtube and utilizing the stunts introduced there.

    ReplyDelete
  15. How does the hp printer support team help to fix not printing issue?

    On the off chance that you get that your hp printer not printing, at that point you ought to guarantee that gadgets associated with one another appropriately, and the organization or link you use to interface these gadgets are ordinary. Alongside this, attempt to restart your gadget and furthermore invigorate the page for a snappy arrangement. Furthermore, on the off chance that you actually confronting the equivalent, at that point arrive at Hp printer support

    ReplyDelete
  16. On 25 March 2001, Arlo Logue had been born in the U.S. Yet her name was changed into Jade Logue after a certain time. She is born Finn Logue, an older brother who has grown up in his parents ‘ lovely house. Donal Logue is the father’s name, and Kasey’s mother leads the way. Jade Logue

    ReplyDelete
  17. Financial institutions are a big necessity in society, especially when they are locally owned and have great benefits. Their focus is to provide benefits and better life-quality to the citizens of the city or state. Financial institutions have a surprisingly long history, with some dating back to the 1960s and beyond. There are many examples of some incredible financial institutions like mission federal and more mission federal

    ReplyDelete