Public dataset · Government, society and transport
Google Political Ads Transparency in BigQuery
Spending by verified election advertisers on Google ad services: per advertiser, per week, per region and per ad, with targeting details and links to each ad. Updated daily. 9 tables, 3.2 GiB, almost all of it the ad-level creative_stats table.
The data behind Google's Political Advertising Transparency Report. The dataset description says it covers how much verified advertisers spend on political ads across Google ad services, demographic targeting used in their campaigns, and links to each ad in the Google Transparency Report. It is updated daily, and data for an election is removed 7 years after the election.
advertiser_stats has one row per advertiser (advertiser_id) with total spend in several currencies. advertiser_weekly_spend breaks spend down by week and election cycle, advertiser_geo_spend by country and state, and geo_spend aggregates spend by region. creative_stats has one row per ad (ad_id) with type, dates served, impressions, spend ranges and age, gender and geo targeting. last_updated holds the report date.
Two tables are kept for history and are empty: campaign_targeting (deprecated in April 2020, targeting moved into creative_stats) and top_keywords_history (updates ended in December 2019).
Tables and sizes
| Table | Rows | Size | Full scan | Layout |
|---|---|---|---|---|
creative_stats | 1,644,196 | 3.0 GiB | $0.02 | None |
advertiser_geo_spend | 715,801 | 150 MiB | under $0.01 | None |
advertiser_weekly_spend | 326,964 | 68.5 MiB | under $0.01 | None |
advertiser_stats | 23,343 | 5.4 MiB | under $0.01 | None |
geo_spend | 1,297 | 250 KiB | under $0.01 | None |
advertiser_declared_stats | 541 | 75.8 KiB | under $0.01 | None |
last_updated | 1 | 8 B | under $0.01 | None |
campaign_targeting | 0 | 0 B | under $0.01 | None |
top_keywords_history | 0 | 0 B | under $0.01 | None |
Example queries
Advertisers with the highest total spend
advertiser_stats is 5.4 MiB, so this bills the 10 MB minimum.
SELECT
advertiser_name,
regions,
total_creatives,
spend_usd
FROM `bigquery-public-data.google_political_ads.advertiser_stats`
ORDER BY spend_usd DESC
LIMIT 10;Total political ad spend per week since 2024
From advertiser_weekly_spend, summed across all advertisers and regions.
SELECT
week_start_date,
SUM(spend_usd) AS spend_usd
FROM `bigquery-public-data.google_political_ads.advertiser_weekly_spend`
WHERE week_start_date >= '2024-01-01'
GROUP BY week_start_date
ORDER BY week_start_date;All ads from PAC advertisers with SELECT * (expensive)
All 59 columns of creative_stats: 3.02 GiB, the whole table.
SELECT *
FROM `bigquery-public-data.google_political_ads.creative_stats`
WHERE advertiser_name LIKE '%PAC%';Ads and maximum spend by ad type since 2024 (cheap)
Three columns of the same table: 35.9 MiB. Spend per ad is published as a range, so this sums the upper bound.
SELECT
ad_type,
COUNT(*) AS ads,
SUM(spend_range_max_usd) AS max_spend_usd
FROM `bigquery-public-data.google_political_ads.creative_stats`
WHERE date_range_start >= '2024-01-01'
GROUP BY ad_type
ORDER BY ads DESC;US states by political ad spend
Sums advertiser_geo_spend across advertisers.
SELECT
country_subdivision_primary AS state,
SUM(spend_usd) AS spend_usd,
COUNT(DISTINCT advertiser_id) AS advertisers
FROM `bigquery-public-data.google_political_ads.advertiser_geo_spend`
WHERE country = 'US'
GROUP BY state
ORDER BY spend_usd DESC
LIMIT 10;Querying it cheaply
creative_statsis 3.02 GiB of the 3.24 GiB total. The type, date and spend columns used in the cheap query above read only 35.9 MiB of it.- No table is partitioned or clustered, so date filters on
creative_statsdo not reduce bytes. Select only the columns you need. - Every other table is under 150 MiB. Queries on
advertiser_stats,geo_spendorlast_updatedbill the 10 MB minimum. - Ad-level spend is published as ranges (
spend_range_min_usd,spend_range_max_usd) andimpressionsis a STRING, not a number. Totals per advertiser come fromadvertiser_statsandadvertiser_weekly_spend.
FAQ
How much does it cost to query the Google political ads dataset?
At most 3.24 GiB for everything. Queries on advertiser and geo tables bill the 10 MB minimum; ad-level queries on creative_stats cost between about 30 MiB and 3 GiB depending on the columns.
Is the google_political_ads dataset free?
Google pays for storing public datasets, so you never pay storage for them. You pay only for the bytes your queries scan, billed to your own project at the on-demand rate, and the first 1 TiB scanned each month is free. See BigQuery pricing.
How often is the political ads data updated?
Daily, according to the dataset description. The last_updated table holds the date of the latest report, and data for an election is removed 7 years after that election.
Related datasets
All public datasets · BigQuery cost queries · Pricing calculator
