TwoSquaresTwoSquares
КонтактПоискайте одит
ENBG
  1. Home
  2. Scripts
  3. Delete Disapproved Ads
Обратно към scripts

Delete Disapproved Ads

Finds ads with non-approved policy status and removes them, with a dry-run mode enabled by default for safer review first.

adspolicycleanupqa

Script детайли

Име
Delete Disapproved Ads
Автор
Kiril Ivanov
Обновен
2026-03-19

Script code

Use this when you want a controlled cleanup workflow for disapproved ads rather than handling each one manually in the interface.

Preview is public. Unlock full code with name and email.

/**
 * ==========================================================
 * Delete Disapproved Ads
 * ==========================================================
 * Description: Removes ads with non-approved policy status.
 * Defaults to dry-run mode for safer review first.
 *
 * Copyright (c) 2026 TwoSquares. All Rights Reserved.
 * Developed by Kiril Ivanov
 */
function main() {
  var DRY_RUN = true;
  var REQUIRED_LABEL = "";
  // ... preview shortened
}

За този script

Delete Disapproved Ads is a cleanup script for accounts where outdated or broken ads have accumulated and a manual policy cleanup is too slow. It checks enabled and paused ads, identifies ads whose policy status is not approved, and can remove them in bulk.

This version is intentionally safer than a one-click destructive script. It defaults to dry-run mode, logs exactly what would be removed, and lets you scope execution with an optional label so the cleanup can be staged.

The script uses the current Google Ads Scripts ad interface rather than outdated report-only approaches. That keeps it simpler and more reliable for actioning policy-status cleanup directly.

Implementation notes

  1. Run the script with DRY_RUN set to true first and review the logs carefully.
  2. Optionally set REQUIRED_LABEL if you only want to process ads tagged for cleanup.
  3. If the output looks correct, switch DRY_RUN to false and run again.
  4. Schedule only after you are comfortable with the scope and the policy statuses in your account.
  5. Keep a label-based workflow if you want to avoid broad account-wide removals.

Още scripts в библиотеката

Предишен script

Day-of-Week Waste Finder

Следващ script

Device Waste Watchlist

Disapproved Ad Alert

Monitors enabled ads for policy issues and can email a daily alert with disapproved/limited ads before delivery is impacted.

Disapproved Ad Checker

Exports disapproved ads with campaign and ad group context so you can review policy issues quickly without hunting through the interface.

Enabled Ad Count By Ad Group

Counts enabled ads per ad group and exports the result into a Google Sheet so thin ad groups are easy to spot.

Final URL UTM Consistency Audit

Audits enabled ad/keyword final URLs for missing UTM parameters and inconsistent tagging patterns.

Delete Disapproved Ads FAQs

Чести setup, usage и troubleshooting въпроси за този script.

Наложете се на пазара си. Задайте темпото на растежа.

Нека изградим реален и измерим растеж заедно.

Поискайте одит
TwoSquares

Маркетинг агенция за SEO, Google Ads, платени социални мрежи, AI видимост и уебсайтове.

ENBG

Попитайте AI за TwoSquares

ChatGPT
Perplexity
Grok
Claude
Gemini

Услуги

  • SEO
  • Google Ads и PPC
  • Платени социални мрежи
  • AI видимост и GEO
  • Уебсайтове
  • Имейл маркетинг
  • CRO
  • Стратегия
  • Консултации
  • Персонализирани решения

Решения

  • AI search система за растеж
  • Генериране на търсене
  • Сайт на абонамент

Одити

  • Маркетинг одит
  • SEO одит
  • PPC одит
  • Одит на сайта
  • GEO одит
Featured on Best in Britain

Компания

  • За нас
  • Нашите брандове
  • Услуги
  • Инструменти
  • Темплейти
  • Блог
  • Казуси
  • Кариери
  • Контакт

Ресурси

  • Всички ресурси
  • AI Readiness Toolkit
  • Глосарий
  • Инструменти

Индустрии

  • Хотели и курорти
  • Имоти и краткосрочни наеми
  • Ресторанти и барове
  • E-commerce и DTC

Контакт

[email protected]
SSL защита
GDPR съвместимост

© 2026 TwoSquares Limited (SC877356). Всички права запазени.

Политика за поверителностУсловия за ползванеПолитика за бисквиткиКарта на сайта

TWOSQUARES