Past Violations Alerts
Finds ads disapproved for the dreaded 'Past Violations' policy topic — a status that can escalate to account suspension — and alerts you by email with a Google Sheet report.
by Nils Rooijmans·nilsrooijmans.com/google-ads-script-past-violations-alert
Overview
'Past Violations' disapprovals are a red flag: they indicate Google has linked your account to earlier policy trouble, and unresolved ones can precede account suspension. This script queries ad policy findings via GAQL, writes every ad disapproved for past violations to a Google Sheet (campaign, ad group, ad id, type, status, policy findings) and emails you the moment any appear.
Setup
- 1Create a new blank Google Sheet and copy its URL.
- 2Open your Google Ads account and go to Tools → Bulk Actions → Scripts.
- 3Click the + button to create a new script and paste the code below.
- 4Set SPREADSHEET_URL and EMAIL, preview, then schedule daily.
Configuration Variables
| Variable | Default |
|---|---|
SPREADSHEET_URL | (required) |
EMAIL | (required) |
Expected Output
Sheet rows per disapproved ad: Campaign Name, AdGroup Name, AdID, Ad Type, Ad Status, Policy Findings — and an email alert when any ad is disapproved for 'Past Violations'.
Notes
If alerts appear, act fast: fix or remove the ads and consider an appeal before the problem compounds. An MCC version is available from the author.