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

  5. On line 8, try changing "AdWordsApp" to "AdsApp".

    Note this script returns all ads without an "Approved" status, not just "Disapproved" ads. So if you have ads with "Approved (limited)" or "Under review" status, they will also be deleted. If you want only Disapproved ads, on line 9 change "ApprovalStatus != APPROVED" to "ApprovalStatus = DISAPPROVED".

  6. مدارک مهاجرت، متون تخصصی، مقالات و... برای ترجمه شدن از زبان فارسی به زبان انگلیسی نیازمند تسلط بالا و تجربه بالای مترجم است تا از اصطلاحات و کلمات تخصصی مرتبط با آن متن استفاده کند. تیم ترجمه آنلاین با تشکیل تیمی از حرفه ای ترین و با سابقه ترین مترجمان کشور آماده است تا در ترجمه تخصصی فارسی به انگلیسی متون شما راه درکنارتان باشد و متون فارسی شما را با نازل ترین قیمت و بالاترین کیفیت به شما ارائه دهد.

  7. Nice post

  8. A web design and development company are continually occupied with delivering high-calibre digital products. Web designing and development are two indispensable pieces of the entire procedure of building a site. Regardless of being two totally various things, both go inseparably with one another.

  9. How I can find free essay topics for my college submission? It's very simple just visit for any type of essay writing help like discursive essay, persuasive essay topics and so on...

  10. Looking for Assignment Help? Then come at help you in your assignments. We provide quality assignments at very affordable prices.

    assignment help