Intraday Budget Reallocation: Scale Campaigns on High POAS
Learn how to build an automated intraday budget reallocation script in Google Ads when real-time POAS beats your target by 30%. Step-by-step code and rules.
By AdTurbo Team · 2026-11-30
Most e-commerce brands set static daily budgets inside Google Ads, review them the following morning, and realize they ran out of gas at 2:00 PM on a day when order profitability was surging. Alternatively, they let underperforming campaigns burn through precious ad spend during unexpected conversion slumps.
Running high-efficiency campaigns requires moving past passive daily pacing. If your Profit on Ad Spend (POAS)—the true gross profit divided by ad spend—beats your target by 30% or more by midday, keeping a rigid budget cap leaves money on the table. To capture peak demand during high-margin trading hours, you need an automated intraday budget reallocation script.
This guide breaks down how to architect, test, and deploy automated budget management that shifts capital across campaigns in real time based on bottom-line profit signals.
---
Understanding Intraday POAS vs. Standard ROAS
Before automating intraday budget shifts, you must establish why Return on Ad Spend (ROAS) is an inadequate trigger for real-time scaling.
The ROAS Mirage in High-Volume Accounts
ROAS calculates top-line revenue divided by ad spend ($Revenue / $Spend$). If Campaign A generates $5,000 in revenue on $1,000 spend, it delivers a 500% ROAS (a 5.0x multiple). However, if that campaign pushed discounted or clearance inventory with a 15% gross margin, your gross profit before ad spend is just $750. After subtracting the $1,000 ad spend, your account actually lost $250.
Scaling a budget intraday based on high ROAS can inadvertently accelerate cash burn if the underlying product mix carries razor-thin unit margins.
The Mechanics of Intraday POAS
Profit on Ad Spend measures real gross profit relative to marketing investment:
$\text{POAS} = \frac{\text{Gross Profit}},{\text{Ad Spend}} = \frac{\text{Net Revenue} - \text{COGS}},{\text{Ad Spend}}$
When calculating intraday POAS, you account for:
• Net product sales recorded from midnight to the current hour (accounting for discounts and estimated return allowances).
• Cost of Goods Sold (COGS) mapped via your product catalog feed or custom order webhooks.
• Live, accrued Google Ads spend pulled directly via API or script endpoints.
If your baseline target POAS is 1.40 (generating $1.40 in gross profit for every $1.00 spent on advertising), beating that target by 30% means reaching an intraday threshold of 1.82 ($1.40 \times 1.30$). If Campaign A hits a 2.10 POAS by 1:00 PM with substantial headroom remaining in the search auction, dynamic budget shifting from lower-efficiency campaigns allows you to harvest profit without inflating total daily company burn.
---
The Architecture of Dynamic Budget Shifting
Automating your budget adjustments intraday is not as simple as checking standard Google Ads conversion figures every 60 minutes. Standard conversion tracking suffers from conversion lag, delayed attribution pings, and third-party data latency.
[E-Commerce CRM / ERP (COGS + Orders)]
│
▼
[Central Data Store (BigQuery / Cloud SQL / Sheet)]
▲
│
[Google Ads Intraday Spend (Hourly API / Script Pings)]
│
▼
[Decision Engine: Evaluates Hourly POAS Against Target + 30%]
│
┌────────┴────────┐
▼ ▼
[Scale Outperforming], [Siphon Underperforming]
Budget += Delta Budget -= Delta
1. The Real-Time Gross Margin Feed
To calculate real-time POAS throughout the day, the script needs order data synced directly from your e-commerce store (Shopify, BigCommerce, WooCommerce, or your internal ERP) where individual item margins are already calculated. A simple cloud webhook or automated middleware pushes hourly net profit aggregated by campaign tag into a centralized Google Sheet or BigQuery table.
2. Spend Polling via Google Ads Scripts
Google Ads Scripts execute directly within your account container. Every hour, the script queries campaign-level intraday spend using Google Ads Query Language (GAQL) with the segments.hour breakdown or standard today-so-far date filters.
3. The Pacing and Reallocation Logic
The script cross-references the live spend with the corresponding gross profit. When an eligible campaign hits the target threshold ($POAS \ge \text{Target} \times 1.30$) and has already consumed at least 40% of its current daily allocation, the script dynamically increases its daily budget. Conversely, it checks secondary campaigns lagging below threshold ($POAS < 1.0$) and lowers their budgets to preserve overall account parity.
To discover broader ways to streamline account routines without sacrificing control, review our guide on Google Ads automation.
---
The POAS Threshold Decision Matrix
When writing automated scripts to govern ad spend, guardrails are essential. The script cannot simply raise budgets indefinitely whenever a single conversion spikes hourly margin. You must define clear status conditions before executing budget updates.
| Condition / Metric | Threshold Value | System Action | Rationale | Minimum Spend Required |
| :--- | :--- | :--- | :--- | :--- |
| Surge Scaling | POAS $\ge$ Target $\times 1.30$ | Increase budget by +20% | High conversion momentum with outsized unit margin | $\ge$ $150 or $\ge$ 5 conversions |
| Aggressive Breakout | POAS $\ge$ Target $\times 1.60$ | Increase budget by +35% | High demand day; clear profit surplus | $\ge$ $300 or $\ge$ 10 conversions |
| Neutral Pacing | POAS within $\pm 10\%$ of Target | Maintain budget | Campaign operating within expected unit economics | N/A |
| Soft Trimming | POAS between 0.80 and Target $\times 0.90$ | Reduce budget by -15% | Moderate leakage; redistribute spend to surge campaigns | $\ge$ $100 |
| Hard Throttle | POAS
lt; 0.80$ & Spend $ 50\%$ of cap | Cap or reduce budget by -30% | Deep margin erosion; protect daily cash position | $\ge$ $200 |Protecting Smart Bidding Algorithms
Google Ads accounts using Target ROAS (tROAS) or Maximize Conversion Value can become volatile if daily budgets fluctuate erratically. Making a 200% budget increase in a single leap resets campaign learning thresholds and can cause bid models to overbid in auctions. A safe, production-grade strategy limits single intraday shifts to 15%–35% increments, running no more than twice per day on any single campaign.
For a deeper audit of baseline account performance prior to deploying automated scripts, consult our comprehensive PPC audit checklist.
---
Building the Automated Intraday Reallocation Script
Below is a battle-tested Google Ads Script structure designed to pull hourly performance data, compute actual POAS against a dynamic target, and adjust campaign budgets in real time.
Step 1: Connecting Profit Data via Google Sheets
Because the native Google Ads API does not ingest real-time COGS data without Custom Offline Conversions or Merchant Center Profit feeds, this script reads live campaign gross margins from an external Google Sheet updated via Zapier, Make, or custom server-side webhooks.
Ensure your Google Sheet has three columns on Sheet1:
1. CampaignName (String)
2. TodayGrossProfit (Float)
3. TargetPOAS (Float)
Step 2: The Production Script Code
javascript
/
• Dynamic Intraday POAS Budget Reallocator
• AdTurbo Automation Framework
/
var CONFIG = {
SPREADSHEETURL: 'https://docs.google.com/spreadsheets/d/YOURSHEETIDHERE/edit',
SHEETNAME: 'Sheet1',
MINSPENDTHRESHOLD: 100.0, // Minimum spend before evaluating POAS
SURGEMULTIPLIER: 1.30, // 30% above target POAS
SCALEUPPERCENT: 0.20, // Scale budget by +20%
THROTTLEPERCENT: 0.15, // Reduce budget by -15%
MAXDAILYBUDGET: 2500.0, // Account safety ceiling per campaign
MINDAILYBUDGET: 50.0, // Safety floor per campaign
LABELNAME: 'AutoPoasManaged'
};
function main() {
var profitData = loadProfitData();
var campaignIterator = AdsApp.campaigns()
.withCondition('Status = ENABLED')
.withCondition('LabelNames CONTAINSANY ["' + CONFIG.LABELNAME + '"]')
.get();
while (campaignIterator.hasNext()) {
var campaign = campaignIterator.next();
var campaignName = campaign.getName();
if (!profitData[campaignName]) {
Logger.log('Skipping ' + campaignName + ': No profit mapping found.');
continue;
}
var stats = campaign.getStatsFor('TODAY');
var spendToday = stats.getCost();
if (spendToday < CONFIG.MINSPENDTHRESHOLD) {
Logger.log('Skipping ' + campaignName + ': Spend (