πŸ€–chiliad
ClaudePricing
Help CenterScripts and deployment

How to add a script to Google Ads

Step-by-step: where scripts live in Google Ads, how to paste, authorize, preview and schedule one.

Adding a script takes a few minutes, whether you paste a full script or a chiliad loader.

Steps

  1. In Google Ads, open Tools β†’ Bulk actions β†’ Scripts.
  2. Click the plus button to create a new script and give it a name you will recognize later.
  3. Delete the placeholder code and paste yours.
  4. Click Authorize and approve the permissions with your Google login. The script will act as you.
  5. Click Preview. The script runs without applying changes to the account, and the Changes and Logs tabs show what it would do.
  6. If the preview looks right, save, and set the Frequency on the scripts list β€” for example daily at 6 am.

Client account or manager account?

  • Paste into a client account to run the script for that account only.
  • Paste into a manager account to run it across client accounts in one go. The script, or its loader, decides which accounts.

With chiliad

You paste the loader rather than the script itself. Copy it from the script's setup wizard, from the Loader view of the editor, or with Get Loader on the Accounts tab. The loader is the same for every account, and you never need to edit it: code and settings are managed in chiliad from then on.

Common snags

  • "Authorization required" β€” click Authorize again; it is needed once per script and again if the script starts using a new Google service.
  • Nothing in the logs β€” the script has no main() function, or it finished without logging anything.
  • Preview shows no changes β€” reporting and alerting scripts make none; check the logs instead.
app.chiliad.io

Loader in chiliad 1

/**
 * Budget Pacing Monitor β€” chiliad loader
 */
function main() {
  if (typeof AdsManagerApp !== 'undefined') {
    var ids = chiliadAssignedAccounts();
    AdsManagerApp.accounts().withIds(ids)
      .executeInParallel('budgetPacingMonitor');
  } else {
    budgetPacingMonitor();
  }
}
Copy to ClipboardDownload .js
ads.google.com/aw/bulk/scripts

New script in Google Ads 2

chiliad Β· Budget Pacing Monitor

function main() {

…

}

AuthorizePreviewRunFrequency: Daily3
  1. 1

    Copy or download the loader in chiliad.

  2. 2

    Paste it as a new script in Google Ads β€” in a client account, or in the manager account to cover many clients at once.

  3. 3

    Authorize once, preview, then schedule. The schedule is always set in Google Ads.

Part of the guideScripts and deployment

More on this topic

  • 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
  • How to send email alerts 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.