Guides · Nov 29, 2026 · 16 min read

Google Ads Scripts for Reporting - What Works

Google Ads scripts for reporting, tested: which automated report scripts earn their keep, where they break, and when an email-first tool saves you more time.

By Varun, founder of ReportsMate

Google Ads scripts for reporting are free, they run inside your account, and a decent one can pull a week of campaign data into a Google Sheet before you've finished your Monday coffee. That's why almost every PPC manager tries them. It's also why so many agencies end up with a folder of half-maintained scripts, a few broken spreadsheets and a client who still asks "so how did we go this month?"

This guide is the practitioner version. We cover which Google Ads reporting scripts are genuinely worth running, what the official limits are, working code you can paste in, and the point where scripts stop being the cheap option. If your end goal is a branded report in your client's inbox rather than a spreadsheet, we'll also show where a dedicated Google Ads reporting integration takes over.

Last updated: November 2026

Key takeaways

  • Google Ads scripts are JavaScript programs that run inside a Google Ads account (or manager account) on a schedule, using Google Ads Query Language (GAQL) to pull reporting data.
  • Scripts are best for internal jobs: budget pacing alerts, anomaly checks, broken-link checks and dumping raw data into Google Sheets.
  • Each run is capped at 30 minutes (up to 60 minutes for some manager-account scripts), and a manager-account script can process up to 50 accounts in parallel, per Google's documentation.
  • Scripts make poor client-facing reports: they only see Google Ads data, they email from your Google account with no sender branding, and someone has to maintain the code.
  • Across ReportsMate, clients with Google Ads connected average more than two platforms per client, so a Google-Ads-only script rarely tells the whole story.

Table of contents

  1. What are Google Ads scripts for reporting?
  2. Google Ads scripts vs other reporting options (comparison table)
  3. Which Google Ads scripts examples are worth running?
  4. How do you write an automated Google Ads report script?
  5. How do you run reporting scripts across a manager account?
  6. What are the limits of Google Ads scripts?
  7. When should you stop using scripts for client reports?
  8. FAQs
  9. Final tips

What are Google Ads scripts for reporting?

Google Ads scripts are snippets of JavaScript that run inside the Google Ads interface, on Google's servers, with read (and optionally write) access to your account data. You find them under Tools, then Bulk actions, then Scripts. For reporting, a script queries performance data, does some maths on it, and pushes the result somewhere useful: a Google Sheet, an email or a log.

They used to be called AdWords scripts, and plenty of the forum threads and GitHub repos you'll find still use that name. The old AdWords scripts were built on AWQL, the AdWords Query Language. Today's scripts use GAQL (Google Ads Query Language), which is the same query language the Google Ads API uses. If you copy an old adwords script from a 2018 blog post, expect it to need rewriting before it runs.

Google's own reporting guide for scripts describes two ways to pull data:

  • AdsApp.report() returns flat, dictionary-style rows (row["campaign.name"]) and can be exported straight to a Sheet with exportToSheet().
  • AdsApp.search() returns structured row objects (row.campaign.name) and is, in Google's words, "generally more useful if you plan to process the data programmatically."

Both accept the same GAQL query. In practice we use search() for anything that calculates (pacing, period-over-period changes, alerts) and report() when we just want a raw data dump into a spreadsheet.

Scripts run on a schedule you set in the interface. Google's scripts help page lists running once, daily, weekly or monthly at a chosen hour, and there is a Preview button that shows what the script would do before you authorise it to run for real.

Insider term: GAQL. Google Ads Query Language looks like SQL. You SELECT fields such as metrics.clicks from a resource such as campaign, filter with WHERE, and set a date window with segments.date DURING LAST_7_DAYS. Learn ten GAQL fields and you can build most reporting scripts.

Scripts are the cheapest way to automate Google Ads data, but the most expensive to maintain. Here's how they stack up against the other common ways agencies produce a Google Ads report. We make ReportsMate, so read our row with that in mind; we've tried to be fair to everyone else.

OptionCostData sourcesClient-facing outputMaintenanceBest for
Google Ads scriptsFreeGoogle Ads only (plus anything you fetch via URL)Sheet or plain email from your Google accountYou own the code; breaks when fields or accounts changeInternal alerts, pacing, raw data dumps
Google Ads scheduled reports (in-platform)FreeGoogle Ads onlyEmailed CSV/Excel or PDF downloadLowSimple recurring exports for in-house teams
Google Ads add-on for Google SheetsFreeGoogle Ads onlySpreadsheetLow to mediumAnalysts who live in Sheets
Looker Studio (renamed Data Studio in April 2026)Free; Pro is paid per userGoogle sources native; others via partner connectorsDashboard link or scheduled PDFMedium; connectors and charts need upkeepCustom dashboards
Connector tools (e.g. Supermetrics)Paid, priced by data sourcesMany platformsSheets, Looker Studio, BI toolsMediumTeams building their own data stack
Dashboard tools (AgencyAnalytics, DashThis, Whatagraph, Swydo)PaidMany platformsLogin dashboard plus scheduled emails/PDFsLowAgencies happy with a client portal
ReportsMatePaid, flat monthly tiersSeven platforms (Starter covers Google Ads and Meta Ads; all seven from Professional)White-label email written in plain English, no loginLowAgencies that want clients to actually read the report

The real split isn't free versus paid. It's who the report is for. If the reader is you or your PPC team, a script is often the best tool on this table. If the reader is a client who has never opened Google Ads, a script is usually the wrong tool, for reasons we cover below.

Which Google Ads scripts examples are worth running?

The Google Ads scripts that pay for themselves are the ones that watch an account and tell you when something changes, not the ones that try to be the client report. These are the five we'd install on almost any account.

1. Budget pacing alert

Compares month-to-date spend against the monthly budget and emails you if an account is pacing more than, say, 10% over or under. This catches the two most awkward client conversations in PPC: "you overspent" and "why didn't you spend the budget?" Pair it with a proper Google Ads budget pacing report so the client sees pacing context, not just your internal alarm.

2. Anomaly detector

Compares yesterday (or the last seven days) against the same window a week earlier and flags big swings in cost, clicks, conversions or cost per conversion. Google published a well-known account anomaly detector solution years ago; most agencies now run a trimmed-down version that only alerts on the metrics they care about.

3. Zero-impression and disapproval check

Lists enabled campaigns or ad groups with zero impressions yesterday, and ads with a disapproved policy status. Silent zero days are one of the most common reasons a client's lead flow drops without anyone noticing for a week.

4. Broken final URL checker

Uses UrlFetchApp to request each final URL and flags anything returning a 404 or 500. It's useful for accounts where the client's web developer changes pages without telling you. Watch your quota: URL fetch calls fall under the Apps Script quotas Google links to from the scripts limits page (20,000 a day for consumer accounts).

5. Daily data dump to Sheets

Pulls campaign, ad group or search term rows into a Google Sheet each morning so an analyst can pivot them. This is the classic "Google Ads reporting script", and it's genuinely handy for analysis. Our guide to exporting Google Ads data to Google Sheets compares this approach with the official add-on.

What we wouldn't bother with: scripts that try to build a pretty, charted client report inside an email. You'll spend more time fighting HTML email rendering than you save on reporting, and the result still arrives from a personal Gmail-style sender.

One more practical note for 2026. If your accounts run AI Max for Search, keep AI Max search terms separate when you script search term reports. Google's API documentation warns against adding the AI Max search term and ad combination view to the standard search term view, because you'll double count. A script that sums both will overstate clicks and cost.

How do you write an automated Google Ads report script?

An automated Google Ads report script has three parts: a GAQL query, a loop that reads the rows, and an output (a Sheet, an email or both). Here's a minimal, working example that writes last week's campaign performance to a Google Sheet and emails a short summary.

// Weekly campaign summary - writes to a Sheet and emails a summary.
const SHEET_URL = 'https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/edit';
const EMAIL_TO = 'you@youragency.com';

function main() {
  const query = `
    SELECT campaign.name,
           metrics.impressions,
           metrics.clicks,
           metrics.cost_micros,
           metrics.conversions
    FROM campaign
    WHERE segments.date DURING LAST_7_DAYS
      AND campaign.status = 'ENABLED'
    ORDER BY metrics.cost_micros DESC`;

  const rows = AdsApp.search(query);
  const sheet = SpreadsheetApp.openByUrl(SHEET_URL).getSheets()[0];
  sheet.clearContents();
  sheet.appendRow(['Campaign', 'Impressions', 'Clicks', 'Cost', 'Conversions', 'Cost / conv.']);

  let totalCost = 0;
  let totalConv = 0;

  while (rows.hasNext()) {
    const row = rows.next();
    const cost = Number(row.metrics.costMicros) / 1000000;
    const conv = Number(row.metrics.conversions);
    totalCost += cost;
    totalConv += conv;
    sheet.appendRow([
      row.campaign.name,
      Number(row.metrics.impressions),
      Number(row.metrics.clicks),
      cost.toFixed(2),
      conv.toFixed(1),
      conv > 0 ? (cost / conv).toFixed(2) : '-'
    ]);
  }

  const cpa = totalConv > 0 ? (totalCost / totalConv).toFixed(2) : 'n/a';
  MailApp.sendEmail({
    to: EMAIL_TO,
    subject: AdsApp.currentAccount().getName() + ' - last 7 days',
    htmlBody: '<p>Spend: ' + totalCost.toFixed(2) +
              '<br>Conversions: ' + totalConv.toFixed(1) +
              '<br>Cost per conversion: ' + cpa + '</p>' +
              '<p><a href="' + SHEET_URL + '">Full breakdown</a></p>'
  });
}

A few things this example gets right that copied scripts often get wrong:

  • Cost comes back in micros. metrics.cost_micros is cost multiplied by one million. Forget to divide and your client's $2,400 week becomes $2.4 billion.
  • Numbers can come back as strings. Wrapping values in Number() avoids string concatenation bugs when you add them up.
  • Divide-by-zero is handled. Campaigns with no conversions show a dash instead of Infinity.
  • Settings sit at the top. Anyone in your team can change the Sheet or recipient without reading the logic.

Scheduling and testing

  1. Paste the script into Tools, Bulk actions, Scripts, then click the plus button to create a new script.
  2. Authorise the script when prompted (Google's button reads "Authorize now"), then grant access.
  3. Click Preview first. Preview runs the script without making account changes and shows the logs, which is where you'll catch GAQL typos.
  4. Set the frequency (weekly on Monday at 6am is a sensible default for this example) and save.

Period-over-period comparisons are the next step most agencies want. Run the query twice, once with DURING LAST_7_DAYS and once with an explicit segments.date BETWEEN 'YYYY-MM-DD' AND 'YYYY-MM-DD' window for the previous week, then calculate the change. Keep both date windows in one helper function so they can't drift apart.

If you'd rather start from a finished layout than code one, our Google Ads report template shows which metrics and sections clients respond to, and you can mirror its structure in your Sheet.

How do you run reporting scripts across a manager account?

To report across many client accounts, write a manager account (MCC) script that selects child accounts and processes them with executeInParallel. One script then covers your whole book of clients instead of you copying the same script into every account.

function main() {
  AdsManagerApp.accounts()
    .withCondition("customer_client.descriptive_name CONTAINS 'Client'")
    .withLimit(50)
    .executeInParallel('processAccount', 'allDone');
}

function processAccount() {
  const rows = AdsApp.search(`
    SELECT metrics.cost_micros, metrics.conversions
    FROM customer
    WHERE segments.date DURING THIS_MONTH`);
  let cost = 0, conv = 0;
  while (rows.hasNext()) {
    const r = rows.next();
    cost += Number(r.metrics.costMicros) / 1000000;
    conv += Number(r.metrics.conversions);
  }
  return JSON.stringify({
    name: AdsApp.currentAccount().getName(),
    cost: cost.toFixed(2),
    conv: conv.toFixed(1)
  });
}

function allDone(results) {
  const lines = results.map(function (res) {
    if (res.getStatus() !== 'OK') {
      return res.getCustomerId() + ': ERROR - ' + res.getError();
    }
    const d = JSON.parse(res.getReturnValue());
    return d.name + ': ' + d.cost + ' spend, ' + d.conv + ' conv.';
  });
  Logger.log(lines.join('\n'));
}

The pattern is: processAccount runs once per child account and returns a string (JSON is the easy choice), then allDone receives every result and writes the combined output. Always check getStatus() in the callback. One client account with a permissions problem should produce an error line, not a silent gap in your report.

According to Google's scripts limits documentation, executeInParallel can process up to 50 accounts, and each account's return value can be up to 10MB. If you manage more than 50 accounts, you'll need to split them across several scripts (for example by account label) or process them in batches across runs.

Insider term: manager account (MCC). A manager account is the umbrella Google Ads account an agency uses to access many client accounts with one login. Our guide to Google Ads manager account reporting for agencies covers the access and structure side in more depth.

What are the limits of Google Ads scripts?

Google Ads scripts can run for a maximum of 30 minutes per execution, or up to 60 minutes for some manager-account scripts using executeInParallel with a callback. That's the headline limit, but it's rarely the one that bites agencies first. Here are the limits that matter for reporting, from Google's scripts limits page and the Apps Script quotas it links to.

LimitValueWhy it matters for reporting
Execution time30 minutes; up to 60 minutes for some manager scriptsLarge search term or keyword pulls across many accounts can time out
Accounts per executeInParallel50Agencies with more clients need multiple scripts or batching
Authorised scripts per account250Rarely a problem, but a sign of how sprawl creeps in
Default iterator results50,000 (changeable with withLimit())Entity iterators cap out; reports are not subject to entity limits
Log outputTruncated at 100KBVerbose debugging logs get cut off
Email recipients per day100 (consumer Google account), 1,500 (Workspace)Client-facing email reports from a personal Gmail hit this fast
Email recipients per message50Fine for most clients
URL fetch calls per day20,000 (consumer), 100,000 (Workspace)Broken-link checkers on big accounts use this up

The limits we see cause real trouble are the soft ones:

  • Single platform. A script sees Google Ads. It doesn't see GA4 sessions, Meta spend or Search Console clicks unless you build your own API calls, and at that point you're maintaining a data pipeline.
  • The sender is you. Emails send from the Google account that authorised the script. There's no custom sending domain, no agency logo in the sender name, and no read tracking.
  • The script owner leaves. Scripts run under the authorising user. When that staff member leaves and their Google access is removed, scripts can stop quietly. Re-authorise scripts under a shared agency login as part of offboarding.
  • Silent failures. A script that errors doesn't email the client to say "sorry, no report this week". It just doesn't send. Build an error email into catch blocks, and check the scripts execution history weekly.

When should you stop using scripts for client reports?

Stop using scripts for client reports when you're spending more time maintaining them than reading their output, or when clients need more than Google Ads data in one place. For most agencies, that line arrives somewhere around the tenth client.

Here's what our own first-party data says about the shape of agency reporting today. Across ReportsMate, 69 clients currently have at least one platform connected, averaging about 2.3 platforms each. Google Ads is connected for 19 of those 69 clients, a bit more than one in four. The point for script builders is simple: the typical client report draws on more than one source, and a Google Ads script only covers one of them.

Cadence matters too. Of the 101 report schedules agencies have switched on in ReportsMate, 55 are monthly, 34 weekly and 12 daily. Monthly is clearly the most common client cadence, which is exactly the rhythm where a script's daily alert strengths matter least and a readable summary matters most.

And the email itself has to get read. Across the 4,889 report emails sent through ReportsMate to date, the median opened email was opened about 4.5 hours after sending, and roughly three in four opens happened within 24 hours. Open rates also differ sharply by cadence: around a third of monthly (34%) and weekly (31%) report emails were opened, against about 7% of daily ones. These are counts from our own platform, a small first-party base rather than an industry benchmark, but the pattern is consistent: clients read the occasional, well-timed summary and ignore the daily firehose. That's an argument for using scripts as your internal daily early-warning system and something else for the client.

We built ReportsMate email-first because, after years around agency reporting, we kept seeing the same thing: the dashboard link clients were sent almost never got opened, and the scripted spreadsheet only ever got opened by the PPC manager who wrote it. The report that lands in the inbox, written in plain English under the agency's own name, is the one that gets read.

A sensible split for most agencies

JobBest tool
Daily anomaly, pacing and broken-link alerts for your teamGoogle Ads scripts
Raw data for ad hoc analysisScripts or the Sheets add-on
Bulk changes and bid rulesScripts or automated rules
Weekly or monthly client reportA reporting tool that handles branding, multiple platforms and delivery

If the last row is the one eating your Sundays, see how ReportsMate works: connect the client's Google Ads (and, from Professional, GA4, Search Console, Meta and the rest) with a read-only Google sign-in, set your logo and sending domain once, then pick a daily, weekly or monthly schedule. The AI writes the commentary, and the client gets a branded email they don't need a login to read.

Insider term: white-label. A white-label report carries your agency's branding and sender identity, not the tool's. Scripts can't do this at the email level because the message always comes from the Google account that runs them.

FAQs

Q: Are Google Ads scripts free to use?

A: Yes. Google Ads scripts are free and included in every Google Ads account and manager account. You don't pay per run or per account. The real cost is time: someone has to write the scripts, test them, update them when Google changes fields, and re-authorise them when the original owner leaves. For a handful of internal alerts that cost is small. For a full client reporting workflow across dozens of accounts it adds up quickly, which is why many agencies keep scripts for monitoring and use a reporting tool for client delivery. Compare tiers on our pricing page if you want to weigh that time against a flat monthly fee.

Q: Do old AdWords scripts still work?

A: Mostly not without changes. Old AdWords scripts were written for AWQL and older reporting fields, while current Google Ads scripts use GAQL, the Google Ads Query Language shared with the Google Ads API. Field names changed (for example Cost became metrics.cost_micros), and some report types were renamed or restructured. If you find a useful adwords script online, treat it as a recipe rather than finished code: keep the logic, rewrite the query in GAQL, and test it with Preview before scheduling. Scripts copied from Google's own current developer docs are the safest starting point.

Q: Can a Google Ads script send a report to my client?

A: Technically yes, using MailApp.sendEmail with an HTML body. Practically, it's a poor client experience. The email sends from the Google account that authorised the script, so there's no agency sending domain or branding in the sender, and consumer Google accounts are limited to 100 email recipients a day. There's also no open tracking and no automatic hold if the data is incomplete. We recommend sending script output to your own team and using a white-label email tool for anything a client reads.

Q: How do I schedule a Google Ads report script?

A: Open Tools, then Bulk actions, then Scripts, select the script and set its frequency. Google's help page lists once, daily, weekly or monthly runs at a chosen hour, and you can pick a specific date, day of the week or day of the month. Schedule alert scripts daily in the early morning so the data from the previous day is complete, and weekly summary scripts for Monday morning in your client's timezone. Always click Preview first to catch query errors.

Q: What's the difference between AdsApp.report and AdsApp.search?

A: Both run the same GAQL query but return data differently. AdsApp.report() returns flat rows you access with the full field name as a key, such as row["metrics.clicks"], and has a handy exportToSheet() method. AdsApp.search() returns structured objects accessed like row.metrics.clicks and is better for calculations. Google's documentation notes some fields may not be available in the report format, in which case you should use search. Use report for quick exports and search for everything else.

Q: Can Google Ads scripts pull data from GA4 or Meta?

A: Not natively. Google Ads scripts only have built-in access to Google Ads data, plus Google services such as Sheets, Drive and Mail. You can call other APIs with UrlFetchApp, but you then manage authentication, tokens, rate limits and errors yourself, inside a 30-minute execution window. For multi-platform client reports, a reporting tool that connects GA4, Meta Ads and Google Ads directly is far less fragile. A read-only OAuth connection, like the one described in the Google Ads integration section above, avoids that maintenance entirely.

Q: How many accounts can one Google Ads script report on?

A: A manager account script using executeInParallel can process up to 50 accounts per run, according to Google's limits documentation. If you manage more than 50 client accounts, split them across several scripts using account labels, or process a different batch on each run. Also allow for the 30-minute limit per account (60 minutes overall for some manager scripts with a callback): large search term pulls across big accounts are the usual cause of timeouts.

Final tips: get the most from Google Ads scripts for reporting

Google Ads scripts for reporting earn their place when they work as an early-warning system for your team. Use them for budget pacing, anomaly alerts, zero-impression checks, broken links and raw data dumps into Sheets. Keep the settings at the top of each script, check execution history weekly, run every script under a shared agency login, and add an error email so failures don't go quiet.

Then be honest about the client side. A script will never send a branded, multi-platform, plain-English report from your own domain, and your clients are far more likely to read a weekly or monthly summary than a daily data feed. Let scripts watch the account and let the client report do the talking.

Stop losing your Sundays to client reports. Start your free 14-day trial - no credit card, no setup, cancel anytime. Your clients get branded reports in their inbox automatically.

Read next

Which Allows Advertisers to Automate AdWords Reporting?Ad Reporting Tool for Google Ads and AdWords Analyser 2026Google My Business Reporting Tool for Agencies in 2026

Next Monday's reports could send themselves.

Connect one client today. If the first report isn't better than the one you'd have built by hand, you've lost a couple of minutes.

No card. Questions first? Write to support@reportsmate.com and we'll help.

What happens after you press that

Minute 1Add your agency name and colour.Minute 3Connect one client. Their first report is in your inbox to check.MondayIt sends to the client at 7:00 AM. You see when they open it.Day 14Keep it from $29 a month, or do nothing and the trial simply ends.