Monday, December 3, 2012

Automating Maintenance Tasks with AdWords Scripting Part 2

Let's continue with automating the maintenance tasks found in AdWords for Dummies with AdWords scripting. Let's continue with the maintenance that is run on the 15th of the month.


Reward keywords that are bringing in cheap traffic.


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.

//-----------------------------------
// Increase Bids Cheap Conversion Keywords
// Created By: Russ Savage
// FreeAdWordsScripts.com
//-----------------------------------
function main() {
  //For keywords with less than $5 CPC, let's pump those bids up by 35%
  var AMAZING_COST_PER_CONV = 5;
  var AMAZING_BID_INCREASE_AMOUNT = .35;
  
  //For keywords with between $5 and $8 CPCs, we will only increase the bids by 20%
  var GREAT_COST_PER_CONV = 8;
  var GREAT_BID_INCREASE_AMOUNT = .20;
  
  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) {
      var cost_per_conversion = (cost/(conversions*1.0));
      
      if(cost_per_conversion <= AMAZING_COST_PER_CONV) {
        kw.setMaxCpc(kw.getMaxCpc() * (1+AMAZING_BID_INCREASE_AMOUNT)); 
      }
      else if(cost_per_conversion <= GREAT_COST_PER_CONV) {
        kw.setMaxCpc(kw.getMaxCpc() * (1+GREAT_BID_INCREASE_AMOUNT));
      }
    }else{
      //no conversions on this keyword
      //we will deal with that later
      continue;
    }
  }
}
Stay tuned for the next and final installment where we de-clutter our accounts by deleting the keywords with no conversions.

Thanks,
Russ

23 comments:

  1. Replies
    1. best buys for tablets page too. And once you're ready to shop, get a great deal at our ... the latest Android best buy tablet , or even considering a Windows tablet, we've tested them all and found the

      Delete
    2. Specialty coffee shops, for the longest time, were hesitant in using batch brewers or drip best drip coffee maker. The reason was that the drip brewers didn't produce ... To get a great tasting brew, you should be shooting for a coffee to water ratio of roughly 1:15. Most auto-drip machines aren't made to accommodate this at full ...

      Delete
    3. True Wireless Earbuds. Noise-cancelling true wireless headphones that made our dreams. wireless earbuds for 2021: Apple AirPods, Bose QuietComfort Earbuds and more. True wireless earbuds are all the rage. Truly Wireless Earbuds | Wireless Bluetooth In-Ear

      Delete
    4. Buy Routers In Pakistan At Best Price Online With Daraz.pk. ... Xiaomi Mi 4c Router 300mbps Wifi Router 5dbi 2.4ghz 802.11a/B/G With Four. The best wifi router for 2020 - YouTube. Choose and buy a wireless wifi router for any budget with this guide. See the best wifi routers of 2021

      Delete
  2. Your blog is filled with unique good articles! I was impressed how well you express your thoughts.
    CamScanner For Mac

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

    ReplyDelete
  4. new collection of 2020 the best jewelry, various kind of necklace for women, and all of them have discounts with unbelievable percent, best prices ever, check it out

    ReplyDelete
  5. هر نوع بازاریابی نیاز به یک وب سایت بی نظیر و بی رقیب همچون سایت دیجی کالا دارد،وب سایت شما منعکس کننده کیفیت کار شما و نوع خدمات شما است. با مشاوره در شرکت شیراز سان می توانید وب سایتی متناسب با نیاز ها و معیار های خود با نازل ترین قیمت و بالا ترین کیفیت همچون طراحی فروشگاه اینترنتی دیجی کالا تحویل بگیرید.

    ReplyDelete
  6. I have read so many content on the topic of the blogger lovers however this piece of writing is actually a nice paragraph, keep it up.

    whizzherald
    talesbuzz
    Free Movie Streaming Websites
    appvalley vip
    firstrowsports alternative

    ReplyDelete
  7. I was checking steadily this online journal and I'm awed! significant data phenomenally the last part I deal with such data a great deal. I am lively to discover this post phenomenally obliging for me, as it contains part of... You have a customary point here! I have bookmarked it and I am imagining looking at new articles.

    Get Tech Expert
    Daily Business Guide
    Best Bussiness Circle
    It Business mind
    Top Online General
    Pure Home Improvement
    The General Info

    ReplyDelete
  8. You will find there are various enemy of viral pyridine supplier and skin for the infection that the person in question could exhort. One notable mouth blister solution for help make the herpes.

    ReplyDelete
  9. Thanks to the author for writing the post, it was quite necessary for me and liked it. I wrote a note on the https://ukbestessays.org/ about this. I will be happy if you read it and accept it. Thank you for your concern.

    ReplyDelete
  10. Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.

    Adding Exponents
    fiu canvas
    interval notation
    Area of a Hexagon

    ReplyDelete
  11. I was checking steadily this online journal and I'm awed! significant data phenomenally the last part I deal with such data a great deal. I am lively to discover this post phenomenally obliging for me, as it contains part of... You have a customary point here! I have bookmarked it and I am imagining looking at new articles. silk dupatta collection , two piece suit for ladies in pakistan

    ReplyDelete
  12. Quickbooks payroll is the most important feature that will help out to resolve the issue between HR and accounts department and sometimes the login error arises which can be resolved easily with the
    error code 15240 quickbooks

    ReplyDelete
  13. I was looking for some information about AdWords as I am trying to learn about it. I am glad I am here – this post looks quite detailed and informative. I have to look for a Cheap Essay Writing Service for my language essay. Once I am done with that, I will read this whole thing again.

    ReplyDelete
  14. you don't have a clue, you should realize that the condenser unit is associated with the electrical switch which gives the voltage to control up the forced. chilled water fan coil unit

    ReplyDelete
  15. Superapid is one of the leading CNC machining service providers in China. We offer milling services and have the best capabilities in current technology and manufacturing that can achieve good results with precision machining.

    ReplyDelete