Stop Manually Checking Accounts: A Free Google Ads MCC Script to Alert You on Performance Drops
Managing a large portfolio of Google Ads accounts? The “Monday Morning Panic” is real. You log in, only to realize a key client’s account stopped serving impressions on Friday afternoon due to a payment issue or a disapproval, and nobody noticed for 48 hours.
Manual checks are inefficient and prone to human error. As digital marketers, our time is better spent on strategy, not basic health checks.
Today, I’m sharing a simple but powerful Google Ads MCC Script that automates this process for you.
What this script does
- Zero Impressions (Yesterday): Indicates the account might be paused, disapproved, or out of budget.
- Zero Conversions (Last 3 Days): Indicates a potential tracking break or a severe drop in traffic quality.
Copy and paste the code below into your Google Ads Manager account.
(Note: Remember to update the email variable at the top with your own address).
// Accounts alert Script by Francesco Azzarone
// custom requests? francesco.azzaroneads@foxdatax.com
// Enter your data here >
function main() {
var email = ""; // ← Inserisci qui la tua email
var subject = "🔴 Alert Google Ads: Impressioni o Conversioni Assenti";
var htmlBody = `
🚨 Account con problemi di performance
Questi account non hanno generato impressioni o conversioni nelle ultime 3 giornate:
Account
Impressioni (ieri)
Conversioni (ultimi 3 giorni)
`;
var accountIterator = MccApp.accounts().get();
while (accountIterator.hasNext()) {
var account = accountIterator.next();
MccApp.select(account);
var statsToday = AdsApp.currentAccount().getStatsFor("TODAY");
var statsYesterday = AdsApp.currentAccount().getStatsFor("YESTERDAY");
var statsWeek = AdsApp.currentAccount().getStatsFor("THIS_WEEK_MON_TODAY");
var impressionsYesterday = statsYesterday.getImpressions();
var conversionsToday = statsToday.getConversions();
var conversionsYesterday = statsYesterday.getConversions();
var conversionsWeek = statsWeek.getConversions();
// Approssimazione: conversioni negli ultimi 3 giorni = somma diretta
var totalConversions = conversionsToday + conversionsYesterday + (conversionsWeek - conversionsToday - conversionsYesterday);
if (impressionsYesterday === 0 || totalConversions === 0) {
var accountName = account.getName();
var accountId = account.getCustomerId();
var impressionStyle = impressionsYesterday === 0 ? "color:red;" : "";
var conversionStyle = totalConversions === 0 ? "color:red;" : "";
htmlBody += `
${accountName} (${accountId})
${impressionsYesterday}
${totalConversions}
`;
}
}
htmlBody += `
Email generata automaticamente da Google Ads Script MCC.
`;
MailApp.sendEmail({
to: email,
subject: subject,
htmlBody: htmlBody
});
}
How to install the script
To install this Google Ads script in your account, follow these steps:
- Go to your Google Ads Manager Account (MCC).
- Click the Tools and settings icon in the top menu.
- Click the + button to create a new script.
- Click Authorize (you will need to grant permission to send emails and access accounts).
- Preview the script to ensure it runs without errors.
- Save and set the Frequency to Daily (I recommend running it at 8:00 AM or 9:00 AM so the report is ready when you start your day).