Thursday, November 22, 2012

Delete All Disapproved Ads in an Account

Again, another simple script that just focuses on account maintenance. Over time, large accounts might build up thousands of adgroups with ads that might be disapproved. Sometimes, it makes sense to remove those and then slowly build and deploy new creative (we will have a script to build new creative later). Hopefully this will work for you.

// Delete Ads That Are Disapproved
// Created By: Russ Savage
function main() {
  // Let's start by getting all of the ad that are disapproved
  var ad_iter =
  .withCondition("ApprovalStatus != APPROVED")

  // Then we will go through each one
  while (ad_iter.hasNext()) {
    var ad =;
    // now we delete the ad
    Logger.log("Deleteing ad: " + ad.getHeadline());


  1. I want you to have a look at this site and propose some improvements.

  2. I am also trying to use an add account for promoting my ecommerce web development services. Thanks to share this add account problem with us there to be aware of it.

  3. Can you update this script?
    Not working anymore.

  4. Thanks for your marvelous posting! I really enjoyed reading it, you will be a great author.I will be sure to bookmark your blog and will come back someday. I want to encourage one to continue your great posts.
    ecommerce web development sydney