Ad accounts report their own problems

Learn about rejected ads, used-up spend limits and failed payments right away, not when the campaign has already been down for half a day.

10–30 minfrom a problem to a reaction instead of several hours
7 accountschecked every 30 minutes with no manual rounds
1 eveningfrom the idea to a working bot in Slack

Context

I run ads for several projects and have about a dozen Meta ad accounts open at once. Some are topped up through resellers with a spend limit, and each has dozens of ads running.

What got in the way

Ads stop quietly. An ad is rejected, the reseller limit runs out, a payment fails, and all Meta sends is an email or a Business Suite notification, but among the notifications for every account it’s easy to miss. These problems usually surfaced during a routine account check or in a report, that is, hours later. All that time the campaign wasn’t running, or was running the wrong ads.

What I did

  • A bot on the server checks the accounts every 30 minutes through the Meta Marketing API with a read-only token.
  • Alerts only for what matters: rejected ads, account and campaign spend limits, unpaid balance and grace period, disabled accounts and reviews, a broken token. Every alert has the reason and a link straight to the right place in Ads Manager.
  • No noise. A new problem arrives at once, an unresolved one repeats every 12 hours, a fixed one arrives as “Resolved”. Minor “ads with issues” are off by default.
  • Control right from Slack: /adhealth commands add and remove accounts, change the time zone and the morning summary time, and mute an account for a while.
  • I tested the same version in Telegram so the solution also works for teams that live there.

Results

  • Time from a problem to a reaction went from several hours to 10–30 minutes. The alert arrives within half an hour of the problem; the rest of the time goes into fixing it.
  • The very first run found 15 problems across 7 accounts, including 2 rejected ads still sitting in active campaigns.
  • No more manual rounds. The morning summary shows the state of every account in one message, and says so when everything is fine.

The bot’s code and the step-by-step setup are in the solution, free to take.