Problem
Online advertising has a real, physical energy cost — every ad loaded triggers network calls, rendering work and background tracking, all of which draw power on both the serving infrastructure and the viewer's device. That cost is rarely measured directly; most public discussion of "digital carbon footprint" leans on rough estimates rather than per-item data. The thesis set out to actually measure it: collect a large, real sample of ads and ordinary posts from live social networks, and compare their energy cost directly rather than assume it.
Approach
Automated scraping
HTML/metadata extraction
Load-time & network capture
Energy estimation
Comparative analysis
Technical decisions
I built an automated Python and Selenium data-collection pipeline to identify, scrape and embed Facebook and Twitter ads and ordinary posts, collecting 7,277 items in total — large enough to support a real statistical comparison rather than a handful of anecdotal examples. For each item, the pipeline extracted the HTML content and its associated metadata, then measured loading time and internal network calls, and from those, estimated CPU, GPU and RAM energy consumption per item.
The comparison was deliberately structured along two axes: ads versus ordinary posts on the same platform, and the same content type across platforms (Facebook versus Twitter) — since either axis alone could hide which factor (being an ad specifically, or the platform's own rendering overhead) was actually driving energy cost.
Result
Facebook ads consumed 1.6× more energy than ordinary Facebook posts, and roughly 8.7× more energy than Twitter ads — a large enough gap to suggest that ad-serving overhead (tracking scripts, additional network calls, heavier rendering) is a real, measurable energy cost, not a rounding error, and that it varies substantially by platform rather than being a fixed cost of "an ad" in general.
Next steps
The clearest follow-on is extending the same methodology to more platforms and ad formats (video ads in particular, likely a much larger energy cost than static image ads), and correlating energy cost with ad size/format metadata to see which specific design choices drive the gap rather than treating "ads" as one category.