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
function main() {
  //For keywords with less than $5 CPC, let's pump those bids up by 35%
  //For keywords with between $5 and $8 CPCs, we will only increase the bids by 20%
  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) {
      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));
      //no conversions on this keyword
      //we will deal with that later
Stay tuned for the next and final installment where we de-clutter our accounts by deleting the keywords with no conversions.



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

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

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

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

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

    Free Movie Streaming Websites
    appvalley vip
    firstrowsports alternative

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

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