Free resource

Google Ads Change Alert Script: A Weekly Email of Every Account Change

By , Lead SEO & Co-founder 7 min read
A control room at sunset where a small automatic printer-like machine records every change on a long glowing strip of light without lettering, consoles with abstract charts behind it and a crimson light flagging one entry

Google Ads scripts are small pieces of JavaScript that run inside your own ad account, and this one does a single job: every Monday it emails you a list of everything that changed in the account the week before. Who changed it, when, through which tool, and what the budget or setting was before and after.

You don't need to be a developer. You copy the script, change one line (your email address), click a few buttons, and schedule it. It takes about five minutes, and it only reads your account, so it can't break a campaign.

It's for owners who let an agency, a freelancer or a Google rep work in their account and want a plain record of what happened. If you'd rather have someone run the account and send you that record anyway, tell me about it in the Google Ads questionnaire. I reply with a plan and a fixed quote within one business day.

What this Google Ads script emails you

Each weekly email has three parts:

  1. Setting changes since last week. The script saves a snapshot of each campaign's status, daily budget, bidding strategy, location option, search partners and Display Network settings. Next week it compares and lists anything that moved. This part catches changes even when nobody logged them.
  2. Change history. Every change the account recorded in the past seven days: date, the user's email, the tool used (website, Editor, API, or an auto-applied recommendation), the campaign and ad group, which fields changed, and before-and-after values for budgets, bidding, location options and keywords.
  3. Everything changed, counted. A tally of every item that changed, including edits made in Google Ads Editor, which the main change report doesn't cover. No user names here, just counts.

If nothing changed, you still get the email. A quiet week is useful information too.

Why change history alone isn't enough

Google Ads already has a change history page. It keeps two years of edits, and for changes made in the web interface it shows the user's email. So why bother with a script?

Three reasons:

  • Nobody opens it. It's a page you have to remember to visit. An email turns up on its own.
  • It doesn't list everything. Google's own help page says some changes aren't shown, including "not all account-level settings changes" and changes made by Google representatives during consultations.
  • Reps have made changes that didn't show. In October 2024, PPC Land reported a case where a contractor working for Google changed headlines and added images in an advertiser's account without permission, and the edits didn't appear in change history.

The settings snapshot in this script is the answer to the last two. It doesn't care who made a change or whether it was logged. It just notices that last week's budget was $50 and this week's is $90.

The script

Copy all of it. The only line you must change is EMAIL_TO, near the top. What it does: reads your account's change reports and campaign settings, then emails a summary. What it can break: nothing in your campaigns, since it never edits anything.

JavaScript
/**
 * Weekly Google Ads change alert (single account) - BigRed
 * What it does: emails you every change made in the account over the
 * last 7 days (who, when, what, through which tool), plus a diff of key
 * campaign settings compared with last week's snapshot.
 * What it can break: nothing in your campaigns. It only reads account
 * data, then saves one small text file to your Google Drive.
 */

var CONFIG = {
  // Who gets the email. Separate several addresses with commas.
  EMAIL_TO: '[email protected]',
  // How many days back to look (1 to 28).
  DAYS: 7,
  // Cap on lines in the email so it stays readable.
  MAX_LINES: 300
};

var CLIENT_LABELS = {
  GOOGLE_ADS_WEB_CLIENT: 'Google Ads website',
  GOOGLE_ADS_RECOMMENDATIONS_SUBSCRIPTION: 'AUTO-APPLIED recommendation',
  GOOGLE_ADS_RECOMMENDATIONS: 'Recommendation (applied by a user)',
  GOOGLE_ADS_AUTOMATED_RULE: 'Automated rule',
  GOOGLE_ADS_SCRIPTS: 'Script',
  GOOGLE_ADS_API: 'API or third-party tool',
  GOOGLE_ADS_BULK_UPLOAD: 'Bulk upload',
  GOOGLE_ADS_EDITOR: 'Google Ads Editor',
  GOOGLE_ADS_MOBILE_APP: 'Mobile app',
  SEARCH_ADS_360_SYNC: 'Search Ads 360',
  SEARCH_ADS_360_POST: 'Search Ads 360',
  INTERNAL_TOOL: 'Internal tool',
  OTHER: 'Other'
};

function main() {
  var account = AdsApp.currentAccount();
  var tz = account.getTimeZone();
  var days = Math.max(1, Math.min(CONFIG.DAYS, 28));
  var DAY = 24 * 60 * 60 * 1000;
  var now = new Date();
  // Same date pattern as Google's own change_event examples:
  // from N days ago up to tomorrow, in the account's time zone.
  var start = Utilities.formatDate(new Date(now.getTime() - days * DAY), tz, 'yyyy-MM-dd');
  var end = Utilities.formatDate(new Date(now.getTime() + DAY), tz, 'yyyy-MM-dd');

  var events = getChangeEvents(start, end);
  var statusLines = getChangeStatusSummary(start, end);
  var snapshot = takeSnapshot();
  var fileName = 'google-ads-settings-' + account.getCustomerId() + '.json';
  var oldSnapshot = loadSnapshot(fileName);
  var diffs = compareSnapshots(oldSnapshot, snapshot);
  var diffCount = oldSnapshot ? diffs.length : 0;
  saveSnapshot(fileName, snapshot);

  var lines = [];
  lines.push('Account: ' + account.getName() + ' (' + account.getCustomerId() + ')');
  lines.push('Period: ' + start + ' to today (' + tz + ')');
  lines.push('');
  lines.push('== SETTING CHANGES SINCE LAST RUN (' + diffCount + ') ==');
  lines = lines.concat(diffs.length ? diffs : ['None.']);
  lines.push('');
  lines.push('== CHANGE HISTORY (' + events.length + ') ==');
  lines = lines.concat(events.length ? events : ['No changes recorded.']);
  lines.push('');
  lines.push('== EVERYTHING CHANGED, COUNTED (includes Google Ads Editor, no user shown) ==');
  lines = lines.concat(statusLines.length ? statusLines : ['Nothing.']);

  if (lines.length > CONFIG.MAX_LINES) {
    var extra = lines.length - CONFIG.MAX_LINES;
    lines = lines.slice(0, CONFIG.MAX_LINES);
    lines.push('...and ' + extra + ' more lines. Open Change history in Google Ads for the rest.');
  }

  var subject = 'Google Ads weekly changes: ' + account.getName() + ' - ' +
      events.length + ' changes, ' + diffCount + ' setting diffs';
  MailApp.sendEmail(CONFIG.EMAIL_TO, subject, lines.join('\n'));
  Logger.log(lines.join('\n'));
}

// Who changed what, from the change_event report.
function getChangeEvents(start, end) {
  var query =
      'SELECT change_event.change_date_time, change_event.user_email, ' +
      'change_event.client_type, change_event.change_resource_type, ' +
      'change_event.resource_change_operation, change_event.changed_fields, ' +
      'change_event.old_resource, change_event.new_resource, ' +
      'campaign.name, ad_group.name ' +
      'FROM change_event ' +
      "WHERE change_event.change_date_time >= '" + start + "' " +
      "AND change_event.change_date_time <= '" + end + "' " +
      'ORDER BY change_event.change_date_time DESC ' +
      'LIMIT 10000';
  var out = [];
  var rows = AdsApp.search(query);
  while (rows.hasNext()) {
    var row = rows.next();
    var ce = row.changeEvent;
    var where = [];
    if (row.campaign && row.campaign.name) where.push('Campaign "' + row.campaign.name + '"');
    if (row.adGroup && row.adGroup.name) where.push('Ad group "' + row.adGroup.name + '"');
    var who = ce.userEmail || 'no user shown';
    var via = CLIENT_LABELS[ce.clientType] || ce.clientType;
    var line = ce.changeDateTime + ' | ' + who + ' via ' + via + ' | ' +
        ce.resourceChangeOperation + ' ' + ce.changeResourceType +
        (where.length ? ' | ' + where.join(', ') : '');
    var fields = fieldList(ce.changedFields);
    if (fields) line += ' | fields: ' + fields;
    var detail = describe(ce);
    if (detail) line += ' | ' + detail;
    out.push(line);
  }
  return out;
}

// Changes the change_event report can miss (for example Google Ads Editor
// and some keyword-level edits), counted by type. No user is shown here.
function getChangeStatusSummary(start, end) {
  var query =
      'SELECT change_status.resource_type, change_status.resource_status, ' +
      'change_status.last_change_date_time, campaign.name ' +
      'FROM change_status ' +
      "WHERE change_status.last_change_date_time >= '" + start + "' " +
      "AND change_status.last_change_date_time <= '" + end + "' " +
      'ORDER BY change_status.last_change_date_time DESC ' +
      'LIMIT 10000';
  var counts = {};
  var rows = AdsApp.search(query);
  while (rows.hasNext()) {
    var row = rows.next();
    var cs = row.changeStatus;
    var key = cs.resourceStatus + ' ' + cs.resourceType +
        (row.campaign && row.campaign.name ? ' in "' + row.campaign.name + '"' : '');
    counts[key] = (counts[key] || 0) + 1;
  }
  return Object.keys(counts).sort().map(function(k) {
    return counts[k] + ' x ' + k;
  });
}

// Plain-English detail for the changes owners care about most.
function describe(ce) {
  var o = ce.oldResource || {};
  var n = ce.newResource || {};
  switch (ce.changeResourceType) {
    case 'CAMPAIGN_BUDGET':
      var before = get(o, 'campaignBudget.amountMicros');
      var after = get(n, 'campaignBudget.amountMicros');
      if (after !== undefined) return 'daily budget ' + money(before) + ' -> ' + money(after);
      return '';
    case 'CAMPAIGN':
      var parts = [];
      var s1 = get(o, 'campaign.status'), s2 = get(n, 'campaign.status');
      if (s2 !== undefined) parts.push('status ' + (s1 || '?') + ' -> ' + s2);
      var b1 = get(o, 'campaign.biddingStrategyType'), b2 = get(n, 'campaign.biddingStrategyType');
      if (b2 !== undefined) parts.push('bidding ' + (b1 || '?') + ' -> ' + b2);
      var g1 = get(o, 'campaign.geoTargetTypeSetting.positiveGeoTargetType');
      var g2 = get(n, 'campaign.geoTargetTypeSetting.positiveGeoTargetType');
      if (g2 !== undefined) parts.push('location option ' + (g1 || '?') + ' -> ' + g2);
      return parts.join(', ');
    case 'AD_GROUP_CRITERION':
      var kw = get(n, 'adGroupCriterion.keyword') || get(o, 'adGroupCriterion.keyword');
      if (!kw) return '';
      var neg = get(n, 'adGroupCriterion.negative') || get(o, 'adGroupCriterion.negative');
      return (neg ? 'negative keyword ' : 'keyword ') + '"' + kw.text + '" (' + kw.matchType + ')';
    case 'CAMPAIGN_CRITERION':
      var ckw = get(n, 'campaignCriterion.keyword') || get(o, 'campaignCriterion.keyword');
      if (ckw) return 'campaign negative "' + ckw.text + '" (' + ckw.matchType + ')';
      return '';
    default:
      return '';
  }
}

// A snapshot of the settings that cost the most money when they change.
function takeSnapshot() {
  var query =
      'SELECT campaign.id, campaign.name, campaign.status, ' +
      'campaign.advertising_channel_type, campaign.bidding_strategy_type, ' +
      'campaign_budget.amount_micros, ' +
      'campaign.geo_target_type_setting.positive_geo_target_type, ' +
      'campaign.network_settings.target_search_network, ' +
      'campaign.network_settings.target_content_network ' +
      'FROM campaign ' +
      "WHERE campaign.status != 'REMOVED'";
  var snap = {};
  var rows = AdsApp.search(query);
  while (rows.hasNext()) {
    var row = rows.next();
    var c = row.campaign;
    var ns = c.networkSettings || {};
    snap[c.id] = {
      name: c.name,
      status: c.status,
      type: c.advertisingChannelType,
      bidding: c.biddingStrategyType,
      dailyBudget: money(get(row, 'campaignBudget.amountMicros')),
      locationOption: get(c, 'geoTargetTypeSetting.positiveGeoTargetType') || 'n/a',
      searchPartners: !!ns.targetSearchNetwork,
      displayNetwork: !!ns.targetContentNetwork
    };
  }
  return snap;
}

function compareSnapshots(oldSnap, newSnap) {
  if (!oldSnap) return ['First run: settings saved. Differences will show from next week.'];
  var out = [];
  Object.keys(newSnap).forEach(function(id) {
    var a = oldSnap[id], b = newSnap[id];
    if (!a) {
      out.push('NEW campaign "' + b.name + '" (' + b.type + ', budget ' + b.dailyBudget + ')');
      return;
    }
    Object.keys(b).forEach(function(k) {
      if (String(a[k]) !== String(b[k])) {
        out.push('"' + b.name + '": ' + k + ' ' + a[k] + ' -> ' + b[k]);
      }
    });
  });
  Object.keys(oldSnap).forEach(function(id) {
    if (!newSnap[id]) out.push('Campaign "' + oldSnap[id].name + '" was removed');
  });
  return out;
}

function loadSnapshot(fileName) {
  var files = DriveApp.getFilesByName(fileName);
  if (!files.hasNext()) return null;
  return JSON.parse(files.next().getBlob().getDataAsString());
}

function saveSnapshot(fileName, snap) {
  var text = JSON.stringify(snap);
  var files = DriveApp.getFilesByName(fileName);
  if (files.hasNext()) {
    files.next().setContent(text);
  } else {
    DriveApp.createFile(fileName, text, MimeType.PLAIN_TEXT);
  }
}

function fieldList(f) {
  if (!f) return '';
  if (typeof f === 'string') return f;
  if (f.paths) return f.paths.join(',');
  return JSON.stringify(f);
}

function get(obj, path) {
  return path.split('.').reduce(function(o, k) {
    return (o !== undefined && o !== null) ? o[k] : undefined;
  }, obj);
}

function money(micros) {
  if (micros === undefined || micros === null) return 'n/a';
  return (Number(micros) / 1000000).toFixed(2);
}

A few notes on what's inside, for the curious:

  • It reads the change_event report through AdsApp.search using GAQL (Google Ads Query Language). Field names follow Google's change event documentation. Because AdsApp.search returns fields in lowerCamelCase, change_event.user_email becomes changeEvent.userEmail in the code.
  • It reads the change_status report for the counted section, because Google says Editor changes and some criterion-level changes come through there instead.
  • It saves its snapshot as a small text file in your Google Drive, named with your customer ID. Delete the file and the next run simply starts a fresh baseline.

How to install it (about five minutes)

These steps follow Google's guide to managing scripts, as of October 2026.

  1. Open Scripts. In Google Ads, click the Tools icon, open Bulk actions, and choose Scripts.
  2. Create a new script. Click the plus button. Name it something you'll recognize, like "Weekly change alert."
  3. Paste the code. Delete the sample code in the editor and paste the whole script above.
  4. Add your email. Replace [email protected] with your own address. For several people, separate addresses with commas inside the quotes.
  5. Authorize it. Click Authorize now, then Grant access. The script asks to read your Google Ads data, send email as you, and create one file in your Drive. That's all it does.
  6. Preview it. Click Preview. You'll get a real email, because Google's preview mode still sends email and only blocks changes to the ad account. That makes preview a handy test. The first email will say "First run: settings saved."
  7. Save and schedule. Click Save. Back on the Scripts list, hover over the empty Frequency cell, click the pencil, choose Weekly, pick Monday and an early hour, and save.

That's it. From next Monday, the setting differences start to appear.

What the email looks like

Here's an illustrative example (made-up account, real format):

Text
Account: Example Electric (123-456-7890)
Period: 2026-10-12 to today (America/Toronto)

== SETTING CHANGES SINCE LAST RUN (3) ==
"Search | Urgent repairs": bidding MANUAL_CPC -> MAXIMIZE_CONVERSIONS
"Search | Urgent repairs": dailyBudget 33.00 -> 60.00
"Search | Urgent repairs": locationOption PRESENCE -> PRESENCE_OR_INTEREST

== CHANGE HISTORY (2) ==
2026-10-15 10:02:11 | [email protected] via Google Ads website | UPDATE CAMPAIGN_BUDGET | Campaign "Search | Urgent repairs" | fields: amountMicros | daily budget 33.00 -> 60.00
2026-10-16 03:14:40 | no user shown via AUTO-APPLIED recommendation | CREATE AD_GROUP_CRITERION | Campaign "Search | Urgent repairs", Ad group "Emergency electrician" | keyword "electrician" (BROAD)

== EVERYTHING CHANGED, COUNTED (includes Google Ads Editor, no user shown) ==
1 x ADDED AD_GROUP_CRITERION in "Search | Urgent repairs"
1 x CHANGED CAMPAIGN in "Search | Urgent repairs"
1 x CHANGED CAMPAIGN_BUDGET in "Search | Urgent repairs"

Look at what that example tells you. The budget nearly doubled, someone switched the bidding strategy, the location option went back to the default, and an auto-applied recommendation added a broad match keyword at 3 a.m. Only the budget change shows up with a name. The snapshot caught the rest.

How to read it

  • A user email you don't recognize. Ask who it is. Then check who has access under Admin, Access and security.
  • "AUTO-APPLIED recommendation." Google changed something on its own because auto-apply is switched on. Decide whether you want that.
  • "no user shown," or setting differences with no matching change history. Something changed without a clear record. Worth a polite question to your agency or rep.
  • Budget or bidding changes nobody told you about. Not always wrong, but you should hear about them before the invoice, not after.

Limits worth knowing

  • One account per script. It runs in a single Google Ads account. An agency with a manager account would need a different version.
  • Up to 28 days back. Google requires the change event date range to sit inside the past 30 days, and caps each query at 10,000 rows. The script stays inside both.
  • Not every change is listed. Google says change events may not include every row from the web Change History. That's why the snapshot exists.
  • The snapshot covers campaign settings only. Status, daily budget, bidding strategy, location option, search partners and Display Network. Ads, keywords and conversions are covered by the change history section, not the snapshot.
  • Runtime. Google Ads scripts can run for up to 30 minutes. This one takes seconds on a normal small business account.

When to call in help

The script tells you something changed. It doesn't tell you whether the change was a good idea. If the email shows changes you can't explain, or settings keep drifting back to defaults, it's worth a second opinion.

A fixed-price PPC audit reviews the account's settings, tracking and recent changes, and gives you a list of fixes ranked by money. If you're not sure you even control the account, start with my guide on Google Ads admin access and the agency ownership switch. For how a sensible small account is set up in the first place, see my Google Ads playbook for small budgets. And if you'd rather not watch the account yourself at all, my Google Ads management includes a written change log every month.

Are Google Ads scripts safe to run?

A script can do whatever its code says, so read before you run. This one only reads data. It never calls anything that edits campaigns, and in preview mode Google blocks account changes anyway. It sends one email and writes one small text file to your Drive. You can pause or delete it from the Scripts page at any time.

Do I need to know JavaScript to use this script?

No. You only change the email address on one line, then follow the install steps. Knowing a little JavaScript helps if you want to customize it, for example to change the number of days or add more settings to the snapshot, but the default version works as-is for a single Google Ads account.

Will the script email me if nothing changed?

Yes. You get the email every week, even when the account was untouched. That's deliberate. A short "No changes recorded" email confirms the script is running and that nobody worked in the account, which is useful to know when you're paying someone to manage it.

Can it catch changes made by a Google rep?

Changes made through the Google Ads interface usually appear in the change history section with the user's email. Google says some changes made by its representatives during consultations may not be listed in change history. The settings snapshot catches the result of those changes, such as a new budget or bidding strategy, even when no log entry exists.

Next step

Install it this week and let the first Monday email set your baseline. If what you see raises questions, or you'd like someone to manage the account and explain every change in plain English, send me the details through the Google Ads questionnaire. No pressure either way.

Want a second pair of eyes on your site?

Tell me what's going on in the google ads management questionnaire. I reply with a plan and a fixed quote within one business day.

Starting at $1,000 setup Start the questionnaire