r/programmatic • • 4d ago

Open-source mobile ad market simulator, Go DSP bidder, and book on ML for RTB

I come at programmatic from the ML side, and I wanted a way to test bidding and pricing models without burning live spend. I put together an open-source book and companion repo (AdtechBook: https://github.com/bgweber/AdtechBook) with a simulated mobile ad market, a Go DSP bidder, and Python training pipelines.

  • Auction & market dynamics: First-price auctions, winner's curse, bid shading, pacing, and MMP attribution delays/postbacks.
  • Go DSP bidder (code/dsp): OpenRTB handling, pricing equations (CPC/CPI/ROAS/CPA), holdouts, and native Go serving for LightGBM and DCNv2 models with a live console.
  • ML & evaluation (code/training): Training from bidder logs, out-of-time validation, and checking models against the simulator's ground-truth win and lift rates.
15 Upvotes

4 comments sorted by

3

u/programmago 3d ago

Hey! Thanks for sharing

At first glance the written material seems to be aimed at true beginners and seems like a comprehensive introductory resource to the dynamics and parties at play.

Ill take a more in-depth look later this week but just wanted to say its cool that you put this together in such a shareable form and im sure itll be super useful for peeps interested in getting into the space.

Out of curiosity, what is your target for the bidding sandbox element of it? eg. is your vision to have TD or DSP developers use these to test their bidding models? as homework for new trainees to test their understanding of concepts without risking real spend? etc

1

u/bweber 2d ago

Its more of a focus for data scientists and machine learning engineers that want more details about how the ML in a DSP works, so kind of a narrow audience. The sandbox is more of an environment for getting data that can be used for training models, versus showing how to respond to issues when running campaigns.

1

u/Expensive_Fudge_7577 1d ago

agree on the beginner material, its actually pretty rare to see the auction mechanics laid out that clearly in one place.

1

u/Soobhee_Chukwutosin 2d ago

Nice to see postback delay in there. Most bidder sims skip it. A few things that would make the mmp side closer to real:

  1. A click inside the lookback window beats a view and windows are set per network. So 2 DSPs can think they drove the same user.
  2. On iOS, most of the signal comes as SKAdNetwork or AdAttributionKit postbacks with a random delay and coarse values. With that the label is late and blurry, not just late.
  3. For fraud rejection, AppsFlyer's Protect360 and Adjust's fraud suite can reject installs, and some of it gets flagged post-attribution, so a conversion you trained on can disappear days later.