Log in / Create free account🌐 ES☀️

Intermediate training · Module 10 — Scripts I — what they are, what they solve and how to install the Suite

What a Google Ads script is: a program that lives inside your account

⏱️ 9 min read · 🥷 Scripts · updated on 2026-09-02

🎧 Listen to the lesson · ≈ 4 min🔒 Subscribers only

In short: a script is JavaScript that Google runs inside your own account, with your permissions: it reads any report, writes changes, fills spreadsheets and sends emails. It has clear limits (30 minutes per run, once an hour) and you don't need to code to use one. Scripts fill the gap Google leaves: watching, cleaning, excluding, cross-checking and alerting.

The same sentence has come up throughout this whole course: "a script does this every night". This last module of the Intermediate level explains exactly what that is, what it can do and how you put one to work in an account — without writing a line of code.

What is a Google Ads script?

A Google Ads script is a JavaScript program that you paste into Tools and settings → Bulk actions → Scripts and that Google runs for you, inside your account, with your user's permissions. It does not run on your computer or on an external server: it runs on Google's infrastructure, with direct access to campaigns, ad groups, keywords, ads, reports, budgets and bids… and to Google Sheets and email.

Think of it as an employee who logs into the account every night with a list of precise instructions, reads the reports, makes decisions according to rules, writes the outcome into a spreadsheet and emails you if there is anything you need to see.

What can a Google Ads script do?

Read Write Communicate
Any report (GAQL): search terms, placements, hour-of-day performance, auction data… Pause/enable campaigns, ad groups, keywords, ads Write to Google Sheets (dashboards, history)
The account's full structure Change budgets, bids and bidding strategy targets Send emails (alerts, reports)
The state of conversions, quality, IS Add/remove negatives, placement exclusions, audiences Call external services (APIs, AI)
Historical metrics by day Create campaigns, ad groups, ads, keywords Read configuration sheets that you edit

What can't a script do?

How do you install and schedule a script?

  1. Tools and settings → Bulk actions → Scripts → +: you paste the code and give it a name.
  2. Authorise: Google asks for permission for the script to act in the account (and in sheets/email if it uses them). You grant it with your user.
  3. Preview: it runs without applying changes, leaving a log of what it would have done. That is how you test.
  4. Run it manually, or schedule it: hourly, daily at a set time, weekly, monthly.
  5. Logs: every run leaves a log of what it did and any errors. The account's change history flags whatever the script did.

What is the difference between an account script and an MCC script?

Why are scripts worth using?

Google automates what suits Google (bids, combinations, splitting across networks) and leaves unautomated what suits you: watching, cleaning, excluding, cross-referencing data with your business, alerting. Scripts are the only tool that fills that gap with first-hand access to the account, without paying for an external platform or handing credentials to a third party, and with the power of a full programming language. In the hands of someone who can write them, they are the cheapest multiplier there is; for those who do not program, there are ready-written suites.

💡 Ninja trick: the whole Ninja Scripts Suite is made of Google Ads scripts: each one reads what the interface hides, applies rules that you configure in a spreadsheet, writes the results into that spreadsheet and alerts you by email. They run in your account (or in the MCC) as your user, and nothing they do leaves Google except what you choose to send to an external service (the AI, for example). The next lessons explain what each one solves and how they are installed.

What you should remember

📎 Sources and further reading

⚠️ Free training with no support. Ninja Scripts support channels (email and Telegram) are only for the use of the scripts, not for Google Ads questions or questions about this training.

Pick up here

After →What the scripts solve: the problem → script map of the whole courseScripts I — what they are, what they solve and how to install the SuiteRelacionadaAI Max Analyzer in practice: install it, read the verdict and actAI Max — the black box of automatic Search expansionRelacionadaAnatomy of a GAQL query: clauses, operators, dates, micros and the rules that get you rejectedGAQL and the API — reading what the interface does not showRelacionadaAnomalies, currencies and safety: keeping the judge from doing harmSmart Bidding II — portfolios, cross-mode, the judge and anomaliesRelacionadaAPI versus scripts: where each automation should liveGAQL and the API — reading what the interface does not show

Ver el temario completo

🎓
You're reading the Ninja Academy in the open

Create your free account (no card) to save your progress, take the graded quizzes, earn the Basic level certificate and unlock part of the Intermediate and Advanced training.

Create my free account →
🥷

Subscriber feature

This option is part of the Ninja Scripts Suite subscription.

See the subscription →