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
function main() {
  var kw_iter = AdWordsApp.keywords()
    .withCondition("Status = ENABLED")
  while(kw_iter.hasNext()) {
    var kw =;
    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) {
      else if(THE_VALUE_OF_ONE_CONVERSION * 2 > cost) {
        kw.setMaxCpc(kw.getMaxCpc() * (1-DECREASE_BIDS_BY_PERCENTAGE)); 
      //no conversions on this keyword
      //we will deal with that later



  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

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

  3. Recently a friend of mine showed me this site 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.

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

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

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

  7. My friend showed me this site It is very useful for my studies. I can buy there an essay or article on any topic.

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