Case study · Lucidity · Co-founder and CTO · 2017–2020

Showing brands where their ad spend actually performed.

Every company in a programmatic ad buy reports its own numbers, and none of them line up. I co-founded Lucidity and managed product development of a platform that joined everyone's data, found discrepancies and invalid impressions, and showed which supply paths converted, so brands and agencies could move spend to the ones that did.

Lucidity · Campaign report · Supply paths

Same exchange, same publisher, different sellers

Every event joined to the auction that produced it
5Parties' data joined
4Supply paths compared
1Path flagged
2% vs 5%Conversion, flagged vs others
Supply pathCPMViewableWith a winning bidConversionStatus
Seller A → Exchange → Publisherlowestnormallow~2%Block placements
Seller B → Exchange → Publishermidnormalhigh~5%Healthy
Seller C → Exchange → Publishermidnormalhigh~5%Healthy
Direct → Publisherhighesthighhigh~5%Healthy
IllustrationA re-created mock with sample values. The real figure is the conversion gap on one campaign: about 2% through the cheapest seller against about 5% through the others.
2% vs 5%conversion by path, one campaign
5 platformstracker setup automated
~20×events per node after a rewrite
2 patentapplications, named inventor
How it worked

Joining every party's events at the auction level.

An advertiser asked us why their campaign wasn't performing. Their own tools couldn't answer it: the buying platform, the exchanges, the ad server and the measurement vendor each reported separately, and nothing tied a conversion back to the path that produced it.

I designed the system to join their data event by event, keyed to the auction. Bids, wins, impressions, viewability, clicks and conversions all lined up, and each event picked up every party's dimensions: what one report was missing, another filled in.

  • Routing: events about the same auction went to the same processing node, using the transaction ID and consistent hashing.
  • Healthy conversions: a conversion counted when the full chain held: a click, on a viewable impression, from a bid that actually won.
  • Discrepancies: merging dimensions across parties is also what showed where their counts disagreed.
DSP: bid, win Exchange: auction Ad server: impression Vendor: viewability Advertiser: conversion Join by auction ID one record per auction, every party's dimensions Score each path valid, viewable, converting Move spend
The dashboard

Reported numbers next to the numbers everyone agreed on.

Brands and agencies used the product through a web dashboard. Every headline number appears twice, as what the buying platform reported and as the share of it that every other party in the chain confirmed. A campaign with 98% confirmed impressions needs no attention. One at 60% tells you where to look.

  • Drill down the way the money flows: tracking groups, campaigns, insertion orders, missions and placements, each with the same table and breadcrumb. Any row can be split by publisher, site or app, page, exchange, creative or device.
  • Definitions on hover: every metric had a plain-language tooltip, because "confirmed" only helps if the reader knows what it means. A confirmed impression was requested, served and agreed to by the whole supply chain.
  • Benchmarks built in: match rates were set against a target, 90% for impressions and 80% for clicks, so the reader didn't have to know what good looked like.
  • Reports on a schedule: choose metrics and dimensions, then deliver daily, weekly or monthly, with a history of every run.
  • Findings that lead to action: Optimizations let a user set the criteria, preview the matching pages and publishers, and act on them.
What it found

The cheapest supply path wasn't the best one.

One seller was the cheapest, and the advertiser's ad server showed it with the best CPM. Viewability looked normal, so nothing flagged it. Joined, the data showed conversions through that seller at about 2%, against about 5% through the others.

Before blaming the seller, I dug in. The problem wasn't the whole seller: it was specific placements and pages, and many of those impressions had no winning bid behind them. We blocked only those paths and moved the spend to the inventory where the full chain held up.

Cheapest seller
~2%
Other paths
~5%

Conversion rate by supply path on one campaign.

Patent applications

The design, as filed.

I'm a named inventor on two patent applications for this work. The figures below are from the published applications: data from every participant is routed, matched, and checked for discrepancies. Results were also checkpointed with a cryptographic hash so they could be verified later, but customers paid for the matching and the discrepancy reports. The cryptography mattered less.

Operations

Making tracker setup impossible to get wrong.

Our trackers went into each advertiser's ads, and every buying platform fills in details like the page URL and exchange through its own macros. Those were inserted by hand. When a client ran a campaign on a platform we hadn't used before, the macros were wrong and a day or two of reports showed the wrong pages.

Fixing that campaign was easy. The real problem was the hand editing. I built a trafficking package: ad ops downloaded one spreadsheet per campaign, with a sheet per platform and every macro filled in from a mapping I maintained. It didn't happen again.

campaign-trafficking.xlsx
PlacementAd tagTrackerMacros
300×250tag_01imp, clickFilled
728×90tag_02imp, clickFilled
Video 15stag_03imp, quartilesFilled
The Trade DeskAppNexusAmazon DSPDV360Google Ad Manager

IllustrationOne sheet per platform, macros filled from the mapping.

Engineering

Rewriting the event service: 8 servers down to 2.

Ad spend is paced through the day in bursts, so tracking traffic arrived in sudden spikes and we couldn't drop a single event. Keeping up took 8 Ruby servers, after a long round of tuning. I concluded the limit was the runtime, not our code, and rewrote the tracking service in Scala over a weekend, in the same style as the Ruby code, so the team could judge real code instead of arguing about a language. An event generator sent the same bursts to both, and we didn't switch until the counts matched exactly.

Ruby, events/sec per server
~250
Scala, events/sec per node
~5,000

8 Ruby servers became 2 Scala nodes, with the Ruby version kept ready for rollback. It was never needed. Kubernetes on AWS, set up with CloudFormation.

Product and team

From the first screens to a team of 20+.

  • UX: I designed the first version of the product's interface myself, then worked with a designer to refine it.
  • Clients: I led the technical side of work with brands and agencies including Toyota and GroupM.
  • A/B tests on ads, and reporting built around what advertisers needed to decide.
  • Team: grew engineering to 20+ and was on call for production.
  • Industry: took the cross-company identity problem to IAB Tech Lab and became a core contributor to ads.cert.

Want to talk about it?

I'm based in Los Angeles and open to product and engineering roles.

therevoltingx@gmail.com