Lead quality bidder
Lets campaigns whose leads actually become customers spend more per lead, and reins in the ones that bring tyre-kickers.
What it does
- Reads lead outcomes from a CRM export in Google Sheets.
- Matches each lead to its campaign by the Campaign column, or by its Google click ID.
- Works out each campaign's close rate against the account average.
- Raises target CPA where leads close more often and lowers it where they close less, by no more than your step.
How it changes your account
It changes target CPA on standard (non-portfolio) campaigns, within your weekly step. Nothing else changes.
Smart Bidding
Built for Smart Bidding. For the strongest result, also upload closed leads as offline conversions so bidding learns from them directly.
Settings explained
- CRM export Google Sheet URL
One row per lead with these headers in row 1: GCLID, Campaign (optional), Stage, Date. Most CRMs, including HubSpot, can sync to a Google Sheet.
- Stages that count as closed
One stage name per line, exactly as in your CRM.
- Days of data
Days of leads to judge, by lead date.
- Minimum leads per campaign
Campaigns with fewer leads keep their target.
- Most a target CPA moves per week
- 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 are leads matched to campaigns?
By the Campaign column if your CRM records it (for example from UTM tags). Otherwise by GCLID, looked up in Google Ads click data for the last 90 days.
Why not just upload offline conversions?
You should do both. This changes targets quickly while bidding is still learning from uploaded outcomes.
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.