πŸ€–chiliad
ClaudePricing
Help CenterScripts and deployment

How to send email alerts from a Google Ads script

Sending notifications with MailApp, what to put in them, and the limits to keep in mind.

An alert that arrives in your inbox is the simplest useful output a script can have.

Sending a message

var ALERT_EMAIL = "you@example.com";

function main() {
  var problems = findProblems();
  if (problems.length === 0) return;

  MailApp.sendEmail({
    to: ALERT_EMAIL,
    subject: "Budget alert: " + AdsApp.currentAccount().getName(),
    body: problems.join("\n")
  });
}

Separate several recipients with commas. Use htmlBody instead of body for tables and links.

What makes an alert useful

  • Say which account in the subject. At manager level every client produces its own message.
  • Send only when there is something to act on. A daily "all fine" email trains people to ignore the sender.
  • Include the numbers and a link so the reader can judge without opening Google Ads.

Things to know

  • The email is sent from the user who authorized the script.
  • Sending is subject to a daily quota per user. A script that emails once per keyword will exhaust it; collect findings and send one message.
  • Emails are sent in preview. Check AdsApp.getExecutionInfo().isPreview() if you want preview to stay quiet, or use your own address while testing.
  • The first use of MailApp requires authorization.

Different recipients per client

Make the address a variable and set it per account in chiliad's Configure table, so the same script notifies the right account manager for each client.

Alerts about the script itself

An email from the script only arrives if the script runs. If it fails or stops, nothing is sent. Those cases are covered separately by chiliad's own alerts β€” see How to get alerts when a Google Ads script fails.

Part of the guideScripts and deployment

More on this topic

  • How to add a script to Google Ads
  • How Google Ads script authorization works
  • How to schedule a Google Ads script
  • Preview vs Run in Google Ads scripts: what is the difference?
  • Google Ads script limits: execution time, accounts and quotas
  • How to run one Google Ads script on multiple accounts
  • How to update a Google Ads script in every account at once
  • How to use different script settings for each account
  • How to roll back a Google Ads script to an earlier version
  • How a Google Ads script is structured: main(), settings and helpers
  • How to use Google Sheets from a Google Ads script

Still stuck?

Send us a question from the help center β€” we read every message.

Ask a question
πŸ€–chiliad

The platform for managing and automating Google Ads scripts at scale. Built for PPC agencies and freelancers.

chiliad β€” Google Ads Script Management - Monitor and manage Google Ads scripts across every account | Product Hunt

Product

  • Use Cases
  • Features
  • Claude connector
  • Pricing
  • Marketplace
  • Blog
  • About
  • Roadmap
  • Changelog

Support

  • Contact Us
  • Help Center
  • Terms of Service
  • Privacy Policy

Β© 2026 chiliad. All rights reserved.