Year-on-year comparison
Puts this period next to the same period last year, weekdays lined up, for the account and every campaign.
What it does
- Works out the matching period last year, shifted 364 days so Mondays compare with Mondays.
- Compares cost, clicks, conversions, CPA, value and ROAS for the account.
- Does the same for each campaign that ran in either period.
- Writes both to a Google Sheet and emails the account summary.
How it changes your account
It does not change your account. It reads performance data and writes a report.
Smart Bidding
Works with any bid strategy. Year-on-year shows whether a change is seasonal before you react to it.
Settings explained
- Compare
Last year's dates are shifted by 364 days so weekdays line up.
- Email alerts to
Weekly year-on-year email. Leave blank to use the Sheet only.
- 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.
Questions
What about data older than 37 months?
Google keeps daily data for 37 months, so year-on-year always works. For longer history, use the data archive script.
Why 364 days, not a calendar year?
So weekdays line up; a Saturday-heavy period compares with a Saturday-heavy period.
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.