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

6 comments:

  1. 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
  2. ترجمه متون و مقالات رشته پزشکی به علت تخصصی بودن اصطلاحات آن فرایندی سخت و نیازمند توانایی بسیار بالا درامر ترجمه است و مترجمان متون عمومی نمیتوانند متون پزشکی را به خوبی ترجمه کنند. وب سایت ترجمه آنلاین با کادری حرفه ای از مترجمان باسابقه کشور آماده است تا شما را در مسیر ترجمه تخصصی پزشکی مقالات شما یاری نماید.

    ReplyDelete
  3. 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
  4. The advantages incorporate offers and limits. paracord watch supplier These days, most online retailers offer incredible limits to their normal clients.

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

    ReplyDelete