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

+ targetBudget + ' below minimum. Clamping to
Google Verified Fully Automated

Get More Leads & Sales From Google Ads — On Autopilot

AdTurbo is your AI Google Ads agent, built by top Google Ads agency owners. AdTurbo works tirelessly in the background managing your Google Ads to get more leads and sales, while you focus on running your business.

Sign up with Google

7-day free trial. No contracts. Cancel anytime.

+ CONFIG.MINBUDGET);

targetBudget = CONFIG.MINBUDGET;

} else if (targetBudget CONFIG.MAXBUDGET) {

Logger.log('Target budget

Google Verified Fully Automated

Get More Leads & Sales From Google Ads — On Autopilot

AdTurbo is your AI Google Ads agent, built by top Google Ads agency owners. AdTurbo works tirelessly in the background managing your Google Ads to get more leads and sales, while you focus on running your business.

Sign up with Google

7-day free trial. No contracts. Cancel anytime.

+ targetBudget + ' exceeds maximum. Clamping to
Google Verified Fully Automated

Get More Leads & Sales From Google Ads — On Autopilot

AdTurbo is your AI Google Ads agent, built by top Google Ads agency owners. AdTurbo works tirelessly in the background managing your Google Ads to get more leads and sales, while you focus on running your business.

Sign up with Google

7-day free trial. No contracts. Cancel anytime.

+ CONFIG.MAXBUDGET);

targetBudget = CONFIG.MAXBUDGET;

}

targetBudget = Math.round(targetBudget 100) / 100;

// Query the Shared Budget object

const budgetIterator = AdsApp.budgets()

.withCondition("budget.name = '" + CONFIG.SHAREDBUDGETNAME + "'")

.get();

if (!budgetIterator.hasNext()) {

Logger.log('Error: Shared budget named "' + CONFIG.SHAREDBUDGETNAME + '" not found.');

return;

}

const sharedBudget = budgetIterator.next();

const currentAmount = sharedBudget.getAmount();

Logger.log('Day of Week Index: ' + dayOfWeek + ' (' + Utilities.formatDate(today, timeZone, 'EEEE') + ')');

Logger.log('Applied Multiplier: ' + multiplier);

Logger.log('Current Budget:

Google Verified Fully Automated

Get More Leads & Sales From Google Ads — On Autopilot

AdTurbo is your AI Google Ads agent, built by top Google Ads agency owners. AdTurbo works tirelessly in the background managing your Google Ads to get more leads and sales, while you focus on running your business.

Sign up with Google

7-day free trial. No contracts. Cancel anytime.

+ currentAmount);

Logger.log('Target Budget:

Google Verified Fully Automated

Get More Leads & Sales From Google Ads — On Autopilot

AdTurbo is your AI Google Ads agent, built by top Google Ads agency owners. AdTurbo works tirelessly in the background managing your Google Ads to get more leads and sales, while you focus on running your business.

Sign up with Google

7-day free trial. No contracts. Cancel anytime.

+ targetBudget);

if (CONFIG.PREVIEWMODE) {

Logger.log('[PREVIEW MODE] Budget update simulated successfully.');

} else {

if (Math.abs(currentAmount - targetBudget) 0.01) {

sharedBudget.setAmount(targetBudget);

Logger.log('SUCCESS: Shared budget updated to

Google Verified Fully Automated

Get More Leads & Sales From Google Ads — On Autopilot

AdTurbo is your AI Google Ads agent, built by top Google Ads agency owners. AdTurbo works tirelessly in the background managing your Google Ads to get more leads and sales, while you focus on running your business.

Sign up with Google

7-day free trial. No contracts. Cancel anytime.

+ targetBudget);

} else {

Logger.log('Budget already matches target. No change executed.');

}

}

}

Setting Up the Schedule and Authorization

To ensure consistent execution, install and schedule the script inside your Google Ads account:

1. Go to Tools and Settings Bulk Actions Scripts.

2. Click the blue + button to create a new script.

3. Paste the code above into the editor.

4. Update SHAREDBUDGETNAME with the exact name of your shared budget from the Shared Library.

5. Adjust BASEDAILYBUDGET and DAYMULTIPLIERS to reflect your calculated values.

6. Click Authorize to grant the script permission to manage campaign budgets.

7. Run a Preview test to verify that the target calculation and logging function properly.

8. Set the frequency to Daily and choose a run time between 12:00 AM and 1:00 AM in your account's primary time zone.

For a broader system of ongoing optimizations to pair with this script, reference our comprehensive Google Ads optimization checklist.

Safety Guards and Maximum Cap Thresholds

Notice the safety clamp parameters MINBUDGET and MAXBUDGET in the script. These protect your account against script malfunctions, incorrect multiplier entries, or API calculation errors. Never run an unattended budget script without absolute upper and lower boundaries.

---

Day-of-Week Budget Allocation Comparison

Let's examine how traditional static shared budgets compare to our scripted multiplier model and end-to-end algorithmic portfolio management.

Baseline vs. Dynamic Allocation Modeling

| Feature / Attribute | Static Daily Shared Budget | Day-of-Week Script Automation | Advanced AI Budget Agent |

| :--- | :--- | :--- | :--- |

| Allocation Basis | Flat daily distribution | Normalized historical CVR multipliers | Real-time predictive conversion velocity |

| Mid-Day Scalability | Fixed; throttles early on peak days | Expands ceiling on high-intent days | Dynamically injects funds based on intra-day run-rate |

| Implementation Effort | Zero (Default setting) | Low (Single JavaScript script) | Automated integration via software platform |

| Overspend Protection | Google 30.4-day ceiling rule | Script safety bounds + dampeners | Continuous predictive budget pacing |

| Best Suited For | Accounts with 0% day variance | B2B & E-commerce with consistent weekly patterns | High-spend multi-channel enterprise portfolios |

For growing teams evaluating whether to build custom automation infrastructure or leverage dedicated platforms, exploring modern PPC management software can provide a scalable alternative to maintaining complex bespoke codebases.

---

Edge Cases, Pitfalls, and How to Handle Monthly Budget Pacing

While day-of-week budget automation dramatically improves capital efficiency, improper configuration can introduce specific operational risks.

┌─────────────────────────────────────────────────────────────┐

│ CRITICAL PITFALLS │

├─────────────────────────────────────────────────────────────┤

│ 1. The 2x Daily Overspend Multiplier Overlap │

│ - Avoid ramping multipliers 1.4x back-to-back │

│ │

│ 2. Holiday & Promotion Blindness │

│ - Black Friday falling on a low-weight weekday │

│ │

│ 3. Conversion Lag Skewing Attribution │

│ - Evaluating click-time vs conversion-time data │

└─────────────────────────────────────────────────────────────┘

Handling Google's 2x Daily Spend Cap Mechanics

Google Ads allows daily spending to reach up to 200% of your configured daily budget on any individual day, provided the monthly average does not exceed 30.4 times the daily budget. When you programmatically increase a daily budget on Tuesday to $1,500, Google technically has the authorization to spend up to $3,000 on that Tuesday if auction volume spikes.

To prevent aggressive intra-day overspending:

• Keep dampening factors conservative ($D = 0.5$ to $0.7$) so multipliers rarely exceed 1.35x of your base budget.

• Ensure your bidding strategies use Target CPA or Target ROAS constraints rather than unconstrained "Maximize Clicks," which can rapidly spend through widened daily budget limits.

Seasonality, Holidays, and Long Weekends

A static day-of-week script executes deterministically regardless of holidays. For example, if Memorial Day falls on a Monday, a standard B2B script will raise the budget by 20% on a day when business decision-makers are out of the office.

To mitigate this, include a holiday override array in your script:

javascript

const HOLIDAYS = ['2026-05-25', '2026-07-04', '2026-11-26', '2026-12-25'];

const todayStr = Utilities.formatDate(today, timeZone, 'yyyy-MM-dd');

if (HOLIDAYS.indexOf(todayStr) !== -1) {

Logger.log('Holiday detected. Forcing weekend multiplier baseline.');

multiplier = CONFIG.DAYMULTIPLIERS[0]; // Apply Sunday multiplier

}

Preventing Budget Reset Whiplash on Monday Mornings

If your script transitions from a low Sunday allocation ($700) to a high Monday allocation ($1,200) at 12:01 AM, Google's pacing engine may spend aggressively during early morning hours (1:00 AM – 5:00 AM) anticipating a high run rate.

If your analytics show low early-morning conversion rates, use Google Ads Ad Schedules alongside your budget script to restrain bid adjustments during non-performing night hours.

For a structured breakdown of broader account management frameworks, consult our comprehensive guide to PPC campaign management.

---

Scaling Past Scripts: Continuous AI-Driven Budget Optimization

While JavaScript scripts provide a robust solution for regular weekly variance, they remain fundamentally reactive. A script applies historical averages to future actions without understanding real-time market shifts, competitor bidding surges, or inventory changes.

Script Maintenance vs. Machine Learning Adjustments

As account complexity scales across dozens of campaigns and multiple shared pools, maintaining custom scripts across multiple accounts introduces significant technical overhead:

1. Scripts can silently fail if shared budget names are edited in the user interface.

2. Conversion patterns drift seasonally, requiring continuous manual recalculation of multipliers.

3. Scripts do not dynamically reallocate budget between separate shared budget pools or cross-channel campaigns.

Dedicated AI platforms solve this limitation. Solutions like AdTurbo ($149/mo with a 7-day trial; credit card required) continuously analyze multi-dimensional conversion signals, automating cross-campaign budget reallocations and bid adjustments in real time without requiring ongoing script maintenance.

Whether you implement custom Google Ads scripts or deploy specialized optimization software, aligning daily spend with actual conversion rate multipliers is one of the highest-leverage operational improvements you can make to your PPC account.

---

Related Guides

• How Much Do Google Ads Cost? A 2026 Budget Guide

• PPC Campaign Management: A Complete Guide for 2026

• Google Ads Optimization Checklist: 15 Things to Check Every Week

---

Frequently Asked Questions

Will changing my shared budget daily reset the Smart Bidding learning phase?

Minor daily budget adjustments (typically under 20-25%) do not reset the Smart Bidding learning status. Google Ads handles predictable day-of-week budget shifts smoothly without forcing campaigns back into an extensive learning period.

How many weeks of data do I need before calculating day-of-week multipliers?

You should analyze at least 60 to 90 days of conversion data to ensure statistical significance. If your account generates fewer than 50 conversions per week, extend your lookback window to 180 days to avoid skewing multipliers on small sample sizes.

Can I use this script for individual campaign budgets instead of shared budgets?

Yes, but the script query must be modified to iterate through AdsApp.campaigns() instead of AdsApp.budgets(). Using shared budgets is recommended because it simplifies account management and pools liquidity across related campaigns.

What happens to my monthly spend if Google spends 2x the daily budget on peak days?

Google guarantees that your spend will not exceed your daily budget multiplied by 30.4 over a full billing month. Because our script normalizes weekly multipliers to average 1.0, your total monthly spend ceiling remains identical to running a static daily budget.

Google Verified Fully Automated

Get More Leads & Sales From Google Ads — On Autopilot

AdTurbo is your AI Google Ads agent, built by top Google Ads agency owners. AdTurbo works tirelessly in the background managing your Google Ads to get more leads and sales, while you focus on running your business.

Sign up with Google

7-day free trial. No contracts. Cancel anytime.