Skip to content

Help

Is it safe to run a Google Ads script? How our scan works

By the SpendCanary team · Updated

A Google Ads script is as safe as its code, so the way to judge one is to read it. Ours makes two kinds of Google Ads calls, both of which only read, builds a summary of the last 30 days, and sends that summary to us. Below is exactly what it does, and how to check any script, ours included, before you run it. When you’re ready, start the free Google Ads scan.

Feeling uneasy about pasting code into your ad account is a healthy instinct. Scripts are short programs that run inside Google Ads. Some only read reports; others pause ads, change bids or edit budgets, and they use the same screen.

What our script does

You copy the script, open Tools > Bulk actions > Scripts in Google Ads, click the plus button, paste it in, authorise it and click Run. If you can’t find the Scripts page, search for “Scripts” in the Google Ads search bar.

The video shows the whole scan on a Google Ads test account, from getting the script to reading the report (1 minute 41 seconds, with voiceover and captions, also on YouTube). Google’s sign-in window is cut out.

Its Google Ads calls are:

  • AdsApp.search, which reads reports.
  • AdsApp.currentAccount, which reads your account’s currency and time zone.

Nothing else touches your account. It doesn’t pause, edit, add or remove anything. To send the summary, it uses UrlFetchApp, Google’s standard way for a script to send data to a web address, and the address is ours.

The whole script is about 140 lines, so reading it takes a few minutes. We also hold ourselves to it in code: every change to the script runs through an automated test that lists the calls it’s allowed to make and fails on anything else, so a call that could change an account can’t slip in unnoticed.

The paid Fix plan can make changes, but only the ones you approve, never through this script.

Why Google’s prompt says “make changes”

When you run any script, Google asks you to authorise it “to make changes on your account”. That wording appears for a script that only reads, too. Scripts have no read-only permission, so the prompt can’t tell you what a script will do. Only the code can.

Google’s developer docs add that you can review access you’ve granted on your Google Account’s Security page, under third-party access.

What we keep

Each copy of the script contains a one-time code that works once and expires after 24 hours. From the scan we keep summary numbers for each finding, not your raw ad data. Your report link stops working after 30 days and the results are deleted after 13 months. Email support@spendcanary.com and we’ll delete everything sooner.

How to check any Google Ads script

These steps work for any script, from anyone.

  1. Read it before you run it. If it’s too long or too hard to follow, ask someone you trust to look.
  2. Look for calls that change things: “mutate”, “apply”, “pause”, “remove”, or anything starting with “set”, such as setBudget or setCpc. That’s fine in a script you want to make changes. In one that claims to only read, it’s a red flag.
  3. Find UrlFetchApp and check the web address next to it. You should know and trust the site your data goes to.
  4. Click Preview before Run. Google shows the changes a script would make and its logs, without changing your account.
  5. Check the schedule. A script can run daily, weekly or monthly. Only schedule scripts you understand and want running for the long term.

A quick test for step 2: open the script, press Ctrl+F (Cmd+F on a Mac) and search for “.set” and “mutate”. In ours, both come up empty.

Removing it

Go back to the Scripts page, find the script and remove it. Google’s help also describes disabling one instead, under Options > Disable. Our scan doesn’t need to stay installed after it has run, and fewer old scripts in an account means fewer surprises later. To see what any script, person or tool has changed in your account, use change history; our guide to seeing what your agency changed shows how. And if you’d rather check your account by hand, our Google Ads audit checklist covers most of what the scan checks.

Sources

Common questions

Can a Google Ads script make changes to my account?
Some can. Scripts can read reports, and some can also make changes, like pausing ads or changing bids. Read the code before you run it to see which kind you have.
Why does Google say the script can make changes on my account?
Google asks you to authorize every script to make changes on your account, even one that only reads. The prompt doesn't tell you what a script will do. The code does.
How do I stop a Google Ads script?
Go to the Scripts page in Google Ads, find the script in the list, and remove it. Google's help also describes disabling a script from its Options menu.
What does SpendCanary keep after a scan?
Only summary numbers for each finding, not your raw ad data. Your report link stops working after 30 days, and the results are deleted after 13 months. You can ask us to delete everything sooner by emailing support@spendcanary.com.