🤖chiliad
ClaudeТарифи
Довідковий центрScripts and deployment

How to use different script settings for each account

Keep one Google Ads script but give every client account its own budget, threshold, email or spreadsheet.

The same script rarely fits every client unchanged. One has a 5,000 budget, another 40,000; alerts go to different people; reports go to different sheets. The usual workarounds — a copy of the script per client, or a big lookup table inside the code — are hard to maintain.

Separate the settings from the code

Write the script with its settings as variables at the top:

var MONTHLY_BUDGET = 5000;
var ALERT_EMAIL = "you@example.com";
var SHEET_URL = "";

function main() {
  // use MONTHLY_BUDGET, ALERT_EMAIL and SHEET_URL here
}

The values in the code are the defaults.

Declare the variables

On the script's Variables tab, chiliad lists the settings it detected in your code. Add them, choose a type for each — text, number, boolean, URL or JSON — and save.

Set values per account

On the Accounts tab switch to Configure. You get a table with one row per assigned account and one column per variable.

  • Leave a cell empty to use the default.
  • Type a value to override it for that account.
  • A cell marked as missing has neither, and needs a value before the script can work for that account.

Column menus fill a whole column, copy values from another account or clear all overrides.

What happens at run time

The loader fetches the account's values together with the code and applies them before the script starts. Changes take effect on the next run, with no changes in Google Ads. Every change is recorded under Config changes, with who made it and when.

app.chiliad.io/scripts/budget-pacing-monitor

Budget Pacing Monitor

Увімкнено
СкриптЗмінні (3)ВерсіїІсторіяАкаунти (3)
Призначені акаунти (3)
СписокНалаштування
Призначити акаунту
Пошук акаунтів…Лише без значень1ПеревизначенняЗа замовчуваннямВідсутнє
АкаунтMONTHLY_BUDGETALERT_EMAILSHEET_URL
GrowthLab Store234-567-8901120002you@example.comsheets/…/growthlab
ClickSmart SaaS345-678-90125000saas@clicksmart.io3
AdScale Pro456-789-01232500you@example.comsheets/…/adscale
Зберегти зміни4
  1. 1

    The legend explains the three cell states.

  2. 2

    Override — this account uses its own value.

  3. 3

    Missing — the variable has no default and no value for this account, so the script would run with an empty setting.

  4. 4

    Save changes takes effect on each account's next run. The loader in Google Ads does not change.

Частина посібникаScripts and deployment

Більше на цю тему

  • How to add a script to Google Ads
  • 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 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

Не вдалося розібратися?

Надішліть нам запитання з довідкового центру — ми читаємо кожне повідомлення.

Поставити запитання
🤖chiliad

Платформа для керування й автоматизації скриптів Google Ads у великому масштабі. Створена для PPC-агенцій та фрилансерів.

chiliad — Google Ads Script Management - Monitor and manage Google Ads scripts across every account | Product Hunt

Продукт

  • Сценарії використання
  • Можливості
  • Конектор Claude
  • Тарифи
  • Маркетплейс
  • Блог
  • Про нас
  • Дорожня карта
  • Журнал змін

Підтримка

  • Зв’язатися з нами
  • Довідковий центр
  • Умови користування
  • Політика конфіденційності

© 2026 chiliad. Усі права захищено.