Profit (POAS) target setter
Sets each campaign's target ROAS from its real margin, so Smart Bidding chases profit instead of revenue.
What it does
- Works out the ROAS each campaign needs to cover cost of goods and keep your chosen profit: 1 / (margin - profit share).
- Compares that with the campaign's current target ROAS.
- Steps the target towards it, never more than your step limit per change and only after your gap between changes.
- Logs every change with the maths, and emails a summary.
How it changes your account
It changes target ROAS on standard (non-portfolio) campaigns only, in capped steps. Budgets, bids and portfolio strategies are not touched.
Smart Bidding
Built for Smart Bidding. It changes the target, which bidding respects, in small steps spaced apart so learning is protected.
Settings explained
- Campaigns
Campaigns with a target ROAS. Portfolio strategies are left alone.
- Gross margin for campaigns not listed
Revenue minus cost of goods, as a share of revenue.
- Margins by campaign
One per line: campaign name text | margin %. For example "skincare | 62".
- Profit to keep after ad spend
Share of revenue left after cost of goods and ads. 0 means break-even on ads.
- Most a target can move per change
Smaller steps protect Smart Bidding learning.
- Days between changes to a campaign
Give bidding time to settle.
- 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 weekly.
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 Weekly.
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
How is the target worked out?
With a 40% margin and 10% profit after ads, ad spend can be 30% of revenue, so the target ROAS is 1 / 0.30 = 333%.
What if a margin is lower than the profit I want?
That campaign cannot hit the profit target on ads, so it is flagged and left unchanged.
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.