Portfolio budget reallocator
Shares a fixed daily budget between campaigns, moving money a little each day from the ones missing target to the ones beating it.
What it does
- Scores each campaign on CPA or ROAS over the period you choose.
- Takes budget from campaigns missing target and gives it to campaigns beating it, never moving more than your daily limit.
- Keeps the total the same (or at the envelope you set), and respects floors, ceilings and protected campaigns.
- Logs every move to a Google Sheet and sends a short summary.
How it changes your account
It changes campaign daily budgets only, within your floors, ceilings and daily move limit. Campaigns on shared budgets are skipped.
Smart Bidding
Works with Smart Bidding. Budgets are a lever Smart Bidding respects, and moving at most 10% a day avoids the big swings that reset learning.
Settings explained
- Campaigns
Campaigns that share one envelope. Campaigns on shared budgets are left alone.
- Days of data
How many full days of data to look at, ending yesterday.
- Judge campaigns on
Cost per conversion or return on ad spend over the days above.
- Target
CPA in account currency, or ROAS as a ratio (4 means 400%).
- Minimum conversions to judge a campaign
Campaigns with fewer conversions over the period keep their budget.
- Total daily budget
The combined daily budget to share out. 0 keeps today's total.
- Most of the total to move in a day
Small daily moves protect Smart Bidding learning.
- Lowest daily budget per campaign
No campaign is cut below this.
- Highest daily budget per campaign
No campaign is raised above this.
- Never reduce campaigns containing
One per line, e.g. brand or a new launch. These can gain budget but never lose it.
- Alerts only (recommended for the first week)
While this is on, the script only logs and emails what it would change. Nothing in your account changes. Turn it off once you are happy with what it reports.
- Email alerts to
Where alerts and summaries go. Separate several addresses with commas. Leave blank to log only.
- Slack webhook URL (optional, stays in your browser)
Paste a Slack incoming webhook URL to get the same alerts in a channel. It is added to your copy of the script on your device and never sent to us.
- Google Sheet name
The script keeps its working data in a Google Sheet with this exact name in your Drive, and creates it on the first run.
Install in two minutes
- In Google Ads, go to Tools, then Bulk actions, then Scripts.
- Click the plus button and name your script.
- Delete the sample code, paste yours and click Authorise.
- Click Preview and check the log. Nothing changes in Preview.
- Click Save and set it to run daily.
In Google Ads, go to Tools > Bulk actions > Scripts, add a new script, paste the code and click Authorise. Then click Preview and read the log before anything runs for real.
Schedule it Daily.
It starts with Alerts only on. Leave it on for a week, check the emails, then turn it off and copy the script again.
Questions
Will new campaigns get starved?
No. Campaigns with fewer conversions than your minimum keep their budget, and anything you list as protected is never reduced.
Does the total spend change?
No, unless you set a new total. The script only redistributes the same daily amount.
Will it change my account straight away?
No. Alerts only is on by default, so the first runs only report what would change. You turn it off when you are happy.
Changelog
- 1.0.0 27 Nov 2026 Improvement
- First release in the Invincible Google Ads scripts library.
Scripts are provided as is. You're responsible for previewing, testing and monitoring them in your account. Scripts Terms of Use.