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.

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

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

39 comments:

  1. I want you to have a look at this site https://persuasivepapers.com/ and propose some improvements.

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

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

    ReplyDelete
  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

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

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

    ReplyDelete
  7. Nice post
    https://virtual-staging.archicgi.com

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

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

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

    assignment help

    ReplyDelete
  11. Thank you for sharing this script. It would be very effective a for any digital marketing agency.

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. This script is nor beneficial for my work because I have to share all the details about my services.
    dissertation writing services

    ReplyDelete
  14. It is easy to use: apply drops of a roach poison along the skirting boards of the room - more here

    ReplyDelete
  15. Amazing script that you share. It will be valuable for my Web Design & Development Company in Pakistan Keep Sharing.

    ReplyDelete
  16. best wedding cards hina weddding cards hinaweddingcards.com

    ReplyDelete
  17. This comment has been removed by the author.

    ReplyDelete
  18. This is mind blowing guaranteed factors which you depicted here, it's so critical post and direct. thesis help

    ReplyDelete
  19. Blogging for Beginners learn Seo online free step by step https://bestseolearnersblog.blogspot.com/p/blogging-with-wordpress.html

    ReplyDelete
  20. To bring your HP printer setup, you have to give a tick at 123.hp/setup by opening an internet browser on your PC framework. The adequate and sans hands setup is there, you just need to pursue the rules as referenced on that page. When you reach to the base of the page, you will see your HP printer has been setup. Be cautious while downloading and introducing printer driver and programming as during this setting up process on the off chance that the system gets lost, your printer won't setup appropriately and might make a few issues during print work.

    ReplyDelete
  21. Business information systems research paper services have become very popular for students studying business & information technology coursework as they engage the best online Information Systems Writing Services.

    ReplyDelete
  22. There are many engineering assignment help writing services and Engineering Writing Services to choose from for those stuck with their engineering research paper writing services and engineering term paper writing services.

    ReplyDelete
  23. Thanks for sharing this information! So useful. I have also read an article on the same subject here, with some good points too
    https://cgifurniture.com/photorealistic-product-rendering-services-online-shopping/

    ReplyDelete
  24. hi i found a company which make the one page website in just $15
    seriously?

    ReplyDelete
  25. Thanks for very informative posting! I really enjoyed reading it today, you will be a great author.I humble request to continue your great posts, we really enjoyed your post.Global dezigns company providing Ecommerce website development in Karachi

    ReplyDelete
  26. It is important to seek hotel & hospitality research paper writing services and hotel & hospitality assignment writing services since students find help when they visit Hotel & Hospitality Writing Services.

    ReplyDelete
  27. A web design company in karachi 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.

    ReplyDelete
  28. thanks for the info and helpful script. I have applied it on my site cashspotusa.com. You can open it and look in the page code.

    ReplyDelete
  29. I recently came across a problem solving this task. So thank you for the information, it was very helpful.
    visit site here.

    ReplyDelete
  30. Custom psychology research writing services are very difficult to complete and many students are always searching for Developmental Psychology Writing Services to help them complete their psychology assignment writing services and developmental psychology essay writing services.

    ReplyDelete