Google Ads Script: Day-of-Week Shared Budget Adjuster
Learn how to use a Google Ads script to auto-adjust daily shared budgets using day-of-week conversion rate multipliers to cut wasted spend.
By AdTurbo Team · 2026-09-04
Most Google Ads accounts operate on a rigid budgeting assumption: that Monday is worth the same dollar amount as Saturday. Media buyers set a daily account or shared budget, let Google distribute it uniformly across thirty days, and hope that automated bidding manages intra-week efficiency fluctuations. In high-velocity lead generation and e-commerce accounts, this static setup leaks capital.
Conversion rates, average order values, and lead-to-close velocities fluctuate sharply across different days of the week. While Smart Bidding adjusts bids in real time for individual auctions, it cannot expand your total daily shared budget pool when high-intent search volume spikes on peak days—nor can it contract your daily budget floor when weekend conversion rates plummet. When a high-converting Tuesday hits its shared budget cap at 2:00 PM, your campaigns go dark precisely when your returns would be highest.
Implementing a custom shared budget day of week script google ads automation allows you to programmatically weight daily budget allocations against historical conversion rate multipliers. This guide covers the mathematical framework, script architecture, pacing mechanics, and step-by-step implementation for auto-adjusting shared budgets across your account.
---
The Core Problem: Static Shared Budgets in a Dynamic Conversion Reality
Shared budgets allow multiple Google Ads campaigns to draw from a centralized pool of daily spend. This is ideal for portfolio bid strategies, thematic campaign clusters, or geographically split campaigns where individual budget management causes artificial delivery constraints. However, assigning a flat daily shared budget fails to account for cyclical customer purchasing behavior.
Why Equal Daily Allocations Waste Ad Spend
Consider a B2B SaaS account with an overall shared budget of $7,000 per week ($1,000 per day) across four search campaigns. Historically, enterprise buyers evaluate software between Tuesday and Thursday. The conversion rate (CVR) on Tuesday sits at 4.8%, while Sunday drops to 1.1%.
Under a static $1,000 daily budget:
1. On Tuesday, search volume surges. The campaign hits its $1,000 shared cap by early afternoon, triggering "Limited by Budget" status. High-intent prospects searching between 3:00 PM and 8:00 PM are lost to competitors.
2. On Sunday, search intent is conversational and informational. The campaigns consume the $1,000 allocation at a 1.1% CVR, driving up the blended Cost Per Acquisition (CPA).
Even though Google's algorithms can spend up to 2x the daily budget on any given day, the system balances spend across a 30.4-day billing cycle. It does not deliberately align maximum capital availability with peak day-of-week conversion velocity. Manual adjustments are too slow and introduce human error. An automated budget shift high conversion days framework solves this mismatch.
The Mathematical Reality of Day-of-Week Conversion Variance
Day-of-week variance is not random noise; in most verticals, it represents structural human routines. In B2B, purchasing follows office schedules; in direct-to-consumer (D2C) retail, impulse purchases peak on Friday evenings and payday weekends. If your Monday-through-Wednesday conversion rate is 35% higher than your weekend baseline, your budget distribution should mathematically mirror that 35% premium.
Understanding your baseline numbers is critical before applying automation. You can review our detailed breakdown on how much do Google Ads cost to assess baseline spend mechanics across different industry verticals.
---
Understanding Shared Budgets vs. Individual Campaign Budgets
Before deploying automation, you must understand how Google Ads processes shared budgets under the hood compared to individual campaign caps.
How Shared Budgets Distribute Spend Across Campaigns
A shared budget in Google Ads acts as a single liquidity pool managed at the account library level (Budgets in the Shared Library). When Campaign A exhausts its historical run-rate demand, unused funds immediately flow to Campaign B or Campaign C without manual reallocation.
[ Account Shared Budget Pool: $1,500/day ]
│ │ │
▼ ▼ ▼
┌──────────────┐┌──────────────┐┌──────────────┐
│ Campaign A ││ Campaign B ││ Campaign C │
│ High Demand ││ Med Demand ││ Low Demand │
│ Consumes $900││ Consumes $450││ Consumes $150│
└──────────────┘└──────────────┘└──────────────┘
When you adjust a shared budget via script or API, every campaign linked to that shared budget ID inherits the updated daily threshold simultaneously. This makes shared budgets significantly more powerful for script-based automation than iterating through fifty individual campaign objects.
Why Google's Built-In Bidding Fails to Fix Budget Starvation
Smart Bidding algorithms (Target CPA, Target ROAS, Maximize Conversions) operate at the auction level by modifying the bid for each individual query based on context signals. However, Smart Bidding operates downstream of your daily budget cap. If the shared budget runs out, the auction engine stops running ads regardless of how confident the bid algorithm is in an upcoming query's conversion probability.
By uniting macro budget shifting (adjusting the total spend ceiling per day) with micro Smart Bidding (optimizing individual keyword bids), you eliminate the daily budget bottleneck on your most lucrative days.
---
How to Calculate Your Day-of-Week Conversion Rate Multipliers
Before running any automated script, you need to calculate historical baseline multipliers using your actual performance data.
Extracting 90-Day Performance Data from Google Ads
To calculate stable, statistically significant day-of-week weights, pull at least 60 to 90 days of conversion data (or longer if your volume is low). Follow these steps:
1. In the Google Ads dashboard, navigate to Reports Pre-defined reports (Dimensions) Time Day of the week.
2. Set the date range to the last 90 days (exclude the last 7 days to avoid conversion lag distortions).
3. Add the following columns: Impressions, Clicks, Cost, Conversions, Conversion Rate (CVR), and Cost / Conv. (CPA).
4. Export the data to a spreadsheet.
The Normalized Multiplier Formula
To prevent overspending or underspending your target monthly budget, the weekly multipliers must be normalized so their arithmetic mean equals 1.00 (or their sum equals 7.00).
Here is the step-by-step mathematical model:
1. Calculate the Overall Mean CVR:
$\text{Mean CVR} = \frac{\text{Total Conversions Across All Days}},{\text{Total Clicks Across All Days}}$
2. Calculate the Raw Day Multiplier ($M{\text{raw}}$):
$M{\text{raw}}(d) = \frac{\text{CVR}(d)},{\text{Mean CVR}}$
(Where $d$ represents the specific day of the week, e.g., Monday)
3. Apply a Dampening Factor ($D$):
Raw multipliers can sometimes swing too wildly (e.g., 0.40 on Sunday to 1.80 on Tuesday). A dampening factor (typically between 0.50 and 0.80) keeps the adjustments controlled:
$M{\text{damped}}(d) = 1.0 + \left((M{\text{raw}}(d) - 1.0) \times D\right)$
4. Normalize to Sum to 7.00:
$M{\text{final}}(d) = M{\text{damped}}(d) \times \left(\frac{7.0},{\sum{i=1}^{7} M{\text{damped}}(i)}\right)$
Worked Example Calculation Table
| Day of Week | Historical CVR | Raw Multiplier ($M{\text{raw}}$) | Damped (D=0.6) | Normalized Multiplier ($M{\text{final}}$) | Adjusted Daily Budget ($1,000 Base) |
| :--- | :--- | :--- | :--- | :--- | :--- |
| Monday | 3.60% | 1.200 | 1.120 | 1.118 | $1,118.00 |
| Tuesday | 4.20% | 1.400 | 1.240 | 1.238 | $1,238.00 |
| Wednesday | 3.90% | 1.300 | 1.180 | 1.178 | $1,178.00 |
| Thursday | 3.30% | 1.100 | 1.060 | 1.058 | $1,058.00 |
| Friday | 2.70% | 0.900 | 0.940 | 0.938 | $938.00 |
| Saturday | 1.80% | 0.600 | 0.760 | 0.758 | $758.00 |
| Sunday | 1.50% | 0.500 | 0.700 | 0.712 | $712.00 |
| Total / Avg | 3.00% | 1.000 | 7.000 | 7.000 | $7,000.00 / wk |
Notice that the weekly sum remains exactly $7,000.00, meaning your monthly budget pacing remains completely neutral while channeling capital to Tuesday and Wednesday.
Dealing with Lead Lag and Conversion Windows
If your sales cycle has a 7-day conversion lag (e.g., users click on Monday but convert the following Sunday), attribution models in Google Ads may backdate the conversion to Monday. Ensure you run your analysis using Conversions by conversion time vs. Conversions (click time) to establish whether users are interacting on Monday or simply closing on Monday. Multipliers should prioritize days with high click-intent that lead to closed revenue.
---
Step-by-Step Google Ads Script: Automated Shared Budget Allocation
Below is a battle-tested, modular Google Ads script that automatically fetches a specified shared budget, detects the current day of the week, calculates the adjusted target based on your multipliers, and updates the shared budget daily.
The Complete JavaScript Code for Shared Budgets
javascript
/
• Google Ads Script: Auto-Adjust Daily Shared Budget Based on Day-of-Week Multipliers
• Target Entity: Shared Budgets (BudgetOrder / Account Shared Budgets)
/
const CONFIG = {
// Name of the Shared Budget in your Google Ads Shared Library
SHAREDBUDGETNAME: 'Core Search Portfolio Shared Budget',
// Base average daily budget target (Total Weekly Budget / 7)
BASEDAILYBUDGET: 1000.00,
// Normalized multipliers for each day of the week (must average ~1.0)
// Index 0 = Sunday, 1 = Monday, 2 = Tuesday, ..., 6 = Saturday
DAYMULTIPLIERS: {
0: 0.712, // Sunday
1: 1.118, // Monday
2: 1.238, // Tuesday
3: 1.178, // Wednesday
4: 1.058, // Thursday
5: 0.938, // Friday
6: 0.758 // Saturday
},
// Safety limits to prevent runaway script executions
MINBUDGET: 200.00,
MAXBUDGET: 3000.00,
// Set to true to test changes in logs without modifying live budgets
PREVIEWMODE: false
};
function main() {
const today = new Date();
// Get timezone-adjusted day of week (0-6)
const timeZone = AdsApp.currentAccount().getTimeZone();
const formattedDate = Utilities.formatDate(today, timeZone, 'u'); // 1 (Mon) - 7 (Sun)
// Convert standard ISO day of week to JS Date indexing (0 = Sun, 1 = Mon, ..., 6 = Sat)
const dayOfWeek = (parseInt(formattedDate, 10) % 7);
const multiplier = CONFIG.DAYMULTIPLIERS[dayOfWeek];
if (multiplier === undefined) {
Logger.log('Error: Multiplier not defined for day index ' + dayOfWeek);
return;
}
let targetBudget = CONFIG.BASEDAILYBUDGET multiplier;
// Clamp target budget within safety guardrails
if (targetBudget < CONFIG.MINBUDGET) {
Logger.log('Target budget