Carbon Intelligence™
Google Ads Export Guide
GMSF v1.2
Google Ads
5 min install
Objective
This script automatically exports your Google Ads campaign data with the granularity needed for GMSF v1.2 carbon analysis in Carbon Intelligence™.
Installation
3 steps · 5 minutes
Create the destination Google Sheet
- Go to sheets.new
- Rename the file:
CI_Export_GoogleAds_[ClientName] - Copy the Sheet URL
Install the script
- Log in to Google Ads
- Go to Tools and Settings → Bulk Actions → Scripts
- Click + (New script)
- Name the script:
Carbon Intelligence Export - Paste the content of
carbon-intelligence-google-ads-export.js - Replace
COLLER_URL_GOOGLE_SHEET_ICIwith your Google Sheet URL - Click Authorize then Run
Schedule execution
- After the first successful run, click Create a schedule
- Select Weekly (Monday morning recommended)
- The script will run automatically every week
What is exported
10 tabs created automatically
| Tab | Content | Usage Carbon Intelligence |
|---|---|---|
| CI_Campaigns | Summary by campaign and week | Emissions overview |
| CI_Device | By device (mobile, desktop, tablet) | Energy factor per device |
| CI_Geo | By country and region | GMSF v1.2 country energy mix |
| CI_Placements | By site and application | Energy-intensive placements |
| CI_CreativeSize | By creative size | Data transfer weight |
| CI_AdFormat | By format (Search, Display, Video) | Ad format factor |
| CI_Video | Detailed video data | Video carbon calculation (duration, quartiles) |
| CI_Metadata | Account and export information | Traceability and audit |
| CI_Diagnostic | Individual query tests | Problem identification |
| CI_Export_CSV | All dimensions consolidated | Direct CI platform import |
Export CSV
Two options available
Option A — From Google Sheets
- Go to the CI_Export_CSV tab
- File → Download → CSV (.csv)
Option B — Via the script
- Change the function to
exportToCSV - Run — a CSV file will be created in your Google Drive
- The file link appears in the logs
Sharing with Carbon Intelligence™
Uncovered dimensions
| Dimension | Why | Alternative |
|---|---|---|
| Connection type (WiFi/4G/5G) | Not available in Google Ads | Available via DV360 or TTD |
| Exchange (SSP) | Google Ads = walled garden | Available via DV360 or TTD |
| Buy mode (Open/PMP) | Specific to open programmatic | Available via DV360 or TTD |
| Creative weight (KB) | Not reported by Google Ads | GMSF estimation by format type |
| Active View / Viewability | Being sunset by Google | Metrics removed in v1.2.0 |
If you use DV360 or another DSP, contact us for a dedicated script.
Advanced Configuration
Script CONFIG section
// In the script, CONFIG section:
LOOKBACK_DAYS: 90, // Days of history (default: 90)
MIN_IMPRESSIONS: 1, // Minimum impression threshold per row
INCLUDE_PAUSED: true // Include paused campaigns (recommended)
LOOKBACK_DAYS: 90, // Days of history (default: 90)
MIN_IMPRESSIONS: 1, // Minimum impression threshold per row
INCLUDE_PAUSED: true // Include paused campaigns (recommended)
Diagnostic
Built-in diagnostic function
- In Google Ads > Scripts, open the script
- In the dropdown next to Run, select diagnose
- Click Run
- Open the Google Sheet and go to the CI_Diagnostic tab
The diagnostic tests: account access, each query type individually, active/paused campaign count, data availability per type (Device, Geo, Placements, Video...). Each test is color-coded: green (OK), yellow (empty but normal), red (error). If an error occurs, send a screenshot of the CI_Diagnostic tab to support@carbonintelligence.green.
Troubleshooting
"Authorization required"
Normal on first run. Click Authorize and accept the permissions.
"Spreadsheet not found"
Check that the Google Sheet URL is correct in
CONFIG.SPREADSHEET_URL.All columns empty
Run the diagnose function (dropdown next to Run > select "diagnose"). Then check the CI_Diagnostic tab in the Google Sheet to identify the exact problem.
Paused campaigns
If your campaigns are paused, the script exports no data by default. In v1.2.0,
INCLUDE_PAUSED is true by default. For earlier versions, set INCLUDE_PAUSED: true in the CONFIG section.Missing data
Check that campaigns have impressions for the period. Adjust
LOOKBACK_DAYS if needed.Timeout
If the account has a lot of data, reduce
LOOKBACK_DAYS to 30 days.Empty tabs
Some tabs (Video, Placements) only fill if the relevant campaign types are active.
Support
Email
support@carbonintelligence.green
Website
carbonintelligence.green
Script version
1.3.0
Methodology
GMSF v1.2 (Ad Net Zero)