41 Conclusion
We started with a free puzzle game selling a few seconds of a player’s attention through an auction, and a farming game trying to buy it. Over the course of the book, we built the system in between three times: a crawl DSP that closes the loop with a click model and careful logging, a walk DSP that competes for installs and revenue with calibrated trees, a win model, pacing, and incrementality, and a run DSP with pretrained device models, one pricing equation, and learned pacing and selection. Each was operated, monitored, and tested along the way, because a model that can’t be shipped safely isn’t worth much.
This last chapter steps back. We look at what’s getting easier in ad tech ML and what still isn’t, offer advice for teams at different stages, look at where the field is heading, and close with the areas this book’s DSP doesn’t cover, as directions to explore.
What’s Getting Easier and What Still Isn’t
Much of what was hard a decade ago is now routine. Training a deep model on billions of rows is a managed job on rented GPUs. ONNX lets a model trained in Python run in a Go or Rust bidder without a custom serving stack. Orchestrators, experiment trackers, and model registries are off the shelf. Leading platforms publish their architectures, and the scaling results from large ad systems give smaller teams a map of where compute pays off. Coding agents can draft a spec, a pipeline, or a test, and check their own work against the rules a team writes down.
What hasn’t gotten easier is mostly about data and feedback:
- Labels are still late, sparse, and biased. Installs arrive over days, revenue over weeks, and both only for the impressions the DSP chose to win. Attribution credits installs the DSP didn’t cause, and on iOS, labels arrive in aggregate.
- The DSP still changes its own data. Models decide what’s bought, and what’s bought is what models learn from. Exploration, holdouts, and calibration on wins are the only defenses, and they cost money.
- Parity is still the most common failure. Training and serving still drift apart in small ways that degrade models silently, and catching that still takes logging at bid time, golden files, and parity checks.
- Measuring what matters is still hard. Incrementality is the question advertisers care about most, and answering it still takes holdouts that someone has to pay for.
None of these get solved by a better model. They get managed by the practices in this book.
Advice for Teams at Different Stages of Maturity
If you’re starting a DSP, follow Part II. Log everything at bid time from the first request, including propensities, randomized bid multipliers, and a holdout flag, even though nothing uses them yet. Start in cheap markets with a simple model, and spend your effort on parity, safety, and operations. Most of what makes a DSP good later depends on decisions about data made in the first months.
If you’re running a competitive DSP, the biggest gains are usually in Part III’s less glamorous chapters: calibration by segment, a win model trained on randomized bids, pacing on a controller instead of manual overbids, budget-split A/B tests for every change, and incremental results reported next to attributed ones. Before reaching for deep models, make sure the trees are calibrated, the pipelines are reproducible, and nobody is steering campaigns with multipliers that bypass pricing.
If you’re scaling a mature DSP, Part IV is the map, in the order it’s written. Start with deep signals into trees, measured stage by stage, before moving the decision layer online. Put every model on the price-performance curve, track what it costs to train and serve, and retire what doesn’t earn its keep. Invest in the operational side as much as the models: dependency-aware monitoring, automated rollback, lineage, and an experiment platform that can run many tests at once.
At every stage, keep the incrementality thread from Part I alive. A DSP that can show what it causes, not just what it gets credit for, has an advantage that’s hard to copy.
Where Ad Tech ML Is Heading
Two directions are worth watching.
Generative recommendation. Instead of scoring a list of candidates, a generative model produces the recommendation directly, as a sequence of semantic IDs: short codes learned so that similar items share prefixes. Kuaishou’s GR4AD applies this to advertising with value-aware training and reports up to 4.2% more ad revenue in online A/B tests.1 Meituan’s EGA-V2 proposes one generative model for retrieval, creative selection, allocation, and payment, with offline results,2 and Google researchers have studied bid-aware decoding over semantic IDs in a synthetic marketplace.3 These systems are built for platforms that own their feeds and choose among millions of items. A DSP choosing among thousands of campaigns mostly doesn’t need them yet. The part worth borrowing now is the value-aware training objective: training models on the value of outcomes rather than only their probability.
Foundation models and continuous training. The large-upstream, small-online design from Chapter 27, one foundation model distilled into many production models, and continuous training are the direction the largest ad platforms describe. For a DSP, the practical version is one pretrained device model, refreshed often, feeding calibrated models that retrain quickly.
It’s also worth noticing how little the largest mobile platforms say about their technical approach. Their public descriptions, mostly in earnings materials, focus on results: model releases, growth, and improvement over time, with little about methods. That’s understandable, and it means much of what’s known about the state of the art in mobile ad tech comes from the larger social and e-commerce platforms that publish, and from practitioners who write about what they’ve built.
Future Work: Beyond This Book’s DSP
The companion DSP covers a lot, and there’s much more. This section is a short tour of areas it doesn’t implement, with pointers to where to start.
Value optimization and deep-funnel multi-task models. Bidding on installs alone overpays for users who never pay. The zero-inflated lognormal (ZILN) loss models revenue where most installers pay nothing and a few pay a lot, and evaluates with normalized Gini and decile calibration.4 Entire-space multi-task models train sequential funnel stages over every impression,5 and counterfactual extensions correct their remaining biases.6 Multi-gate mixture-of-experts models predict clicks, installs, payers, and value together while letting tasks share only what helps.7
Creative ranking and dynamic creative assembly. Ranking ads and creatives in parallel, rather than one after the other, gets closer to the best pair within a latency budget.8 Beyond choosing among finished creatives, a DSP can assemble combinations of video, end card, and playable for each request, which requires a solid understanding of how the IAB’s VAST and MRAID containers fire impression, quartile, and click events.9
Bid shading, landscape forecasting, and supply path optimization. There’s a deep literature on bid shading in first-price auctions in production,10 on modeling the winning price as a censored survival problem,11 and on shading that stays robust when both the value estimate and the win curve are noisy.12 Kaplan-Meier estimates are a useful non-parametric baseline. Exchanges also use dynamic and soft floors that are worth detecting. And the same impression often arrives through several exchanges: supply path optimization picks the best path and removes duplicates, using OpenRTB’s supply chain object, app-ads.txt, and sellers.json.13
Attribution under privacy constraints. Learning conversion models from aggregated, bag-level labels is an active research area,14 and it’s directly relevant to iOS postbacks, whose mechanics, from coarse and fine conversion values to postback windows and crowd anonymity, are worth understanding in detail from Apple’s documentation.15 It’s also worth understanding exactly how MMPs set click-through and view-through windows and arbitrate last-touch credit, since every label in this book depends on it.16
Retrieval cascades at larger scale. As catalogs grow, retrieval moves to approximate nearest neighbor search in a two-stage cascade,17 with production lessons from embedding-based retrieval,18 and light pre-ranking models aligned with the heavy ranker.19 A DSP needs these when its campaign and creative catalog grows far beyond the thousands this book assumes.
Pre-bid traffic shaping and invalid traffic. Cheap pre-filters that predict whether the bidder would bid, before full parsing and profile reads, can cut a large share of the bid path’s cost. On the fraud side, the IAB and MRC define general and sophisticated invalid traffic,20 and the mobile-specific schemes, such as click injection, click flooding, SDK spoofing, and emulator farms, are well documented by MMPs.21 They matter for ML because fraud often looks like an excellent conversion rate to a naive model.
Exploration and cold start. Thompson sampling works well in display advertising, even with delayed feedback,22 per-coordinate learning rates carry uncertainty in online click prediction,23 and contextual bandits can choose ad formats.24 A DSP benefits from an explicit exploration budget for new campaigns, new apps, and new supply, and from methods that handle weekends, holidays, and app updates, which make every pattern a little less stable than the models assume.
Closing Thoughts
Mobile ad tech is one of the best places to do applied machine learning. The feedback is real and measured in money, the scale is large, the latency constraints force careful engineering, and the problems, from calibration and delayed labels to causal measurement and learning from your own decisions, are as interesting as any in the field. I’ve enjoyed working on them, and I hope this book helps you build systems you’re proud of, and that cause the outcomes they get credit for.
Ben Xue et al., “Generative Recommendation for Large-Scale Advertising,” arXiv:2602.22732, 2026, https://arxiv.org/abs/2602.22732↩︎
Zuowu Zheng, Ze Wang, Fan Yang, et al., “EGA-V2: An End-to-end Generative Framework for Industrial Advertising,” arXiv:2505.17549, 2025, https://arxiv.org/abs/2505.17549↩︎
Yanchen Jiang, Zhe Feng, Christopher P. Mah, Aranyak Mehta, and Di Wang, “One Model, Two Markets: Bid-Aware Generative Recommendation,” arXiv:2603.22231, 2026, https://arxiv.org/abs/2603.22231↩︎
Xiaojing Wang, Tianqi Liu, and Jingang Miao, “A Deep Probabilistic Model for Customer Lifetime Value Prediction,” arXiv:1912.07753, 2019.↩︎
Xiao Ma et al., “Entire Space Multi-Task Model: An Effective Approach for Estimating Post-Click Conversion Rate,” SIGIR, 2018.↩︎
“ESCM²: Entire Space Counterfactual Multi-Task Model for Post-Click Conversion Rate Estimation,” SIGIR, 2022, arXiv:2204.05125.↩︎
Jiaqi Ma et al., “Modeling Task Relationships in Multi-task Learning with Multi-gate Mixture-of-Experts,” KDD, 2018.↩︎
“Parallel Ranking of Ads and Creatives in Real-Time Advertising Systems,” AAAI, 2024, arXiv:2312.12750, https://arxiv.org/abs/2312.12750↩︎
IAB Tech Lab, VAST 4.x and MRAID 3.0 specifications.↩︎
Djordje Gligorijevic et al., “Bid Shading in The Brave New World of First-Price Auctions,” CIKM, 2020, arXiv:2009.01360, https://arxiv.org/abs/2009.01360↩︎
Kan Ren et al., “Deep Landscape Forecasting for Real-time Bidding Advertising,” KDD, 2019.↩︎
“Double Distributionally Robust Bid Shading for First Price Auctions,” arXiv:2410.14864, 2024, https://arxiv.org/abs/2410.14864↩︎
IAB Tech Lab, OpenRTB 2.6 (including the SupplyChain object), app-ads.txt, and sellers.json specifications.↩︎
“Learning from Aggregated Data: Curated Bags versus Random Bags,” arXiv:2305.09557, 2023, https://arxiv.org/abs/2305.09557↩︎
Apple Developer Documentation, “AdAttributionKit,” https://developer.apple.com/documentation/adattributionkit↩︎
MMP documentation on attribution windows and deduplication, for example AppsFlyer and Adjust.↩︎
Paul Covington, Jay Adams, and Emre Sargin, “Deep Neural Networks for YouTube Recommendations,” RecSys, 2016.↩︎
Jui-Ting Huang et al., “Embedding-based Retrieval in Facebook Search,” KDD, 2020.↩︎
“RankTower: A Synergistic Framework for Enhancing Two-Tower Pre-Ranking Model,” arXiv:2407.12385, 2024, https://arxiv.org/abs/2407.12385↩︎
IAB Tech Lab and MRC, Invalid Traffic Detection and Filtration Guidelines.↩︎
MMP research and documentation on click injection and click flooding, for example from AppsFlyer and Kochava.↩︎
Olivier Chapelle and Lihong Li, “An Empirical Evaluation of Thompson Sampling,” NeurIPS, 2011.↩︎
H. Brendan McMahan et al., “Ad Click Prediction: a View from the Trenches,” KDD, 2013, https://research.google/pubs/ad-click-prediction-a-view-from-the-trenches/↩︎
Liang Tang, Romer Rosales, Ajit Singh, and Deepak Agarwal, “Automatic Ad Format Selection via Contextual Bandits,” CIKM, 2013.↩︎