Dcard Ad System
Shows ads across Dcard and measures how each one performs.
3 ad sources in one system

- 2024
- Next.js
- TypeScript
- Core Web Vitals
Background
Dcard's ads ran on Google Ads and a long list of older creatives, and ad events were tracked separately from the rest of the forum. The data team asked us to bring tracking together while we introduced a new ad system.
What I did
- Designed and built one system for Google Ads, Dcard ADs and the older creative list, across five kinds of placement.
- Added a fallback, so a slot shows a Google ad when something goes wrong with its first source.
- Built event tracking that counts each view and click once, and holds events on the device so sending them never blocks other requests or gets lost when someone leaves the page.
- Handled oversized creatives in every placement so ads can't make the page jump, protecting Core Web Vitals for readers.

