Data archive (beats 37-month limit)
Keeps your Google Ads history beyond Google's 37-month limit: finished months saved as CSV files in your own Google Drive, automatically.
What it does
- Saves each finished month as a CSV file per dataset: campaigns by day, ad groups by day, keywords, search terms and products by month.
- Works back through your history a few months per run until it reaches the limit you set (up to 37 months).
- Skips months already saved, so it is safe to run every day.
- Keeps a month-to-date file for the current month up to date.
- Saves everything in one Drive folder you own, ready for Sheets, Looker Studio or BigQuery.
How it changes your account
It does not change your account. It only reads reporting data and writes CSV files to your Google Drive.
Smart Bidding
Useful with any bid strategy. Year-on-year and seasonal comparisons need history; this keeps it after Google deletes the detail.
Settings explained
- Data to archive
Campaigns by day and search terms by month cover most needs.
- Months of history to save
Up to 37, the most Google keeps.
- Files per run
Lower it if runs time out on a big account.
- Keep a month-to-date file updated
Handy for live dashboards.
- Drive folder name
Each account gets its own folder.
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.
Preview once to authorise Drive and email. Schedule it Daily.
Questions
What is the 37-month limit?
Google Ads keeps detailed reporting data for 37 months. Older detail is no longer available, so anything you want to keep must be saved before then.
How long does the first backfill take?
At 4 files a day, two datasets over 36 months take about 18 days. Raise files per run on smaller accounts to finish sooner.
Can I put the files in BigQuery?
Yes. The CSVs have a header row and consistent columns, so they load straight into BigQuery or Looker Studio.
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.