WorksComputer Science
Display Advertising with Real-Time Bidding (RTB) and Behavioural Targeting
Abstract
The most significant progress in recent years in online display advertising is what is known as the Real-Time Bidding (RTB) mechanism to buy and sell ads. RTB essentially facilitates buying an individual ad impression in real time while it is still being generated from a user's visit. RTB not only scales up the buying process by aggregating a large amount of available inventories across publishers but, most importantly, enables direct targeting of individual users. As such, RTB has fundamentally changed the landscape of digital marketing. Scientifically, the demand for automation, integration and optimisation in RTB also brings new research opportunities in information retrieval, data mining, machine learning and other related fields. In this monograph, an overview is given of the fundamental infrastructure, algorithms, and technical solutions of this new frontier of computational advertising. The covered topics include user response prediction, bid landscape forecasting, bidding algorithms, revenue optimisation, statistical arbitrage, dynamic pricing, and ad fraud detection.
5 Bidding Strategies
5.1 Bidding problem: RTB vs. sponsored search
5.2 Concept of quantitative bidding in RTB
5.3 Single-campaign bid optimisation
5.3.1 Notations and preliminaries
5.3.2 Truth-telling bidding
5.3.3 Linear bidding
5.3.4 Budget constrained clicks and conversions maximisation
5.3.5 Discussions
5.4 Multi-campaign statistical arbitrage mining
5.5 Budget pacing
5.6 Benchmarking
6 Dynamic Pricing
6.1 Reserve price optimisation
6.1.1 Optimal auction theory
6.1.2 Game tree based heuristics
6.1.3 Exploration with a regret minimiser
6.2 Programmatic direct
6.3 Ad options and first look contracts
7 Attribution Models
7.1 Heuristic models
7.2 Shapley value
7.3 Data-driven probabilistic models
7.3.1 Bagged logistic regression
7.3.2 A simple probabilistic model
7.3.3 An extension to the probabilistic model
7.4 Other models
7.5 Applications of attribution models
7.5.1 Lift-based bidding
7.5.2 Budget allocation
Introduction
An advertisement is a marketing message intended to encourage potential customers to purchase a product or to subscribe to a service. Advertising is also a way to establish a brand image through the repeated presence of an advertisement (ad) associated with the brand in the media. Television, radio, newspaper, magazines, and billboards are among the major channels that traditionally place ads, however, the advancement of the Internet enables users to seek information online. Using the Internet, users are able to express their information requests, navigate specific websites and perform e-commerce transactions. Major search engines have continued to improve their retrieval services and users’ browsing experience by providing relevant results. Since many more businesses and services are transitioning into the online space, the Internet is a natural choice for advertisers to widen their strategy, reaching potential customers among Web users [?].
As a result, online advertising is now one of the fastest advancing areas in the IT industry. In display and mobile advertising, the most significant technical development in recent years is the growth of Real-Time Bidding (RTB), which facilitates a real-time auction for a display opportunity. Real-time means the auction is per impression and the process usually occurs less than 100 milliseconds before the ad is placed. RTB has fundamentally changed the landscape of the digital media market by scaling the buying process across a large number of available inventories among publishers in an automatic fashion. It also encourages user behaviour targeting, a significant shift towards buying focused on user data rather than contextual data [9].
Scientifically, the further demand for automation, integration and optimisation in RTB opens new research opportunities in the fields such as Information Retrieval (IR), Data Mining (DM), Machine Learning (ML), and Economics. IR researchers, for example, are facing the challenge of defining the relevancy of underlying audiences given a campaign goal, and consequently, developing techniques to find and filter them out in the realtime bid request data stream [?, ?]. For data miners, a fundamental task is identifying repeated patterns over the large-scale streaming data of bid requests, winning bids and ad impressions [?]. For machine learners, an emerging problem is telling a machine to react to a data stream, i.e., learning to bid cleverly on behalf of advertisers and brands to maximise conversions while keeping costs to a minimum [?, ?, ?].
It is also of great interest to study learning over multi-agent systems and consider the incentives and interactions of each individual learner (bidding agent). For economics researchers, RTB provides a new playground for micro impression-level auctions with various bidding strategies and macro multiple marketplace competitions with different pricing schemes, auction types and floor price settings, etc.
More interestingly, per impression optimisation allows advertisers and agencies to maximise effectiveness based on their own, or the 3rd party, user data across multiple sources. Advertisers buy impressions from multiple publishers to maximise certain Key Performance Indicators (KPIs) such as clicks or conversions, while publishers sell their impressions through multiple advertisers to optimise their revenue [?]. This brings the online advertising market a step closer to the financial markets, where marketplace unity is strongly promoted. A common objective, such as optimising clicks or conversions across webpages, advertisers, and users, calls for significant multi-disciplinary research that combines statistical Machine Learning, Data Mining, Information Retrieval, and behavioural targeting with game theory, economics and optimisation.
Despite its rapid growth and huge potential, many aspects of RTB remain unknown to the research community for a variety of reasons. In this monograph, we aim to offer insightful knowledge of real-world systems, to bridge the gaps between industry and academia, and to provide an overview of the fundamental infrastructure, algorithms, and technical and research challenges of the new frontier of computational advertising.
A short history of online advertising
The first online ad appeared in 1994 when there were only around 30 million people on the Web. The Web version of the Oct. 27, 1994 issue of HotWired was the first to run a true banner ad for AT&T.
The birth of sponsored search and contextual advertising
Online advertising has been around for over a decade. The sponsored search paradigm was created in 1998 by Bill Gross of Idealab with the founding of Goto.com, which became Overture in October 2001, was acquired by Yahoo!
in 2003 and is now Yahoo! Search Marketing [?]. Meanwhile, Google started its own service AdWords using Generalized Second Price Auction (GSP) in February 2002, adding quality-based bidding in May 2002 [?]. In 2007, Yahoo! Search Marketing followed, added quality-based bidding as well [?]. It is worth mentioning that Google paid 2.7 million shares to Yahoo! to solve the patent dispute, as reported by [?], for the technology that matches ads with search results in sponsored search. Web search has now become an integral part of daily life, vastly reducing the difficulty and time once associated with satisfying an information necessity. Sponsored search allows advertisers to buy certain keywords to promote their business when users use such a search engine and greatly contributes to its continuing a free service.
On the other hand, in 1998, display advertising began as a concept contextual advertising [?, ?]. Oingo, started by Gilad Elbaz and Adam Weissman, developed a proprietary search algorithm based on word meanings and built upon an underlying lexicon called WordNet. Google acquired Oingo in April 2003 and renamed the system AdSense [?]. Later, Yahoo! Publish Network, Microsoft adCenter and Advertising.com Sponsored Listings amongst others were created to offer similar services [?]. The contextual advertising platforms evolved to adapt to a richer media environment, including video, audio and mobile networks with geographical information. These platforms allowed publishers to sell blocks of space on their webpages, video clips and applications to make money. Usually such services are called an advertising network or a display network and are not necessarily run by search engines, as they can consist of huge numbers of individual publishers and advertisers. Sponsored search ads can also be considered a form of contextual ad that matches with simple context: query keywords; but it has been emphasised due to its early development, large market volume and research attention.
The arrival of ad exchange and real-time bidding
Around 2005, new platforms focusing on real-time bidding (RTB) based buying and selling impressions were created. Examples include ADSDAQ, AdECN, DoubleClick Advertising Exchange, adBrite, and Right Media Exchange, which are now known as ad exchanges. Unlike traditional ad networks, these ad exchanges aggregate multiple ad networks together to balance the demand and supply in marketplaces and use auctions to sell an ad impression in real time when it is generated by a user visit [9]. Individual publishers and advertising networks can both benefit from participating in such businesses. Publishers sell impressions to advertisers who are interested in associated user profiles and context while advertisers, on the other hand, can contact more publishers for better matching and buy impressions in real-time together with their user data. At the same time, other similar platforms with different functions emerged [?] including (i) demand side platform (DSP), which serves advertisers managing their campaigns and submits real-time bidding responses for each bid request to the ad exchange via algorithms, and (ii) supply side platform (SSP), created to serve publishers managing website ad inventory. However, real-time bidding (RTB) and multiple ad networks aggregation do not change the nature of such marketplaces (where buying and selling impressions happen), but only make the transactions in real-time via an auction mechanism. For simplicity, we may use the term “ad exchange” in this monograph to better represent the wider platforms where trading happens.
The major technical challenges and issues
Real-time advertising generates large amounts of data over time. Globally, DSP Fikisu claims to process 32 billion ad impressions daily [?] and DSP Turn reports to handle 2.5 million per second at peak time [?]. The New York Stock Exchange, to better envision the scale, trades around 12 billion shares daily.1 It is fair to say the volume of transactions from display advertising has already surpassed that of the financial market. Perhaps even more importantly, the display advertising industry provides computer scientists and economists a unique opportunity to study and understand the Internet traffic, user behaviour and incentives, and online transactions. Only this industry aggregates nearly all the Web traffic, in the form of ads transactions, across websites and users globally.
With real-time per-impression buying established together with the cookie-based user tracking and syncing (the technical details will be explained in Chapter 2), the RTB ecosystem provides the opportunity and infrastructure to fully unleash the power of user behavioural targeting and personalisation [?, ?, ?] for that objective. It allows machine driven algorithms to automate and optimise the relevance match between ads and users [?, ?, 17, ?].
RTB advertising has become a significant battlefield for Data Science research, acting as a test bed and application for many research topics, including user response (e.g. click-through rate, CTR) estimation [?, ?, ?, ?], behavioural targeting [?, ?, ?], knowledge extraction [?, ?], relevance feedback [?], fraud detection [?, ?, ?, ?], incentives and economics [?] et al., 2015, Balseiro and Candogan, 2015, and recommender systems and personalisation [?, ?].
Towards information general retrieval (IGR)
A fundamental technical goal in online advertising is to automatically deliver the right ads to the right users at the right time with the right price agreed by the advertisers and publishers. As such, RTB based online advertising is strongly correlated with the field of Information Retrieval (IR), which traditionally focuses on building relevance correspondence between information needs and documents [?]. The IR research typically deals with textual data but has been extended to multimedia data including images, video and audio signals [?]. It also covers categorical and rating data, including Collaborative Filtering and Recommender Systems [?]. In all these cases, the key research question of IR is to study and model the relevance between the queries and documents in the following two distinctive tasks: retrieval and filtering. The retrieval tasks are those in which information needs (queries) are ad hoc, while the document collection stays relatively static. By contrast, information filtering tasks are defined when information needs stay static, whereas documents keep entering the system. A rich literature can be found from the probability ranking principle [?], the RSJ and BM25 model [?], language models of IR [?], to the latest development of learning to rank [?, ?], results diversity [?, ?, ?] and novelty [?], and deep learning of information retrieval [?, ?].
We, however, argue that IR can broaden its research scope by going beyond the applications of Web search and enterprise search, turning towards general retrieval problems derived from many other applications. Essentially, as long as there is concern with building a correspondence between two information objects, under various objectives and criteria [?], we would consider it a general retrieval problem. Online advertising is one of the application domains, and we hope this monograph will shed some light on new information general retrieval (IGR) problems. For instance, the techniques presented on real time advertising are built upon the rich literature of IR, data mining, machine learning and other relevant fields, to answer various questions related to the relevance matching between ads and users. But the difference and difficulty, compared to a typical IR problem, lies in its consideration of various economic constraints. Some of the constraints are related to incentives inherited from the auction mechanism, while others relate to disparate objectives from the participants (advertisers and publishers). In addition, RTB also provides a useful case for relevance matching that is bi-directional and unified between two matched information objects [?], [?], [?]. In RTB, there is an inner connection between ads, users and publishers [?]: advertisers would want the matching between the underlying users and their ads to eventually lead to conversions, whereas publishers hope the matching between the ads and their webpage would result in a high ad payoff. Both objectives, among others, require fulfilment when the relevancy is calculated.
The organisation of this monograph
The targeted audience of this monograph is academic researchers and industry practitioners in the field. The intention is to help the audience acquire domain knowledge and to promote research activities in RTB and computational advertising in general.
The content of the monograph is organised in four folds. Firstly, chapters 2 and 3 provide a general overview of the RTB advertising and its mechanism. Specifically, in Chapter 2, we explain how RTB works, as well as the mainstream user tracking and synchronising techniques that have been popular in the industry; In Chapter 3 we introduce the RTB auction mechanism and the resulting forecasting techniques in the auction market. Next, we cover the problems from the view of advertisers: in Chapter 4, we explain various user response models proposed in the past to target users and make ads more fit to the underlying user’s patterns, while in Chapter 5, we present bid optimisation from advertisers’ viewpoints with various market settings. After that, in Chapter 6, we focus on the publisher’s side and explain dynamic pricing of reserve price, programmatic direct, and new type of advertising contracts. The monograph then concludes with attribution models in Chapter 7 and ad fraud detection in Chapter 8, two additional important subjects in RTB.
There are several read paths depending on reader’s technical backgrounds and interests. For academic researchers, chapters 2 and 3 shall help them understand the real-time online advertising systems currently deployed in the industry. The later chapters shall help industry practitioners grasp the research challenges, the state of the art algorithms and potential future systems in this field. As these later chapters are on specialised topics, they can be read in independently at a deeper level.
How RTB Works
In this chapter, we explore how real-time bidding functions. We start with an introduction of the key players in the ecosystem and then illustrate the mechanism for targeting individual users. We then introduce common user tracking and cookie synchronising methods that play an important role in aggregating user behaviour information across the entire Web. This chapter focuses more on engineering rather than scientific aspects, but nonetheless it serves to provide domain knowledge and context of the RTB system necessary for the mathematical models and algorithms introduced in later chapters. For readability, the complete terminology is enumerated in Appendix A.
RTB ecosystem
Apart from four major types of players: advertisers, publishers, ad networks/ad exchanges and users, RTB has created new tools and platforms which are unique and valuable. Figure 2.1 illustrates the ecosystem:

Figure 2.1. The various players of online display advertising and the ecosystem: 1. The advertiser creates campaigns in the market. 2. The market trades campaigns and impressions to balance the demand and supply for better efficiency. 3. The publisher registers impressions with the market. 4. The user issues queries or visits webpages. 5. The markets can query data exchanges, a.k.a. data management platform (DMP), user profiles in real-time. Source: [?].
Supply side platforms (SSP) serve publishers by registering their inventories (impressions) from multiple ad networks and accepting bids and placing ads automatically;
Ad exchanges (ADX) combine multiple ad networks together [?]. When publishers request ads with a given context to serve users, the ADX contacts candidate Ad Networks (ADN) in real-time for a wider selection of relevant ads;
Demand side platforms (DSP) serve advertisers or ad agencies by bidding for their campaigns in multiple ad networks automatically;
Data exchanges (DX), also called Data Management Platforms (DMP), serve DSP, SSP and ADX by providing user historical data (usually in real-time) for better matching.
How RTB Works
The emergence of DSP, SSP, ADX and DX resulted from the presence of thousands of ad networks available on the Internet, a barrier for advertisers as well as publishers entering the online advertising business. Advertisers had to create and edit campaigns frequently for better coverage as well as analyse data across many platforms for better impact. Publishers had to register with and compare several ad networks carefully to achieve optimal revenue. The ADX arose as an aggregated marketplace of multiple ad networks for the purpose of alleviating such problems. Advertisers could then create their campaigns and set desired targeting a single time and analyse the performance data stream in a single place, while publishers could register with ADX and collect optimal profit without any manual interference.
The ADX is normally connected with two platforms — DSP and SSP — for their different emphases on customers. The DSP works as the agency of advertisers by bidding and tracking in selected ad networks, while the SSP works as the agency of publishers by selling impressions and selecting optimal bids. However, the goal of these platforms is the same: they attempt to create a uniform marketplace for customers. On one hand, this reduces human labour, and on the other hand, balances demand and supply in various small markets for better economic efficiency.
Due to the opportunities for profit in such business, the line between these platforms is becoming less tangible. In this monograph, we choose to use the term “ad exchange” to broadly describe the marketplace where impression trading happens.
The DX collects user data and sells it anonymously to DSP, SSP, ADX and sometimes to advertisers directly in real-time bidding (RTB) for better matching between ads and users. This technology is usually referred to as behavioural targeting. Intuitively, if a user’s past data shows interest in an advertiser’ products or services, then the advertiser would have a higher chance of securing a transaction by displaying its ads, which results in higher bidding for the impression. Initially the DX was a component of other platforms, but more individual DXs are now operating alongside analysing and tracking services.
User behavioural targeting: the steps
With the new RTB ecosystem, advertisers can target the underlying users based on their previously observed behavior. Here we explain how RTB works with behavioural targeting — from a user visiting a website, a bid request sent, to the display of the winning ad usually within 100ms, as illustrated in Figure 2.2:

Figure 2.2. How RTB works for behavioural targeting. Source: [?]
When a user visits a webpage, an impression is created on publisher’s website. While the page loads,
An ad request is sent to an ad exchange through an ad network or a SSP;
The ad exchange queries DSPs for advertisers’ bids;
The DSP can contact data exchanges for the 3rd party user data;
If the advertiser decides to bid, the bid is generated and submitted (for example, the user is interested in travel, a travel related advertiser, e.g. booking.com, could expect the user to convert to their campaign and may be willing to bid higher);
The winner is selected at ad exchanges (largely based on the second price auction), then selected at SSP if the SSP sends the bid request to multiple ad exchanges;
The winning notice is sent to the advertiser;
Following the reversed path, the winner’s ad (creative, i.e., the text, picture, or video that the advertiser wants to show to users) is displayed on the webpage for the specific user;
The tracker collects the user’s feedback, determining whether the user clicked the ad and whether the ad led to any conversion.
The above process marks a fundamental departure from contextual advertising [?, ?] as it puts more focus on the underlying audience data rather than the contextual data from the webpage itself. In the simplest form of behavioural targeting, advertisers (typically e-commerce merchandisers) would re-target users who have previously visited their websites but have not initially converted. As illustrated in Figure 2.3, suppose that you run a Web store www.ABC.com, and user abc123 comes and saves a pair of $150 shoes to their shopping cart but never checks out. You can trace and serve them an ad when they visit other websites later, directing them back to your store to close the sale.

Figure 2.3. Personalised, retargeting ads: keep ads in front of the users even after they leave the advertiser’s website.
One of the reasons to employ the impression level per audience buying is to make retargeting such users possible. However, the problem of identifying users across the Internet remains, e.g, recognising in other domains (websites) from the RTB exchange the exact user abc123 the advertiser recorded in their own domain.
User tracking
A user is typically identified by an HTTP cookie, designed to allow websites to remember the status of an individual user, including remembering shopping items added in the cart in an online store or recording the user’s previous browsing activities for generating personalised and dynamical content. A cookie, in the form of a small piece of data, is sent from a website and stored in the user’s Web browser the first time the user browses a website. Every time the user loads that website again, the browser sends the cookie back to the server to identify the user. Note that a cookie is tied to a specific domain name. If a browser makes an HTTP request to www.ABC.com, www.ABC.com can place a cookie in the user’s browser, specifying their own user ID, say, abc123. In a later session, when the browser makes another HTTP request to www.ABC.com, www.ABC.com can read the cookie and determine the ID of the user is abc123. Another domain, DEF.com for example, cannot read a cookie set by ABC.com. This behaviour is the result of cross-origin policy set in [?] to protect user privacy.
In the context of display advertising, each service provider (including ad exchanges, DSP bidders or DMP user trackers) would act as a single domain to build up their own user ID systems across a number of their client websites (either for advertisers or publishers). The service provider would insert their code snippet1 under their own domain name to the HTML code of a managed webpage. In fact, there are quite a few third parties who drop cookies to track users. For instance, in a single webpage from New York Times, there are as many as sixteen user trackers, as reported in Figure 2.4.

Figure 2.4. The New York Times frontpage referred to as many as 16 third parties that delivered ads and installed cookies, as reported by Ghostery.
As all these tracking systems only have a local view of their users, and there are enormous numbers of Web users and webpages, the observed user behaviours within individual domains would not adequately create effective targeting. For example, suppose when a browser requests an ad from an ad exchange, it only passes along the cookie data that’s stored inside that domain name, say ad.exchange.com.2 This means that the exchange has no knowledge about whatever data the bidder, as well as other third party cookie systems, might have collected under ad.bidder.com, and vice versa. Therefore, when the exchange sends a bid request to a bidder with the ad exchange’s own user ID, the bidder has no knowledge about that ID and thus cannot accurately decide what ad to serve. Their ID systems need to be linked together in order to identify users across the entire Internet. This is done by a technique called Cookie Syncing, which shall be covered next.
Cookie syncing
Cookie syncing, a.k.a. cookie matching or mapping, is a technical process enabling user tracking platforms to link separate IDs given to the same user. [?] shows that nearly 40% of all tracking IDs are synced between at least two entities in the Internet. A study of Web search queries in [?] showed a 99.5% chance that a user will be tracked by all top 10 trackers within 30 clicks on search results. A network analysis from the study further indicated that a network constructed by third party tracking exhibits the property of small world, implying it is efficient in spreading the user information and delivering targeted ads.
Cookie syncing is commonly achieved by employing HTTP 302 Redirect protocol3 to make a webpage available under more than one URL address.
The process begins when a user visits a marketer’s website, such as ABC.com, which includes a tag from a third-party tracker such as ad.bidder.com. The tag is commonly implemented through an embedded 1x1 image (known as pixel tags, 1x1 pixels, or web bugs). Pixel tags are typically single pixel, transparent GIF images that are added to a webpage by, for instance,
<img src="http://ad.bidder.com/pixel?parameters=xxx"/>.
Even though the pixel tag is virtually invisible, it is served just like any other image online. The difference is the webpage is served from the site’s domain while the image is served from the tracker’s domain. This allows the user tracker to read and record the cookie’s unique ID and the extended information it needs. The trick of cookie sync using a pixel is that, instead of returning the required 1x1 pixel immediately, one service redirects the browser to another service to retrieve the pixel. During the redirect process, the two services exchange the information and sync the user’s ID.
As illustrated in Figure 2.5, in step (1), the browser makes a request from the pixel tag to ad.bidder.com and includes in this request any tracking cookies set by ad.bidder.com. If the user is new to ad.bidder.com, it sets its ad.bidder.com cookie. In step (2), the tracker from ad.bidder.com retrieves its tracking ID from the cookie and, instead of returning the required 1x1 pixel, redirects the browser to ad.exchange.com using http redirection. The Web server also provides a URL in the location header field. This code invites the user agent (e.g. a web browser) to make a second, otherwise identical, request to the new URL specified in the location field.

Figure 2.5. Cookie syncing in a marketer’s website managed by ad.bidder.com.
302 redirect and encoding the tracking ID into the URL as a parameter. (3) The browser then makes a request to ad.exchange.com, which includes the full URL ad.bidder.com redirected to as well as ad.exchange.com’s own tracking cookie (if one exists). (4) ad.exchange.com returns the required 1x1 pixel and can now link its own ID associated with the user to ad.bidder.com’s ID and create a record in its match table.
The above cookie sync takes place when ad.bidder.com is managing its Web properties, but the cookie sync process can also be completed alongside served ads when the bidder wins an impression in RTB. If the sync is bidirectional, the ad.exchange.com makes the redirect back to the ad.bidder.com, passing its own ID in the URL parameter. The ad.bidder.com receives this request, reads its own cookie, and stores the ad exchange user ID along with its own ID in the cookie-matching table.
Using cookies to track users does have drawbacks. Only applicable to browsers, cookies can also be easily deleted by clearing the browser’s cache. Users can even choose to disable cookies completely (i.e., private or incognito mode). This makes alternative tracking techniques preferable. For example, device or browser fingerprinting uses information collected about the remote computing device for the purpose of identifying the user. Fingerprints can be used to fully or partially identify individual users or devices even when cookies are turned off. One example, canvas fingerprinting, uses the browser’s Canvas API to draw invisible images and extract a persistent, long-term fingerprint without the user’s knowledge. [?] found that over 5% of the top 100,000 websites have already employed canvas fingerprinting. Trackers can also abuse Flash cookies for regenerating previously removed HTTP cookies, a technique referred to as respawning or Flash cookies [?]. A study by [?] showed 94.2% of browsers with Flash or Java were unique, while [?] found 54 of the 100 most popular sites stored Flash cookies.
RTB Auction & Bid Landscape
In online advertising, sellers (typically publishers) may gain access to partial information about the market demand of their ad impressions from historic transactions. However, they do not usually have knowledge about how much an individual ad impression is worth on the market. Different advertisers may have different (private) valuations of a given ad impression. The valuation is typically based on the prediction of the underlying user’s likelihood to convert should their ad be placed in the impression.
In such a situation, auction is generally regarded as a fair and transparent way for advertisers and publishers to agree with a price quickly, whilst enabling the best possible sales outcome. Specifically, an auction is the process of selling an item by offering it up for bids, taking bids, and then selling it to the highest bidder. As demonstrated in sponsored search by [?], auctions have become an effective tool to sell search impressions by posting a bid for underlying query keywords — for a general introduction and discussion about keyword auction and ad exchange, we refer to [?]. Subsequently, display advertising has followed suit and employed auctions in real-time to sell an ad impression each time when it is being generated from a user’s visit [9]. In this chapter, we briefly introduce the auction mechanisms in RTB display advertising, explaining how the second price auction has been utilised. It is worth mentioning that the second price auction is a sealed-bid auction and advertisers are notified of the winning price only if they have actually won the auction. Thus, each advertiser only presents a local view of the market data. At the end of this chapter, we address the unique data censorship problem and explain how to estimate the winning probability in an unbiased way in the RTB auction market.
The second price auction in RTB
As introduced in Chapter 2 (also see Figure 2.2), in RTB, advertisers would be able to bid an individual impression immediately when it is still being generated from a user visit. RTB exchanges typically employ the second price auction. In this type of auction, instead of paying for the bid offered, the bidder pays the price calculated from the second highest bid.
The reason behind paying the second highest bid is that impressions with same or similar user profiles will continuously appear in ad exchanges. If advertisers pay what they bid (i.e., the first price auction), they would not state their true valuations, but rather keep adjusting their bids in response to other bidders’ behaviours. Unstable bidding behaviours have been well observed in continuously repeated first price auctions, such as in the search markets [?]. To understand this in RTB, suppose there are two advertisers and the impressions associated with the same targeted user group are worth $6 CPMs (cost per mille impressions, with mille being Latin for thousand) to the first advertiser and $8 CPMs to the second. The floor price (the lowest acceptable bid) is assumed to be $2 CPMs. Thus, when they bid between $2 CPMs and $6 CPMs, each of them tries to outbid each other with a small amount. As a result, the winning price increases continuously until reach $6 CPMs where the second advertiser stops the bidding. Then, without the competition from the second advertiser, the first advertiser would drop back to the minimum bid $2 CPMs. At that point, the second advertiser comes back and the competition restarts again and the cycling behaviour will continue indefinitely.
Thus, our focus in this chapter will be on the second price auction. Figure 3.1 illustrates a simple second price auction for an ad impression offered to four advertisers. When receiving the bid requests (consisting of features to describe the impression), advertisers will have their own assessment about the value of the impression. For direct targeting campaigns, it is estimated based on the likelihood the user is going to convert and also the value of that conversion. For branding campaigns, it is mostly bounded by the average budget per targeted impression. Note that the valuation is private, as it relies on the direct sales or advertising budget, which is only known by advertisers themselves. Suppose Advertisers A, B, C, and D, based on their valuations, place bids as $10, $8, $12, $6 CPMs respectively. Advertiser C would win the auction with the actual payment price $10 CPM.1 It is worth noticing that unlike sponsored search where CPC (cost per click) is typically used for the payment, RTB mainly employs CPM. Thus, it is the advertisers’ responsibility to optimise the effectiveness of the campaigns such as clicks or conversions on top of the CPM costs. This makes sense in RTB as advertisers typically have more information about their campaigns and the user intents (e.g., via their own data collection or a third party DMP etc) and as such know better about the potential conversions and clicks.

Figure 3.1. A simple illustration of the second price auction in RTB exchange.
In practice, RTB auctions are done in a hierarchical manner because the auction process may start from SSPs (supply side platforms) who manage the inventory by auctioning off and gathering the best bids from their connected ad exchanges and ad networks. Those connected ad exchanges and ad networks then subsequently run their own auctions in order to pick up the highest bids to send over. By the same token, the DSPs (demand side platforms) that further follow up the auction may also have an internal auction to pick up the highest bids from their advertisers and send it back to the connected ad exchanges or ad networks.
Truthful bidding is the dominant strategy
An auction, as a market clearing mechanism, imposes competition among advertisers. We intend to incentivise them to reveal their private valuations when placing their bids. The second price auction would ensure that advertisers are better off when they tell the truth by specifying their bid exactly as their private value [6].
To see this, we follow a simplified case in [?]: suppose an ad impression, represented by its vectorised feature , is to be sold to one of advertisers (bidders) in an ad exchange. Advertisers submit their bids simultaneously without observing the bids made by others. Each advertiser , , privately, estimates its click-through rate as .
Without loss of generality, we assume the value of a click for all the advertisers is the same and set it as 1. The private valuation is thus equal to for each advertiser . We also consider that all the advertisers are risk-neutral. In other words, they are indifferent between an expected value from a random event and receiving the same value for certain.
Each advertiser knows his own private valuation , but does not know their opponent advertisers’ valuations. They however can have a belief, and therefore an estimation about these valuations. The belief is commonly represented by a distribution. To make our discussion simple, the opponent’ valuations are assumed to be drawn independently from the cumulative distribution function with its density in the interval . That is, denotes the probability that the random variable is less than or equal to a certain value . For simplicity, we assume that the ad exchange (the seller) sets the reserve price at zero (we will discuss the reserve price in Chapter 6).
Without loss of generality, we look at bidder 1, who has a value equal to , and chooses a bid to maximise his expected profits given that bidders follow some strategy . Assume bidder places the highest bid among bidders . Bidder 1’s expected profit can be written as
where holds with probability . As such, we have
The advertiser 1 is to choose in such a way that the above expected reward is maximised. When , we have
where the second integration is negative. Thus, the expected revenue will increase when reaches . By the same token, when , the second integration is positive. If reaches , the expected reward will increase by the amount:
Thus, the expected reward is maximised when . So truth-telling is a dominant strategy, where dominance occurs when one strategy is better than another strategy for one bidder (advertiser), no matter how other opponents may bid.
In practice, however, advertisers might join the auction with a fixed budget and be involved in multiple second-price auctions over the lifetime of a campaign. As such, the truth-telling might not be a dominant strategy. [?] studied a fluid mean-field equilibrium (FMFE) that approximates the rational behaviours of the advertisers in such a setting.
While a game theoretical view provides insights into the advertisers’ and publishers’ strategic behaviours, a practically more useful approach is to take a statistical view of the market price and the volume, which will be introduced next.
Winning probability
A bid request can be represented as a high dimensional feature vector [?]. As before, we denote the vector as , which encodes much information about the impression. An example feature vector includes,
Gender=Male && Hour=18 && City=London && Browser=firefox && URL=www.abc.com/xyz.html.
Without loss of generality, we regard the bid requests as generated from an i.i.d. (independent and identical distribution) , where the time-dependency is modelled by considering week/time as one of the features. Based on the bid request , the ad agent (or demand-side platform, a.k.a. DSP) will then provide a bid following a bidding strategy. If such bid wins the auction, the corresponding labels, i.e., user response (either click or conversion) and market price , are observed. Thus, the probability of a data instance being observed relies on whether the bid would win or not and we denote it as . Formally, this generative process of creating observed training data is summarised as:
where probability describes how feature vector is distributed within the training data. The above equation indicates the relationship (bias) between the p.d.f. of the pre-bid full-volume bid request data (prediction) and the post-bid winning impression data (training); in other words, the predictive models would be trained on , where , and be finally operated on prediction data .
As explained, the RTB display advertising uses the second price auction [6] [9]. In the auction, the market price is defined as the second highest bid from the competitors for an auction. In other words, it is the lowest bid value one should have in order to win the auction. The form of its distribution is unknown unless one has a strong assumption as given in the previous section for theoretical analysis. In practice, one can assume the market price is a random variable generated from a fixed yet unknown p.d.f. ; then the auction winning probability is the probability when the market price is lower than the bid :
where to simplify the solution and reduce the sparsity of the estimation, the market price distribution (a.k.a., the bid landscape) is estimated on a campaign level rather than per impression [?]. Thus, for each campaign, there is a to estimate, resulting in the simplified winning function , as formulated in [?]. [?] proposed a solution of estimating the winning probability and then using it for creating bid-aware gradients to solve CTR estimation and bid optimisation problems.
Bid landscape forecasting
Estimating the winning probability and the volume (bid landscape forecasting) is a crucial component in online advertising framework. However, it is paid less attention than the components of user response prediction (Chapter 4) and bid optimisation (Chapter 5). Researchers proposed several heuristic forms of functions to model the winning price distribution. [?] provided two forms of winning probability w.r.t. the bid price, which is based on the observation of an offline dataset. However, this derivation has many drawbacks since the winning price distribution in real world data may deviate largely from a simple functional form. [?] proposed a log-normal distribution to fit the winning price distribution. [?] used a Dirac conditioned distribution to model the winning price under the condition of given historical winning price. The main drawback of these distributional methods is that they may lose the effectiveness of handling various dynamic data and they also ignore the real data divergence [?].
Basically, from an advertiser’s perspective, given the winning price distribution and the bid price , the probability of winning the auction is
If the bid wins the auction, the ad is displayed and the utility and cost of this ad impression are then observed. The expected cost of winning with the bid is denoted as . With the second price auction, the expected cost is given as
In summary, estimating the winning price distribution (p.d.f. ) or the winning probability given a bid (c.d.f. ) is the key for bid landscape forecasting, which will be explained next.
Tree-based log-normal model
In view of forecasting, a template-based method can be used to to fetch the corresponding winning price distribution w.r.t. the given auction request, as demonstrated by [?].
The targeting rules of different advertising campaigns may be quite different. As such, the bid requests received by each campaign may follow various distributions. [?] proposed to partition the campaign targeting rules into mutually exclusive samples. Each sample refers to a unique combination of targeted attributes, such as Gender=Male && Hour=18 && City=London. Then the whole data distribution following the campaign’s targeting rules, e.g. Gender=Male && Hour=18-23 && Country=UK, is aggregated from the samples. Thus the campaign’s targeting rules can be represented as a set of samples .
Furthermore, for the bid landscape modelling of each sample , [?] first assumed the winning price follow a log-normal distribution
where and are two parameters of the log-normal distribution.
[?] proposed to adopt gradient boosting decision trees (GBDT) [?] to predict the mean and standard deviation of winning prices of each sample based on the features extracted from the targeting rules of the sample, and then with a standard transformation the (predicted) log-normal distribution parameters are obtained
With the winning price distribution of each sample modelled, the campaign-level winning price distribution is calculated from the weighted summation of its targeting samples’
where and is the prior probability (weight) of sample in the campaign’s targeting rules , which can be defined as the proportion of the sample instances in the campaign’s whole instances.
Censored linear regression
The drawback of the log-normal model above is that the feature vector of a bid request is not fully utilised. A simple way for estimating the winning price from the feature vector is to model it as a regression problem, e.g., linear regression
where is the feature vector of the bid request and is the model coefficient vector. [?] learned the regression model using a likelihood loss function with a white Gaussian noise
where .
Furthermore, since the winning price of a bid request can be observed by the DSP only if it wins the auction, the observed instances are right-censored and, therefore, biased.
[?] adopt a censored linear regression [?] to model the winning price w.r.t. auction features. For the observed winning price , the data log-likelihood is
where is the p.d.f. of a standard normal distribution, i.e., with 0 mean and 1 standard deviation.
For the losing auction data with the bid price , we only know the underlying winning price is higher than the bid, i.e., , the partial data log-likelihood is defined as the probability of the predicted winning price being higher the bid, i.e.,
where is the c.d.f. of a standard normal distribution. Therefore, with the observed data and censored data , the training of censored linear regression is
Survival Model
[?] and [4] went further from a counting perspective to address the problem of censored data. To see this, suppose there is no data censorship, i.e., the DSP wins all the bid requests and observes all the winning prices. The winning probability can be obtained directly from the observation counting:
where is the historic winning price of the bid request in the training data, the indicator function if and 0 otherwise. This is a baseline of modelling.
However, the above treatment is rather problematic. In practice there are always a large portion of the auctions the advertiser loses (),2 in which the winning price is not observed in the training data. Thus, the observations of the winning price are right-censored: when the DSP loses, it only knows that the winning price is higher than the bid, but does not know its exact value. In fact, is a biased model and overestimates the winning probability. One way to look at this is that it ignores the counts for losing auctions where the historic bid price is higher than (in this situation, the winning price should have been higher than the historic bid price and thus higher than ) in the denominator of (18).
[?] and [4] used survival models [?] to handle the bias from the censored auction data. Survival models were originally proposed to predict patients’ survival rate for a given time after certain treatment. As some patients might leave the investigation, researchers do not know their exact final survival period, but only know the period is longer than the investigation period. Thus the data is right-censored. The auction scenario is quite similar, where the integer winning price3 is regarded as the patient’s underlying survival period from low to high and the bid price as the investigation period from low to high. If the bid wins the auction, the winning price is observed, which is analogous to the observation of the patient’s death on day . If the bid loses the auction, one only knows the winning price is higher than , which is analogous to the patient’s left from the investigation on day .
Specifically, [?] and [4] leveraged the non-parametric Kaplan-Meier Product-Limit method [?] to estimate the winning price distribution based on the observed impressions and the losing bid requests.
Suppose there is a campaign that has participated RTB auctions. Its bidding log is a list of tuples , where is the bid price of this campaign in the auction , is the boolean value of whether this campaign won the auction , and is the corresponding winning price if . The problem is to model the probability of winning an ad auction with bid price .
If the data is transformed into the form of , where the bid price . denotes the number of ad auction winning cases with the winning price exactly valued (in analogy to patients die on day ). is the number of ad auction cases which cannot be won with bid price (in analogy to patients survive to day ), i.e., the number of winning cases with the observed winning price no lower than 4 plus the number of losing cases when the bid is no lower than . Then with bid price , the probability of losing an ad auction is
which just corresponds to the probability a patient survives from day 1 to day . Thus the winning probability will be
| 2 | win | 1 |
| 3 | win | 2 |
| 2 | lose | |
| 3 | win | 1 |
| 3 | lose | |
| 4 | lose | |
| 4 | win | 3 |
| 1 | lose |
Table 3.1. An example of data transformation of 8 instances with bid price between 1 and 4. Left: tuples of bid, win and cost . Right: transformed survival model tuples and the calculated winning probabilities. Here we also provide a calculation example of shown as blue in the right table. The counted cases of in the left table are 2 winning cases with and the 2 losing cases with , shown highlighted in blue colour. Source [4].
| 1 | 8 | 0 | 1 | 0 | |
| 2 | 7 | 2 | |||
| 3 | 4 | 1 | |||
| 4 | 2 | 1 |
Table 3.1.
Table 3.1 gives an example of transforming the historic data into the survival model data and the corresponding winning probabilities calculated by Eqs. (3.20) and (3.18). It can be observed that the Kaplan-Meier Product-Limit model, which is a non-parametric maximum likelihood estimator of the data [?], makes use of all winning and losing data to estimate the winning probability of each bid, whereas the observation-only counting model does not. As we can see in the table is consistently higher than .
While developing accurate bid landscape forecasting models is a worth-while research goal, [?], however, pointed out that in practice it can be more effective to handle the forecasting error by frequently rerunning the offline optimisation, which updates the landscape model and the bidding strategy with the real-time information. This would link to the feedback control and pacing problems, which will be discussed in Section 5.5.
User Response Prediction
Learning and predicting user response is critical for personalising tasks, including content recommendation, Web search and online advertising. The goal of the learning is to estimate the probability that the user will respond with, e.g. clicks, reading, conversions in a given context [?].
The predicted probability indicates the user’s interest on the specific information item, such as a news article, webpage, or an ad, which shall influence the subsequent decision making, including document ranking and ad bidding. Taking online advertising as an example, click-through rate (CTR) estimation has been utilised later for calculating a bid price in ad auctions [?]. It is desirable to obtain an accurate prediction not only to improve the user experience, but also to boost the volume and profit for the advertisers. For the performance-driven RTB display advertising, user response prediction, i.e. click-through rate (CTR) and conversion rate (CVR) prediction [?, ?], is a crucial building box directly determining the follow-up bidding strategy to drive the performance of the RTB campaigns.
This chapter will start with a mathematical formulation of user response prediction. We will then discuss the most widely used linear models including logistic regression and Bayesian probit regression, and then move it to non-linear models including factorisation machines, gradient tree models, and deep learning. Our focus will be on the techniques that have been successful in various CTR prediction competitions for RTB advertising.1
Data sources and problem statement
Figure 4.1 provides an illustration of a data instance of user response prediction problem. A data instance can be denoted as a pair, where is the user response label, usually binary, such as whether there is a user click on the ad (1) or not (0), is the input feature vector describing the user’s context and the candidate ad. As shown in the figure, the raw data of feature is normally in a multi-field categorical form. For example, the field Weekday consists of 7 categories, i.e. Monday, Tuesday,..., Sunday; the field Browser consists of several categories, e.g. Chrome, IE, Firefox etc.; the field City consists of tens of thousands of cities such as London, Paris, Amsterdam.

Figure 4.1. An example of multi-field categorical data instance of ad display context and its click label and CTR prediction.
Advertisers or DSPs collect billions of such data instances daily to learn user response patterns. They may also collect information forming extra fields to extend the representation of the training data, such as joining and syncing with user’s demographic data from a third-party data provider by the user cookie or device ID etc.
Typical feature engineering over such multi-field categorical data is One-Hot encoding [?]. In One-Hot encoding, each field is modelled as a high dimensional space and each category of this field is regarded as one dimension. Only the dimension with the field category is set as 1, while all others are 0. The encoded binary vectors for an example with three fields will be like
The binary encoded vector of the data instance is then created by concatenating the binary vectors of the field as
Since the dimension of each field depends on the number of categories of this field, the resulted binary vector is extremely sparse. In some practical applications, the hash tricks are applied to reduce the vector dimensions [?, ?].
Logistic regression with stochastic gradient descent
We denote to describe the binary bid request features as discussed previously. A straightforward solution, the logistic regression model, to predict the CTR is given as
and the non-click probability is
where is the model coefficient vector, which represents a set of parameters to be learned over training data.
The cross entropy loss function is commonly used for training the logistic regression model:
In addition, the loss function is normally with a regularisation term to help the model avoid overfitting. With L2-norm regularisation, the loss function becomes:
Taking the derivation leads to the gradient on the efficient vector
and with the learning rate , the stochastic gradient descent (SGD) update of is
for an instance randomly sampled from the training data. Note that the input bid request is a sparse vector and only contains a small number of non-zero entries that equals the number of the fields (). Both the calculation of and the update of coefficients are very fast as they are only involved with the non-zero entries.
In SGD learning, the learning rate can be a fixed value, or a decayed value depending on the application. The decayed value of at -th iteration can be updated as
in order to fine-tune the parameters in the later stage. [?] provided several practical updating schemes of , and the optimal implementation of updating depends on the specific training data.
Logistic regression with follow-the-regularised-leader
To bypass the problem of tuning the learning rate with various strategies, [?] proposed an online learning algorithm of logistic regression, called follow-the-regularised-leader proximal (FTRL-proximal). In the -th iteration, FTRL calculates the new coefficients as
where and is the -th iteration logistic regression gradient as in (25) and is defined as . The solution of (28) is in fact very efficient in time and space: only one parameter per coefficient needs to be stored. (28) can be rewritten as
Let be the number stored in memory at the beginning of each iteration :
where the closed form solution for each dimension of is
where if positive and otherwise, which is normally used in parameter updating with L1 regularisation. Practically, it has been shown that logistic regression with FTRL works better than that with SGD. The experiments on RTB and non-RTB advertising user response prediction have demonstrated the efficiency and effectiveness of the FTRL training [?][?].
Bayesian probit regression
[?] proposed a Bayesian learning model called Bayesian probit regression. In order to deal with the uncertainty of the parameter estimation, the coefficients is regarded as a random variable with p.d.f. defined as Gaussian distribution
The prediction function is thus modelled as a conditional distribution2
where the non-linear function is the c.d.f. of the standard Gaussian distribution. The model parameter is assumed to be drawn from a Gaussian distribution, which originates from a prior and updated with the posterior distribution by data observation.
The posterior is non-Gaussian and it is usually solved via variational methods in practice. Let be the posterior distribution of after observing the case . The variational inference aims to minimise the Kullback-Leibler divergence by finding the optimal distribution parameters and .
Considering up to the second-order factors gives the closed form solution of this optimisation problem as
where
where
Note that [?] assumed the independence of features and only focused on the diagonal elements in in practice.
To sum up, the above sections have introduced several linear models and their variations for the response prediction problem. Linear models are easy to implement with high efficiency. However, the regression methods can only learn shallow feature patterns and lack the ability to catch high-order patterns unless an expensive pre-process of combining features is conducted [?]. To tackle this problem, non-linear models such as factorisation machines (FM) [?, ?] and tree-based models [?] are studied to explore feature interactions.
Factorisation machines
[?] proposed the factorisation machine (FM) model to directly explore features’ interactions by mapping them into a low dimensional space:
where each feature is assigned with a bias weight and a -dimensional vector ; the feature interaction is modelled as their vectors’ inner products between . The activation function can be set according to the problem. For CTR estimation, the sigmoid activation function, as in (21), is normally used. Note that (41) only involves the second-order feature interactions. By naturally introducing tensor product, FM supports higher-order feature interactions.
FM is a natural extension of matrix factorisation that has been very successful in collaborative filtering based recommender systems [?], [?]. Specifically, when there are only two fields in the data: user ID and item ID , the factorisation machine prediction model will be reduced to
which is the standard matrix factorisation model.
The inner product of feature vectors practically works well to explore the feature interactions, which is important in collaborative filtering. With the success of FM in various recommender systems [?, ?, ?, ?], it is natural to explore FM’s capability in CTR estimation.
[?] proposed to use collaborative filtering via matrix factorisation for the ad CTR estimation task. Working on the mobile ad CTR estimation problem, [?] extended FM into a hierarchical importance-aware factorisation machine (HIFM) by incorporating importance weights and hierarchical learning into FM. [?] borrowed the idea of FTRL in [?] and applied this online algorithm onto FM and reported significant performance improvement on ad CTR estimation.
Decision trees
Decision tree is a simple non-linear supervised learning method [?] and can be used for CTR estimation. The tree model that predicts the label of a given bid request is done by learning a simple sequential, tree structured (binary), decision rule from the training data. As illustrated in Figure 4.2, a bid request instance is parsed through the tree on the basis of its attributes, and at the end arrived at one of the leaves. The weight assigned to the leaf is used as the prediction. Mathematically, a decision tree is a function, denoted as below:

Figure 4.2. An example decision tree, where a given bid request is mapped to a leaf, and the weight at the leaf produces the prediction value.
where a leaf index function is introduced to map an instance bid request to a leaf . Each leaf is assigned a weight , , where denotes the total number of leaves in the tree, and the prediction is assigned as the weight of the mapped leaf .
Ensemble learning
A major problem of decision trees is their high variance — a small change in the data could often lead to very different splits in the tree [?]. To reduce the instability and also help avoiding over-fitting the data, in practice, multiple decision trees can be combined together. Our discussion next focuses on bagging and boosting, the two most widely-used ensemble learning techniques.
Bagging (bootstrap aggregating)
Bagging (Bootstrap aggregating) is a technique averaging over a set of predictors that have been learned over randomly-generated training sets (bootstrap samples) [1].
More specifically, given a standard training set of training examples, first generate new training sets , each of size , by sampling from uniformly and with replacement (some examples may be repeated in each dataset). The (decision tree) models are then fitted using the bootstrapped training sets. The bagging estimate is obtained by averaging their outputs:
A good bagging requires the basis decision trees to be as little correlated as possible. However, if one or a few features (e.g, the field Weekday, Browser, or City) are strong predictors for the target output, these features are likely to be selected in many of the trees, causing them to become correlated. Random Forest [2] solves this by only selecting a random subset of the features as a node to split (the tree), leading to more stable and better performance in practice.
Gradient boosted regression trees
By contrast, boosting methods aim at combining the outputs of many weak predictors (in an extreme case, perform just slightly better than random guessing) to produce a single strong predictor [?, ?]. Unlike bagging where each basis predictor (e.g., decision tree) is independently constructed using a bootstrap sample of the data set, boosting works in an iterative manner; it relies on building the successive trees that continuously adjust the prediction that is incorrectly produced by earlier predictors. In the end, a weighted vote is taken for prediction. More specifically, for a boosted decision tree:
where the prediction is a linear additive combination of the outputs from numbers of basis decision trees . For simplicity, consider the weight of each predictor is equal.
Thus, the tree learning is to find right decision so that the following objective is minimised:
where the objective consists of a loss function of the predicted values , , against the true labels , , and a regularisation term controlling the complexity of each tree model. One can adopt Forward Stagewise Additive training by sequentially adding and training a new basis tree without adjusting the parameters of those that have already been added and trained [?]. Formally, for each stage
where
and the training set is denoted as , . The complexity of a tree is defined as
where and are the hyper-parameters. is the index of the features and there are number of features.
To solve (47), one can consider the objective as the function of prediction and make use of Taylor expansion of the objective:
where define , which can be safely removed as it is independent of the added tree . Replacing Eqs. (4.23) and (4.30) into the above gives:
where denotes the set of instance indexes that have been mapped to leaf . The above is the sum of independent quadratic functions of the weights . Taking the derivative and making it to zero obtains the optimal weights for each leaf as:
Placing back the weights give the optimal objective function as
The above solution is a general one where one can plugin many loss functions. Let us consider a common squared-error loss:
where is simply the residual of the previous model on the -th training instance. Replacing the first and second derivatives of into (54) gives:
where one can see that the optimal weight at leaf is the one that best fits the previous residuals in that leaf when the regularisation is not considered.
With the optimal objective function in (55), one can take a greedy approach to grow the tree and learn its tree structure: for each tree node, all features are enumerated. For each feature, sort the instances by feature value. If it is real-valued, use a linear scan to decide the best split along that feature. For categorical data in our case, one-hot-encoding is used. The best split solution is judged based on the optimal objective function in (55) and take the best split solution along all the features. A distributed version can be found at [?].
Hybrid Models
All the previously mentioned user response prediction models are not mutually exclusive and in practice they can be fused in order to boost the performance. Facebook reported a solution that combines decision trees with logistic regression [?]. The idea was to non-linearly transform the input features by gradient boosted regression trees (GBRTs) and the newly transformed features were then treated as new categorical input features to a sparse linear classifier. To see this, suppose there is an input bid request with features . Multiple decision trees are learned from GBRTs. If the first tree thinks belong to node 4, the second node 7, and the third node 6, then the features 1:4, 2:7, 3:6 are generated for this bid request and then hash it in order to feed to a regressor. A follow-up solution from the Criteo Kaggle CTR contest also reported that using a field-aware factorisation machine [?] rather than logistic regression as the final prediction from GBRTs features had also led to improved accuracy of the prediction.
User lookalike modelling
Compared with sponsored search or contextual advertising, RTB advertising has the strength of being able to directly target specific users — explicitly build up user profiles and detect user interest segments via tracking their online behaviours, such as browsing history, clicks, query words, and conversions.3
Thus, when estimating the user’s response (rate), the advertiser would be able to, on the basis of the learned user profiles, identify and target unknown users who are found in ad exchanges and have the similar interests and commercial intents with the known (converted) customers. Such technology is referred as user look-alike modelling [?, ?], which in practice has proven to be effective in providing high targeting accuracy and thus bringing more conversions to the campaigners [?].
The current user profiling methods include building keyword and topic distributions [?] or clustering users onto a (hierarchical) taxonomy [?]. Normally, these inferred user interest segments are then used as target restriction rules or as features leveraged in predicting users’ ad response [?], where those regression techniques introduced previously, e.g., logistic regression, matrix factorisation, boosted decision trees, can be incorporated.
However, a major drawback of the above solutions is that the user interest segments building, is performed independently and has little attention of its use of ad response prediction. In the next section, we shall introduce a particular technique, transfer learning that implicitly transfers the knowledge of user browsing pattens to that of the user response prediction [?].
Transfer learning from Web browsing to ad clicks
Transfer learning deals with a learning problem where the training data of the target task is expensive to get, or easily outdated; the training is helped by transferring the knowledge learned from other related tasks [?]. Transfer learning has been proven to work on a variety of problems such as classification [?], regression [?] and collaborative filtering [?]. It is worth mentioning that there is a related technique called multi-task learning, where the data from different tasks are assumed to drawn from the same distribution [?]. By contrast, transfer learning methods may allow for arbitrary source and target tasks. In real time bidding based advertising, [?] proposed a transfer learning scheme based on logistic regression prediction models, where the parameters of ad click prediction model were restricted with a regularisation term from the ones of user Web browsing prediction model. [?] extended it by considering matrix factorisation to fully explore the benefit of collaborative filtering.
Specifically, in RTB advertising, there are commonly two types of observations about underlying user behaviours: one from their browsing behaviours (the interaction with webpages) and one from their ad responses, e.g., conversions or clicks, towards display ads (the interactions with the ads) [?]. There are two predictions tasks for understanding user behaviours:
Web Browsing Prediction (CF Task). Each user’s online browsing behaviour is logged as a list containing previously visited publishers (domains or URLs). A common task of using data is to leverage collaborative filtering (CF) [?, ?] to infer the users’ profile, which is then used to predict whether the user is interested in visiting any given new publisher. Formally, denote the dataset for CF as , which contains users and publishers and an observation is denoted as , where is a feature vector containing the attributes from users and publishers and is the label indicating whether the user visits the publisher or not.
Ad Response Prediction (CTR Task). Each user’s online ad feedback behaviour is logged as a list of pairs of rich-data ad impression event and the corresponding feedback (e.g., click or not). The task is to build a click-through rate (CTR) prediction model [?] to estimate how likely it is that the the user will click a specific ad impression in the future. Each ad impression event consists of various information, such as user data (cookie ID, location, time, device, browser, OS etc), publisher data (domain, URL, ad slot position etc), and advertiser data (ad creative, creative size, campaign etc.). Mathematically, denote the ad CTR dataset as and its data instance as , where is a feature vector and is the label indicating whether the user clicks a given ad or not.
Although they are different prediction tasks, two tasks share a large proportion of users and their features. Thus a user interest model can be built jointly from the two tasks. Typically there are large amount of observations about user browsing behaviours and it may be promising to use the knowledge learned from publisher CF recommendation to help infer display advertising CTR estimation.
In the solution proposed by [?], the prediction models on the CF task and CTR task are learned jointly. Specifically, the authors build a joint data generation framework by the two prediction tasks.For both predictions, the labels are considered to be binary. More detailed implementation of the CF and CTR prediction modules are provided in [?].
Deep learning over categorical data
Deep neural networks have demonstrated their superior performance on various tasks ranging from image recognition [?], speech recognition [?], and machine translation [?] to natural language processing [?]. In some of tasks, the prediction accuracy has arguably reached a comparable human-level [?, ?].
A notable similarity among those tasks is that visual, aural, and textual signals are known to be spatially and/or temporally correlated. The newly introduced unsupervised training on deep structures [?] or embedding the knowledge as prior would be able to explore such local dependency and establish a sparse representation of the feature space, making neural network models effective in learning high-order features directly from the raw feature input. For instance, convolutional neural networks employ local filters to explore local dependencies among pixels [?, ?].
With such learning ability, deep learning would be a good candidate to estimate online user response rate such as ad CTR. However, there are two difficulties: firstly, most input features in CTR estimation are discrete categorical features, e.g., the user location city, device type, publisher website, ad category, and their local dependencies (thus the sparsity in the feature space) are unknown. Thus how deep learning improves the CTR estimation via learning feature representation on such large-scale multi-field discrete categorical features. Secondly, training deep neural networks (DNNs) on a large input feature space requires tuning a huge number of parameters, which is computationally expensive. For instance, unlike the image and video cases, there are about 1 million binary input features and 100 hidden units in the first layer; then it requires 100 million links to build the first layer neural network.
[?] studied deep learning over a large multi-field categorical feature space by using embedding methods in both supervised and unsupervised fashions. Two types of deep learning models were introduced: Factorisation Machine supported Neural Network (FNN) and Sampling-based Neural Network (SNN). Specifically, FNN with a supervised-learning embedding layer using factorisation machines [?] is proposed to efficiently reduce the dimension from sparse features to dense continuous features. The second model SNN is a deep neural network powered by a sampling-based restricted Boltzmann machine or a sampling-based denoising auto-encoder with a proposed negative sampling method. Based on the embedding layer, multiple layers neural nets with full connections were built to explore non-trivial data patterns. Later, inspired by FNN and FM, [?] proposed a product-based feature-interaction layer between the feature embedding layer and the full connection layers to induce the feature interaction learning.
In the context of sponsored search, [3] argued that user’s behaviours on ads are highly correlated with historical events of the user’s activities, such as what queries they submitted, what ads they clicked or ignored in the past, and how long they spent on the landing pages of clicked ads. They used recurrent neural networks (RNN) to directly model the dependency on user’s sequential behaviours into the click prediction process through the recurrent structure in the network.
Dealing with missing data
As discussed in Chapter 3, the training data (observed clicks/non-clicks for a bid request) for user response estimation is biased and contains missing data. Only when a bid wins the auction, are the corresponding labels, i.e., user response (either click or conversion) and market price , observed. Thus, the probability of a data instance (contains bid request feature, labels, market price) being observed relies on whether the bid would win or not. Following Chapter 3, we denote it as . As before, the generative process of creating observed training data is summarised as:
where probability describes how feature vector is distributed within the training data. As discussed in Chapter 3, the above equation indicates the relationship (bias) between the p.d.f. (probabilistic density function) of the pre-bid full-volume bid request data (prediction) and the post-bid winning impression data (training); in other words, the predictive models would be trained on , where , and be finally operated on prediction data .
In Chapter 3, we have presented an unbiased estimation of the winning probability using a non-parametric survival model. Here we shall introduce a solution of using it for creating bid-aware gradient descent to solve CTR estimation for both logistic regression and factorisation machine as well as neural networks [4].
Generally, given a training dataset , where the data instance follows the training data distribution , (the red data distribution in Figure 4.3), an unbiased supervised learning problem, including previously mentioned logistic regression, matrix factorisation and deep learning, can be formalised into a loss-minimisation problem on prediction data distribution (the blue data distribution in Figure 4.3):

Figure 4.3. From an advertiser perspective, the ad auction selection acts as a dynamic data filter based on bid value, which leads to distribution discrepancy between the post-bid training data (red, right) and pre-bid prediction data (blue, left). Source: [4].
where is -parametrised prediction model to be learned; is the loss function based on the ground truth and the prediction ; is the regularisation term that penalises the model complexity; is the regularisation weight. With Eqs. (3.5) and (3.6), one can use importance sampling to reduce the bias of the training data:
Based on this framework, if the auction winning probability , e.g., (20), is obtained, one can eliminate the bias for each observed training data instance. Let us look at the case of CTR estimation with logistic regression
With the cross entropy loss between the binary click label and the predicted probability and L2 regularisation, the framework of (62) is written as
where the winning probability is estimated for each observation instance, which is independent from the CTR estimation parameter .4 The update rule of is routine using stochastic gradient descent. The derived Bid-aware Gradient Descent (BGD) calculation of (64) is5
From the equation above, one can observe that with a lower winning bid , the probability of seeing the instance in the training set is lower. However, the corresponding gradient from the data instance is higher and vice versa as it is in the denominator.
This is intuitively correct as when a data instance is observed with low probability, e.g., 10%, one can infer there are 9 more such kind of data instances missed because of auction losing. Thus the training weight of should be multiplied by 10 in order to recover statistics from the full-volume data. By contrast, if the winning bid is extremely high, which leads 100% auction winning probability, then such data is observed from the true data distribution. Thus there will be no gradient reweighting on this data. Such non-linear relationship has been well captured in the bid-aware learning update in the gradient updates.
Model comparison
As discussed in this chapter, there are various user response prediction models. From the modeling perspective, these models can be generally categorised as linear and non-linear models.
Linear models, including logistic regression [?] and [?], and Bayesian probit regression (with diagonal covariance matrix) [?], directly build the model based on the feature independence assumption. For linear models, the feature interaction patterns are generally captured by building large-scale feature space with combining multi-field features, which could consume much human effort. However, thanks to its high efficiency and high parallelization capability, linear models are able to be fed in much more training data instances (and higher dimensional features) during the same training period, which makes them still highly comparable with the non-linear models in many industrial environments.
Non-linear models, including factorisation machine [?, ?], tree models [?] and recently emerged (deep) neural networks models [?, ?], provide model capacity of automatically learning feature interaction patterns without the need of designing combining features. These non-linear models generally need much more computation resources than the linear ones, and some of them may require multiple stages of model training, as demonstrated in [?]. With the fast development high performance computing (HPC) and the explosion of data volume, non-linear models are more and more applied in commercial platforms for practical user response prediction.
Benchmarking
There are some real-world benchmark datasets that are publicly avaiable for the research of user response prediction in RTB display advertising.
iPinYou dataset [?] comes from the company hosted global RTB algorithm competition during over 10 days in 2013, including 3 seasons. Normally the data of season 2 and 3 are used because of the same data schema, with 24 semi-hashed fields and the user click/conversion responses. Download link: http://data.computational-advertising.org.
Criteo 1TB Click Log is a realistic industry-defining benchmark release by Criteo. The dataset contains 24 days of ad click logs, and the data has been cleaned and hashed, including 13 numerical and 26 categorical fields, labeled with the user click responses. Download link: http://labs.criteo.com/downloads/download-terabyte-click-logs/.
Criteo Conversion Log is another dataset from Criteo focusing on conversion prediction [?]. Download link: http://labs.criteo.com/2013/12/conversion-logs-dataset/.
YOYI runs a major DSP focusing on multi-device display advertising in China. YOYI dataset [?] contains 402M impressions, 500K clicks and 428K CNY expense during 8 days in Jan. 2016. Download link: http://goo.gl/xaao4q.
Avazu releases its 11-day online ad click data for its Avazu Click Prediction competition on Kaggle. Download link: https://www.kaggle.com/c/avazu-ctr-prediction/data.
Note that iPinYou and YOYI datasets further contain bidding and auction winning price information, which supports the research of bidding strategy optimisation as will be discussed in Chapter 5.
Since there are different settings of user response prediction, thus it could be more feasible to list some benchmarking references [?, ?, ?, ?, ?, ?] than conducting a specific setting of experiments in this survey.
Bidding Strategies
Once it is able to estimate the effectiveness of an ad impression from the previous chapter by estimating user’s response rates (e.g., the click-through rate or the conversion rate), the next step is to use it for optimising the bidding. A bidding strategy refers to the logic of deciding a bid price given an ad display opportunity. Good bidding strategy directly leads to effective and accurate RTB ad delivery. Thus designing an optimal bidding strategy is regarded as one of the most important problems in RTB display advertising.
There are two types of approaches towards optimal bidding strategies. A game-theoretical view assumes the rationality of the players (advertisers and publishers) in making decisions [5, 6, 7] and formulates the incentives and the impact of the interplays among the players, whereas a statistical view assumes no or less interplay among the advertisers and publishers and studies decision-making under uncertainty [8].
This chapter takes the latter approach as assuming advertisers are strategic and rational is questionable in practice [9] and the statistical approach is likely to lead to practically useful solutions, which are indeed the majority solutions for industrial RTB platforms.
In the formulation stated in this chapter, the bidding strategy is abstracted as a function which takes in the information of a specific ad display opportunity, i.e., the bid request, and outputs the corresponding bid price for each qualified ad, as illustrated in Figure 5.1. How this bidding function should be designed involves multiple factors, including the auction volume during the campaign’s lifetime, the campaign budget and the campaign-specific key performance indicator (KPI), such as the number of clicks or conversions, or advertising revenue.

Figure 5.1. A bidding strategy can be abstracted as a function mapping from the given bid request (in a high dimensional feature space) to a bid price (a non-negative real or integer number).
Bidding problem: RTB vs. sponsored search
Bid optimisation is a well-studied problem in online advertising [?, ?, ?, ?]. Nonetheless, most research has been so far limited to keyword auction in the context of sponsored search (SS) [?, ?, ?]. Typically, under the scenario of pre-setting the keyword bids (not impression level), the keyword utility, cost and volume are estimated and then an optimisation process is performed to optimise the advertisers’ objectives (KPIs) [?, ?, ?, ?]. Given a campaign budget as the cost upper bound, optimising the advertiser performance is defined as a budget optimisation problem [?, ?]. Furthermore, [?] and [?] focused on the bid generation and optimisation on broad matched keywords, where query language features are leveraged to infer the bid price of related keywords. [?] proposed to jointly optimise the keyword-level bid and campaign-level budget allocation under a multi-campaign sponsored search account. Some recent work focuses on periodically changing the pre-setting keyword auction price, taking into account the remaining budget and lifetime. For instance, in [?, ?], Markov decision process was used to perform online decision in tuning the keyword bid price, where the remaining auction volume and budget act as states and the bid price setting as actions. [?] proposed to calculate a bid allocation plan during the campaign lifetime, where the bid price on each keyword is set in different discrete time units by considering the market competition and the CTR on different ad positions. However, none of the work evaluates per-impression auction in SS; all the bids are associated with keywords while impression level features are seldom considered, especially for advertisers and their agencies. Moreover, in SS bid optimisation, search engines play two roles: setting the keyword bids as well as hosting the auctions. The objective function could be diverted to optimise the overall revenue for the search engine [?, ?, ?] and [?, ?], rather than the performance of each individual advertiser’s campaigns.
The bid optimisation for RTB display advertising is fundamentally different. First, the bids are not determined by pre-defined keywords [9], but are based on impression level features. Although in general, advertisers (or DSPs) are required to set up their target rules, they need to estimate the value of each ad impression that is being auctioned in real time and return the bid price per auction. Second, in RTB, CPM pricing is generally used. Winning an impression directly results in the cost, despite the fact clicks and conversions can now be directly optimised by advertisers and DSPs. Thus, the dependencies over various effectiveness measures such as eCPC,1 CPM and the budget constraints need to be studied in a single framework. [?] proposed an algorithm that learns winning bids distribution from full or partial information of auctions in display advertising. The algorithm then makes bidding decisions to achieve the best delivery (number of impressions) within the budget constraint. In [?], the bid price from each campaign can be adjusted by the publisher side in real time and the target is to maximise the publisher side revenue.
Other relevant problems in RTB have also been studied. [?] focused on the pacing problem, where the target is to smoothly deliver the campaign budget. From the SSP perspective, the reserve price setting in RTB ad auctions is studied in [?]. In [?] the sparsity problem of conversion rate estimation is handled by modelling the conversions at different selected hierarchical levels. [?] investigated the evaluation measures of the display advertising performance and they found the site visit turns out to be a better proxy than the user click. In addition, there is some work on the ad exchange communication problem [?, ?].
Concept of quantitative bidding in RTB
In a performance-driven advertising scenario, each ad display opportunity, i.e., bid request, is quantified where its utility, e.g., the probability of a user clicking on the displayed ad [?] or the expected revenue from this ad impression [?, ?], and cost, e.g., the cost of winning this ad impression in the auction [?], are carefully estimated. Based on the estimated utility and cost of each bid request, [?] proposed the concept of quantitative bidding. This means that the logic of the bidding function should only depend on two factors: the estimated utility of the ad display opportunity and the estimated cost to win it. All other information can be regarded as independent with the bid price conditioned only by these two factors,2 as illustrated in Figure 5.2. For example, a sneakers advertiser would like to bid high on users with ages between 15 and 30. This is motivated by the fact that users in such a segment are more likely to be converted to purchase the sneakers after seeing the ads. This is quantified as a higher conversion rate. This is analogous with a high frequency trading strategy in a stock/option market where the trading action is wholly based on the quantified risks and the returns for each asset, regardless of the specific asset attributes or fundamentals [?].

Figure 5.2. The quantitative bidding: the logic of the bidding function only depends on two (sets of) factors, i.e., the estimated utility and the cost of the ad display opportunity.
Using the estimated utility and cost, the optimal bidding function to maximise the specific KPI under the target campaign budget and auction volume constraints can be derived.
The research frontier and implementations of the utility estimation module and cost estimation module in Figure 5.2 have been well investigated in Chapter 4 and Section 3.3, respectively. In the later sections of this chapter, various bidding strategies and their connections will be discussed.
Single-campaign bid optimisation
With the modules of CTR/CVR estimation (Chapter 4) and bid landscape forecasting (Section 3.3) ready, bid optimisation techniques seek an optimal bidding strategy to maximise a certain objective (with possible constraints). In this section, the derivation of different bidding strategies under the presumed settings will be discussed.
Notations and preliminaries
Define the bidding function as which returns the bid price given the estimated click-through rate (CTR) of an ad impression. Various machine learning models for predicting CTR have been introduced in Chapter 4.
Winning probability. From an advertiser’s perspective, given the market price distribution and the bid price , the probability of winning the auction is
If the bid wins the auction, the ad is displayed and the utility and cost of this ad impression are then observed.
Utility. The utility function given the CTR is denoted as . The specific form of depends on the campaign KPI. For example, if the KPI is click number, then
If the KPI is the campaign’s profit, with the advertiser’s true value on each click is , then
Cost. If the advertiser wins the auction with a bid , the expected cost is denoted as . In the RTB context there could be first price auctions
and second price auctions
Different market settings and campaign strategies define different cost functions. If the auction is a first price auction, then should be used. For second price auctions, is reasonably adopted, but [?] still used to conservatively model the upper bound of the second price auctions with possible soft floor prices. Here it is feasible to first use the abstract cost function in the framework and then specify the implementation of the cost function in specific tasks.
Campaign settings. Each campaign is set with specific targeting rules, lifetime and budget. Generally, the targeting rules differentiate the volume, leading to different bid landscapes and utility (CTR/CVR) distributions. The campaign’s targeting rules and lifetime determine the auction volume it could receive. The campaign’s budget defines the upper bound of its cost during the lifetime.
Truth-telling bidding
For non-budget bid optimisation, only utility function is meaningful3
Take the gradient of net profit w.r.t. the bidding function and set it to 0,
for all , which derives
i.e., the optimal bid price is set as the impression value. Thus the truth-telling bidding is the optimal strategy when there is no budget considered.
The truth-telling property of is inherited from the classic second price auctions and the widely adopted VCG auctions in sponsored search [?] , which makes this bidding strategy quite straightforward and widely adopted in industry [?, ?]. However, the truth-telling bidding strategy is optimal only when the budget and auction volume are not considered.
Linear bidding
With the campaign lifetime auction volume and budget constraints, the optimal bidding strategies are probably not truth-telling. Extending from the truth-telling bidding strategy, [?] proposed the generalised bidding function with a linear relationship to the predicted CTR for each ad impression being auctioned:
where is a constant parameter to tune to fit the market competitiveness and the volume. Specifically, the optimal value of should just maximise the objective with the budget constraint on the training data.
[?] proved that the linear bidding function practically works well in various settings. However, from a scientific perspective, [?] did not provide any theoretic soundness as to why the optimal bidding function should be linear as in (75).
Budget constrained clicks and conversions maximisation
[?, ?] proposed a general bid optimisation framework to incorporate different utility and cost functions.
Assuming one wants to find the optimal bidding function to maximise the campaign-level KPI across its auctions over the lifetime, with total bid requests volume and budget
subject to
The Lagrangian of the optimisation problem (76) is
where is the Lagrangian multiplier.
Solving . Based on calculus of variations, the Euler-Lagrange condition of is
which is
(80) is a general condition of the optimal bidding function, where the specific implementations of winning function , utility function and cost function are needed to derive the corresponding form of optimal bidding function.
Solving . To solve , the bidding function can be explicitly written as , and the solution involves to solve
which is to find the to just exhaust the budget at the same time of running out the auction volume. In practice, (82) has no analytic solution but its numeric solution is very easy to obtain because and monotonously increase w.r.t. .
Later the analytic solution of and under some special setting of and will be shown.
First-price auction
With cost function as in (69), (80) is written as
which still depends on the detailed form of market price distribution to solve the . [?] tried an implementation in their paper:
Taking (85) and click utility (67) into (83):
which is the derived optimal bidding function in [?]. The analytical solution (87) shows that an optimal bidding function should be non-linear. The non-linearity is closely related to the probability of auction winning, but is loosely correlated with the prior distribution of the impression features.
If the market price follows a uniform distribution in , i.e.,
(83) is rewritten as
Taking as in (67) and the special case of uniform CTR distribution into (91):
Thus the analytic form of the optimal bidding function is
Second-price auction
Taking the definition of winning function (66) and the second-price cost function (70) into (80):
where it can be observed that the optimal bidding function is linear w.r.t. CTR . Just like the linear bidding function discussed in Section 5.3.3.
The solution of is obtained by taking (97) into the constraint
which is rewritten as
It can be observed that essentially the solution of makes the equation between the expected cost and the budget. Furthermore, as both and monotonously decrease as increases, it is quite easy to find a numeric solution of .
Similar to what derived in first price auction where the market price follows a uniform distribution in , i.e., and CTR follows a uniform distribution in and click utility , one can solve in (99). First, the cost function is
Eq. (5.34) is rewritten as
Thus the analytic form of the optimal bidding function is
Discussions
The implementation of the cost constraint in Eq. (5.11) needs careful modelling based on the data. [?] used the cost upper bound, i.e., the bid price, to control the cost and let the total value of cost upper bound be the campaign budget. Here, if one implements the expected cost in second price auction Eq. (5.5), the cost constraint in Eq. (5.11) might not be controlled by the budget. With about 50% probability, the budget will be exhausted in advance, which is not expected in practice.
One can easily find in the first-price bidding function Eq. (5.22), the bid price is jointly determined by utility function , and market parameter . Specifically, the bid price is monotonic increasing w.r.t. utility while decreasing w.r.t. . Moreover, different value settings for parameter also influence the final bid decision as is shown in [?]. As is defined in Eq. (5.20), one can tune the parameter to alter the winning probability so as to fit different market environments. In fact, one may conclude that the market consideration influences bid price by tuned , the budget constraint controls bid function by , while advertiser’s utility expectation could finally determine the final decision.
Let us take a look at the bidding strategy under second-price auctions. In Eq. (5.32), the bid price is mainly determined by utility . However, the bidding strategy constructs a bridge between utility and budget consideration by . Move the attention onto Eq. (5.34) and it can be found that is also controlled by this equation which takes both estimated CTR and winning probability into consideration. The latter two factors have low effects on bidding strategy through .
From the discussion above, one may find that both bidding strategies under either auction setting are influenced by three factors: advertiser’s expected utility, budget constraints and market information. While under first-price auction setting, the bidding strategy takes utility function and market price together, the strategy upon second-price auctions reflects utility more straightly.
For the bidding function under first-price auctions, more attention could be taken on the winning probability estimation problem and consequently to optimise the bidding strategy. It could be more crucial to take the market information into consideration in the utility function for second-price auctions. Finally, one may take a step forward to coordinate the optimisation for both CTR estimator and bidding strategy to further push the bidding performance [?].
Multi-campaign statistical arbitrage mining
[17] studied the problems of arbitrages in real-time bidding based display advertising in a multi-campaign setting.
On a display ads trading desk (or DSP), some advertisers would just pay per click or even pay per conversion so as to minimise their risk. From the perspective of the trading desk, it tries to earn the user clicks or conversions in pay-per-view spot market via real-time bidding. It is possible for the trading desk to find some cost-effective cases to earn each click or conversion with a cost lower than the advertiser’s predefined cost. In such case, the arbitrage happens: the trading desk earns the difference of cost between the advertiser’s predefined cost for each click/conversion and the real cost on it, while advertisers get the user clicks or conversions with no risk. Such click/conversion based transactions act as a complementary role to the mainstream guaranteed delivery and RTB spot market, and is a win-win game if the trading desk would successfully find the arbitrages.
In such a scenario, the profit (68) is the studied utility for each impression. The bid optimisation framework for a single campaign is
subject to .
Furthermore, such an arbitrage problem can be practically extended to the multiple campaign cases. The trading desk then acts as a meta-bidder for multiple campaigns. Each time receiving a bid request, the meta-bidder samples one from campaigns it serves and then calculates a bid for its ad. If the campaign sampling is a probabilistic process, i.e., sampling the campaign with a probability with . The vector notation of the campaign sampling probabilities is .
Thus the multi-campaign bid optimisation framework is written as
subject to
Given a training set, with the bidding function and campaign sampling , define the meta-bidder profit as and its cost as :
As the training set could change across different times and settings, and can be regarded as a random variable, with the expectation and the variance for profit, and the expectation and the variance for cost.
From a risk management perspective, the meta-bidding needs to control its risk of deficit while optimising its profit. By adding an extra risk control constraint, the meta-bidder optimisation framework is rewritten as
subject to
An EM-fashion approach is proposed in [17] to solve the above optimisation problem. Specifically, in the E-step, optimise Eq. (5.43) with the constraints Eqs. (5.45, 5.46, 5.47); in M-step, optimise Eq. (5.43) with the constraint of Eq. (5.44). When EM iterations converge, all the constraints are satisfied and the value of objective will get into a local optima.
Budget pacing
Besides the optimal bidding strategy, which can be regarded as a good budget allocation across different display opportunities, advertisers would also pursue a good budget allocation over the time, i.e., to spend the budget smoothly over the time to reach a wider range of audiences [?].
Generally, there are two types of budget pacing solutions: throttling and bid modification [?]. Throttling based methods maintain a pacing rate at each time step, which is the probability of the campaign participating in the incoming auction. Bid modification based methods adaptively adjust the bid price for each incoming auction to achieve the budget pacing target.
[?] provided a straightforward offline throttling based solution to model the budget pacing problem as a linear optimisation problem. Suppose the campaign’s daily budget is split into time slots, and the campaign’s daily budget is allocated across these time slots with . If the incoming bid request is associated with value and cost , and the decision of whether to place a bid for is denoted as , then the linear optimisation problem is
where represents the index set of all ad requests coming in at time slot . This solution cannot be applied online as there is no information of the volume, value and cost of the future.
Then the authors proposed their online solution of budget pacing:
where is the actual spend at time slot . Then, based on CPM stability assumption, the spend can be factorised as
where is the number of received bid requests in time slot ; is the budget pacing rate to be tuned in time slot . Therefore, setting the expected spend as the budget , the pacing rate of the next time slot is
which can be calculated based on real-time performance and the previous round pacing rate.
Further throttling based solutions such as [?], [?] are normally in the framework of optimisation and online pacing rate control.
Bid modification based methods are well investigated in sponsored search [?, ?], where the adjusted bid prices are set on keyword level. In RTB display advertising, feedback control based methods [?, ?, ?] are adopted for bid modification in the budget pacing task.
In the above work, the feedback controller is embedded in the bidding agent of the DSP. It monitors the real-time KPIs (e.g. CPM, auction winning ratio, CTR etc.) to obtain the error factor to the reference value. Then a feedback control function takes in such an error factor and outputs the control signal, which is used to adjust the bid price for each incoming bid request.
For example, [?] proposed to use proportional-integral-derivative (PID) control function to perform the bid modification to make the campaign achieve the predefined KPIs. As its name implies, a PID controller produces the control signal from a linear combination of the proportional factor, the integral factor and the derivative factor based on the error factor:
where the error factor is the reference value minus the current controlled variable value , the update time interval is given as , the change of error factors is , and , , are the weight parameters for each control factor.
Such control signal is then used to adjust the bid price
where is the original bid price calculated for the incoming bid request at and is the adjusted one.
Compared with throttling based methods, bid modification based methods are more flexible to achieve various budget pacing targets (bidding zero means no bid). However, such bid control highly depends on the predictable market competition, i.e. bid landscape as discussed in Section 3.3, while throttling based methods are more straightforward and normally work well in dynamic marketplaces [?].
Benchmarking
Compared to user response prediction datasets, the datasets of bidding strategy optimisation further needs the information about bid price, winning notice and winning prices. To the authors’ knowledge, so far there are two RTB datasets containing such information, namely iPinYou and YOYI datasets as mentioned in Chapter 4.
Similar to Chapter 4, here list a series of benchmarking literatures about bid optimisation in RTB display advertising [?, ?, ?, ?, ?, ?], each of which regards to a specific bid optimisation setting or objective.
Dynamic Pricing
In this chapter, we focus on publishers in the RTB ecosystem. Advertising provides them with major sources of revenue. Therefore, uplifting revenue by using various yield management tools makes one of the key topics on the publisher side. We start with reserve price optimisation and then move to a unified solution that combines various selling channels together from both the future time guaranteed selling and the current time RTB auctions.
Reserve price optimisation
An important tool for publisher’s yield management is the optimisation of reserve price, aka, floor price. A reserve price defines the minimum that a publisher would accept from bidders. It reflects the publisher’s private valuation of the inventory, so bids will be discarded if they are below the reserve price. In the second price auction, which is commonly used in RTB, the reserve price could potentially uplift the revenue. Figure 6.1 illustrates how the final price is calculated from bids with a reserve price. Let denote the descending bids and the reserve price. Then, the desirable case is where the publisher gains extra payoff of ; the neutral case is where the publisher has no extra gain; and the undesirable case is where the publisher suffers from a loss of .

Figure 6.1. The decision process of second price auctions on the publisher side. The desirable case is where the publisher gains extra payoff of . The soft floor prices, which make the process a lot more complicated, are ignored. Interested readers may refer to [9] for further discussion.
Formally, the problem could be defined as follows. For an auction, denote the final bids as where assume . Without a reserve price () the payoff could be denoted as . Now suppose the publisher sets a non-zero reserve price at each step, denoted by . The payoff function becomes:
The overall income is . It is feasible to assume there is zero payoff when the reserve price is too high. In practice, publishers usually redirect these impressions to managed campaigns or other ad marketplaces for reselling to reduce the risk of over-optimisation.
This optimisation problem has been previously studied in the context of sponsored search [?, ?, ?, ?]. However, the problem in the RTB context is different and unique. Firstly, the optimal auction theory requires knowledge of the distribution of the advertisers’ private yet true assessments of the impression before calculating the optimal reserve price [?]. In RTB, it becomes a lot harder to learn the distribution. As previously mentioned, an advertiser is required to submit a bid for each impression using his own algorithm, which is never disclosed to publishers and could rely heavily on privately-owned user interest segments. Besides, various practical constraints such as the budget, campaign life time, and even irrationality divert advertisers from bidding at private values. This difference makes the private value based algorithm inefficient in practice. Secondly, unlike sponsored search, an advertiser does not have the keyword constraint and faces an almost unlimited supply of impressions in RTB. Setting up an aggressive reserve price would easily move the advertisers away from those placements and force them to look for something cheaper.
In the RTB context, the reserve price optimisation problem has been studied in [?]. The authors present the analysis on bids to reject the Log-normal distribution hypothesis, propose a set of heuristic rules to effectively explore the optimal reserve prices, and look at the actions from the buy side to reject the attrition hypothesis. We will first briefly introduce the Optimal Auction Theory, then describe their work as follows.
Optimal auction theory
Regardless of the existence of reserve price, bidders are encouraged to bid their private values in the second price auctions [?, ?]. Note that this dominant strategy does not hold in modern sponsored search where quality scores are generally used [?] in ad ranking. Without quality scores, the strategy of bidding at the private value forms part of the Nash equilibrium of the system, meaning as time elapses advertisers have no incentive to change their bids, given that all other factors remain the same. In this non-cooperative game [5], the winner could, but would not, lower his bid to let other competitors win because losing the auction is not beneficial in either short-term or long-term (lowering the bid while still winning has no effect since the winner always pays the second highest bid).
Suppose the publisher knows the bidders’ private value distribution. The optimal auction theory mathematically defines the optimal reserve price [?, ?]. Suppose there are bidders and they are risk-neutral and symmetric, i.e., having identical value distributions. Each bidder has private information on the value of an impression, drawn from distribution , where denotes the probability that the advertiser’s private evaluation value is less than or equal to a certain number . Usually it is assumed Log-normal [?] or Uniform distribution [?]. Assuming private values are independently distributed, the distribution over value vector is
and then the optimal reserve price is given as (c.f., [5] for details):
where is the density function, the first order derivative of and is the publisher’s private value. In practice, could be obtained from a guaranteed contract with a flat CPM, or from another ad network where the average revenue is known.
The theory was evaluated in [?] and showed mixed results, as shown in Table 6.1. The results showed that the reserve price optimisation could lead to substantial revenue increase in some cases. Also, this proved for the first time that the Optimal Auction Design theory is applicable in practice.
| Group | Estimated impact on revenue | t-statistic | p-value |
| Keywords with fewer than 10 searches per day | -2.19% | -2.36 | 0.0183 |
| Keywords with at least 10 searches per day | 3.30% | 2.32 | 0.0201 |
| Optimal reserve price | -9.19% | -11.1 | |
| Optimal reserve price | 3.80% | 5.41 | |
| Average of bidders | 10.06% | 7.29 | |
| Average of bidders | 2.54% | 3.59 |
Table 6.1. Experiment results from [?].
Drawbacks in RTB practice
[?] evaluated the Optimal Auction Theory in the RTB practice. The authors implemented it following the Log-normal distribution assumption of bidders’ private values. They also adopted the symmetric assumption, i.e., there is only one distribution for all bidders. Under these assumptions the optimality of the auction under GSP is proved in [?] and Schwarz, 2006]. The estimation of Log-normal’s mean and standard deviation was obtained using the training dataset (impression-level logs from 14 Dec 2012 to 18 Jan 2013).
A few drawbacks were reported mostly due to the difficulty of learning bidders’ private values, i.e., . Firstly, a bidder could have a complex private value distribution which does not follow Log-normal. In RTB an advertiser computes a bid for each individual impression based on the contextual [?] and behavioural [?] data. The data is fed into their private models which are never disclosed to publishers or other advertisers. This is very different from sponsored search where search engines run bidding algorithms for advertisers and host auctions as a publisher at the same time. Also, in sponsored search the auctions are based on keywords, so the population of the bidders are relatively more stable, whereas in RTB, the auctions are at the impression level and the advertisers are given more flexibility on what to bid and how much to bid.
Following previous works in Game Theory, where researchers use an exploration period to collect and fit the private value distributions [?, ?], Uniform distribution at placement level and Log-normal distribution at both placement and impression level were tested in [?]. Although these distributions are widely adopted in research literature [?, ?], only a small portion of tests returned positive results as shown in Figures 6.2 and 6.3.
Secondly, it is assumed that advertisers bid at their private values in the second price auction. However, in practice, an advertiser may not know clearly his private valuation of an impression. Instead, he wants to achieve the best possible performance. Also in different stages (prospecting, optimisation, and retargeting, etc.) of an advertising campaign, the bidding strategy could change. This makes the bidding activity vary greatly across the limited flight time of a campaign.

Figure 6.2. Tests in [?] showed only bids from 3 out of 44 placements (6.82%) accept the Uniform distribution hypothesis. The Uniform distribution is tested by Chi-Squared (CQ) test and the Log-normal distribution is tested by Anderson-Darling (AD) test.

Figure 6.3. Tests in [?] showed only bids from less than 0.1% of all auctions accept the Log-normal distribution hypothesis. The plot shows a random sample of 1000 auctions. Only the Log-normal distribution is tested by Anderson-Darling test.
Thirdly, there are other practical constraints including accessibility of auction details, noise introduced by the frequent change of auction winners, c.f. Figure 4. These constraints need careful consideration when implementing the theory in RTB practice.

Figure 4. The change of winners for placements with different levels of competition in 4 days, reported in [?]. The fact that a bidder does not always win could add difficulty to reserve price detection if undisclosed. The result also implies the change rate does not necessary relate to the competition level.
Game tree based heuristics
[?] proposed a set of heuristics based on the game tree analysis. They dropped the repeated nature of auctions and assume the seller only considered the current auction thus did not learn the private values from history. The extensive form representation of the modified game is described as follows. The game tree is given in Figure 6.5.

Figure 6.5. The game between the winner and the publisher in the reserve price problem. [?] analysed the game between the winner and the publisher in the reserve price problem. At the leaf nodes the result information set as well as the payoffs of (winner, publisher) are presented. Note for the action the payoff of the winner could be negative if he has already been bidding the maximal affordable price. It is assumed that these cases happen at a chance of 50% due to no utilisation of historical data. Thus, the payoff of the publisher is discounted by 0.5 in these cases.
Player: the winner of auctions (advertisers) and the publisher .
The information set I before acting is the same for the winner and the publisher. It has two decision nodes: , the winning bid is equal to or higher than the current reserve price ; , the winning bid is lower than the reserve price.
The action set of the winner : , to increase to higher than ;
, to increase to lower than ;
, to decrease or hold to higher than ;
, to decrease or hold to lower than .
The action set of the publisher : , to increase or hold to higher than ; , to increase or hold to lower than ; , to decrease to higher than ; , to decrease to lower than .
The sequence of move: first the publisher, then the winner.
Based on the analysis, the authors claim the following set of heuristics to be the dominant strategy for the publisher.
The heuristics indicate that the bid price should be gradually reduced but increased again when lost the auction.
Exploration with a regret minimiser
[?] took a more theoretical approach to the problem. In their work they made similar assumptions and abstracted the problem as follows:
A seller is faced with repeated auctions, where each auction has a (different) set of bidders, and each bidder draws bids from some fixed unknown distribution which is the same for all bidders. It is important to remark that we need not assume that the bidders indeed bid their private value. Our assumption on the bidders’ behaviour, a priori, implies that if they bid using the same strategy, their bid distribution is identical. The sell price is the second-highest bid, and the seller’s goal is to maximize the revenue by only relying on information regarding revenues on past auctions.
The authors proposed an online algorithm that optimise the seller’s reserve price and showed that after steps ( repetitions of the auction) the algorithm has a regret of only . The work was inspired by [?] who discretised the range of reserve prices to price bins, and uses some efficient multi-armed bandit algorithm over the bins [?].
The proposed algorithm works in stages where each stage contains a few time steps. For stage 1, the algorithm does exploration by setting the reserve price to 0. Suppose this is played for steps and the revenues are observed, thus the empirical distribution of the second highest price is
and the initial estimation on the reserve price is
For every following step in stage , play and observe the revenues , where is computed as follows
with constraints
where is the approximation parameter and . Let
where is the confidence level and the confidence interval is defined as
where is either the total number of stages or an upper bound thereof. Then set
At the end of every time step, the empirical distribution is updated as
and the estimated reserve price is updated as
The proof is omitted here. Interested readers may refer to [?] for more details.
Programmatic direct
As discussed in Chapter 1, there are two major ways of selling impressions in display advertising. They are either sold in RTB spot through auction mechanisms or in advance via guaranteed contracts. The former has achieved a significant automation via real-time bidding (RTB); however, the latter is still mainly done over-the-counter through direct sales.
Guaranteed inventories stand for guaranteed contracts sold by top tier websites. Generally, they are: highly viewable because of good position and size; rich in the first-party data (publishers’ user interest database) for behaviour targeting; flexible in format, size, device, etc.; audited content for brand safety. Therefore, it is not surprising that guaranteed inventories are normally sold in bulk at high prices in advance than those sold on the spot market.
Programmatic guarantee (PG), sometimes called programmatic reserve/premium, is a new concept that has gained much attention recently. Notable examples of some early services on the market are iSOCKET.com, BuySellAds.com and ShinyAds.com. It is essentially an allocation and pricing engine for publishers or supply-side platforms (SSPs) that brings the automation into the selling of guaranteed inventories apart from RTB. fig:6.6 illustrates how PG works for a publisher (or SSP) in display advertising. For a specific ad slot (or user tag1), the estimated total impressions in a future period can be evaluated and allocated algorithmically at the present time between the guaranteed market and the spot market. Impressions in the former are sold in advance via guaranteed contracts until the delivery date while those in the latter are auctioned off in RTB. Unlike the traditional way of selling guaranteed contracts, there is no negotiation process between publisher and advertiser. The guaranteed price (i.e., the fixed per impression price) will be listed in ad exchanges dynamically like the posted stock price in financial exchanges. Advertisers or demand-side platforms (DSPs) can see a guaranteed price at a time, monitor the price changes over time and purchase the needed impressions directly at the corresponding guaranteed prices a few days, weeks or months earlier before the delivery date.

Figure 6. A systematic view of programmatic guarantee (PG) in display advertising reported by [10]: is the time period to sell the guaranteed impressions that will be created in future period .
[10] proposed a mathematical model that allocates and prices the future impressions between real-time auctions and guaranteed contracts. Similar problems have been studied in many other industries. Examples include retailers selling fashion and seasonal goods and airline companies selling flight tickets [11]. However, in display advertising, impressions are with uncertain salvage values because they can be auctioned off in real-time on the delivery date. The combination with RTB requires a novel solution.
Under conventional economic assumptions, it shows that the two ways can be seamlessly combined programmatically and the publisher’s revenue can be maximized via price discrimination and optimal allocation. In the model, advertisers are assumed to be risk-averse, and they would be willing to purchase guaranteed impressions if the total costs are less than their private values. Also an advertiser’s purchase behaviour can be affected by both the guaranteed price and the time interval between the purchase time and the impression delivery date. The dynamic programming solution suggests an optimal percentage of future impressions to sell in advance and provides an explicit formula to calculate at what prices to sell. It is found that the optimal guaranteed prices are dynamic and are non-decreasing over time. They also showed that the model adopts different strategies in allocation and pricing according to the level of competition. In a less competitive market, lower prices of the guaranteed contracts will encourage the purchase in advance and the revenue gain is mainly contributed by the increased competition in future RTB. In a highly competitive market, advertisers are more willing to purchase the guaranteed contracts and thus higher prices are expected. The revenue gain is largely contributed by the guaranteed selling.
Ad options and first look contracts
In theory, RTB auction has many desirable economic properties. However, it suffers a number of limitations including the uncertainty in payment prices for advertisers, the volatility in the publisher’s revenue, and the weak loyalty between advertisers and publishers. Options contracts, as a concept, have been introduced recently into online advertising from finance [?] to solve the non-guaranteed delivery problem as well as provide advertisers with greater flexibility [?, ?]. In practice, the option contract has been implemented as a “First Look” tactic that is widely offered by publishers who offer prioritised access to selected advertisers within an open real-time bidding (RTB) market environment [9]. Instead of the winning impression going to the highest bid in RTB, “First Look” affords first the right of refusal for an impression within an exchange based on a pre-negotiated floor or fixed price. If the buyer requests it, they are guaranteed to win the impression. This privilege is typically granted in return for a commitment. Formally, an ad option is a contract in which an advertiser can have a right but not obligation to purchase future impressions or clicks from a specific ad slot or keyword at a pre-specified price. The pre-negotiated price is usually called the strike price in finance. In display advertising, the price can be charged as either a CPM or CPC depending on the underlying ad format. The corresponding winning payment price of impressions or clicks from real-time auctions is called the underlying price. The publisher or search engine grants this right in exchange for a certain amount of upfront fee, called the option price. The option is more flexible than guaranteed contracts as on the delivery date, if the advertiser thinks that the spot market is more beneficial, he can join online auctions as a bidder and his cost of not using an ad option is only the option price.
[?] illustrated such an idea. Suppose that a computer science department creates a new master degree programme on ‘Web Science and Big Data Analytics’ and is interested in an advertising campaign based around relevant search terms such as ‘MSc Web Science’, ‘MSc Big Data Analytics’ and ‘Data Mining’, etc. Similarly, in display advertising, webpages and underlying user interests are classified into predefined categories and therefore can be equally used as targeting categories (keywords). The campaign is to start immediately and last for three months and the goal is to generate at least 1000 clicks on the ad which directs users to the homepage of this new master programme. The department (i.e., advertiser) does not know how the clicks will be distributed among the candidate keywords, nor how much the campaign will cost if based on keyword auctions. However, with the ad option, the advertiser can submit a request to the search engine to lock-in the advertising cost. The request consists of the candidate keywords, the overall number of clicks needed, and the duration of the contract. The search engine responds with a price table for the option, as shown in Figure 6.7. It contains the option price and the fixed CPC for each keyword. The CPCs are fixed yet different across the candidate keywords. The contract is entered into when the advertiser pays the option price.

Figure 6.7. [?] designed the schematic view of buying, selling and exercising a multi-keyword multi-click ad option.
During the contract period , where represents the contract expiration date (in terms of year format and is three months in this example), the advertiser has the right, at any time, to exercise portions of the contract, for example, to buy a requested number of clicks for a specific keyword. This right expires after time or when the total number of clicks have been purchased, whichever is sooner. For example, at time the advertiser may exercise the right for 100 clicks on the keyword ‘MSc Web Science’. After receiving the exercise request, the search engine immediately reserves an ad slot for the keyword for the advertiser until the ad is clicked 100 times. In our current design, the search engine decides which rank position the ad should be displayed as long as the required number of clicks is fulfilled - it is assumed there are adequate search impressions within the period. It is also possible to generalise the study in this section and define a rank specific option where all the parameters (CPCs, option prices etc.) become rank specific. The advertiser can switch among the candidate keywords and also monitor the keyword auction market. If, for example, the CPC for the keyword ‘MSc Web Science’ drops below the fixed CPC, then the advertiser may choose to participate in the auction rather than exercise the option for the keyword. If later in the campaign, the spot price for the keyword ‘MSc Web
Science’ exceeds the fixed CPC, the advertiser can then exercise the option.
Figure 6.7 illustrates the flexibility of the proposed ad option. Specifically, (i) the advertiser does not have to use the option and can participate in keyword auctions as well, (ii) the advertiser can exercise the option at any time during the contract period, (iii) the advertiser can exercise the option up to the maximum number of clicks, (iv) the advertiser can request any number of clicks in each exercise provided the accumulated number of exercised clicks does not exceed the maximum number, and (v) the advertiser can switch among keywords at each exercise with no additional cost. Of course, this flexibility complicates the pricing of the option, which is discussed next.
One of the key issues for ad options contracts is their pricing and valuation. [?] and [?] proposed ad options between buying and non-buying the future impressions and consider the situation where the underlying price follows a geometric Brownian motion (GBM) [?]. [?] investigated a special option for sponsored search whereby an advertiser can target a set of keywords for a certain number of total clicks in the future. Each candidate keyword can be specified with a strike price and the option buyer can exercise the option multiple times at any time prior to or on the contract expiration date. According to [?], there is only a very small number of ad slots whose CPM or CPC satisfies the GBM assumption. [?] addressed the issue and provided a more general pricing framework, based on lattice methods. It used a stochastic volatility (SV) model to describe the underlying price movement for cases where the GBM assumption is not valid. Based on the SV model, a censored binomial lattice is constructed for option pricing. Lattice methods can also be used for pricing display ad options with the GBM underling. Several binomial and trinomial lattice methods were examined to price a display ad option and deduce the close-form solutions to examine their convergence performance.
Attribution Models
Online advertising provides feasibility to track users’ interaction on the displayed ads such as the clicks. However, a user’s final conversion (e.g. item purchase) is usually contributed by multiple ad events, namely touchpoints. Thus theoretically the credit of such a conversion should be properly allocated over these touchpoints.
As illustrated in Figure 7.1, conversion attribution is the problem of assigning credit to one or more channels for driving the user to the desirable actions such as making a purchase. It is important to have a “right” attribution model in order to reallocate budgets on different channels and campaigns [?]. However, such a problem is theoretically and practically difficult to solve since there is no “ground-truth” data indicating how the credit should be perfectly allocated across different channels. In this chapter, we present a series of models proposed for the conversion attribution problem.

Figure 7.1. An illustration of conversion attribution over multiple touchpoints.
Designing a good conversion attribution is important for RTB display advertising although it is not unique in this area. Because of the high flexibility of impression-level decision making in RTB, correctly or reasonably allocating the conversion credit across the multiple touchpoints would effectively avoid cheating and gaming the ad systems.
Heuristic models
Basically, heuristic models are based on human-created rules possibly according to their business experiences. Such models are simple, straightforward, and widely adopted in industry.
A list of heuristic models discussed by Google Analytics [?] are provided in Table 7.1.
| Model | Attribution | ||||
| touchpoint | 1 | 2 | 3 | 4 | |
| Last touch | 0% | 0% | 0% | 100% | |
| First touch | 100% | 0% | 0% | 0% | |
| Linear touch | 25% | 25% | 25% | 25% | |
| Time decay | 10% | 20% | 30% | 40% | |
| Position based | 40% | 10% | 10% | 40% | |
| Customised | 5% | 25% | 15% | 55% |
Table 7.1. Several heuristic attribution models on touchpoints in Figure 7.1.
Last touch: the last touchpoint earns 100% credit. Last Touch Attribution (LTA) model is the most widely adopted conversion attribution mechanism in display advertising [?]. It is quite straightforward and easy to implement. The advertiser only needs to check the last touchpoint before the user conversion and count such a conversion on it. However, LTA obviously encourages DSPs to focus the campaign budget on the late touchpoints, such as retargeted users, i.e., the users who have already showed their interest on the advertised products. As such, less budget will be put on the new users, which indeed hurts the advertisers’ benefit in the long term.
First touch: the first touchpoint earns 100% credit. This model drives the DSPs to run any performance-driven campaign just like branding campaigns because the target is to cover as many new users as possible.
Linear touch: the conversion credit is evenly allocated across all the touchpoints. This model might be useful if campaigns are designed to maintain users’ awareness throughout the campaigns’ lifetime.
Position based: the first and last touchpoints are highlighted during the customer journey, which directly (but might not effectively) encourage branding and performance-driven campaigns.
Time decay: the fresh touchpoints are regarded as more contributive than the old ones. This model might be helpful if the business (e.g. promotion, sales) is operated in a short period.
Customised: the advertiser can generally create their own rules to allocate the conversion credit across the touchpoints.
Although the above heuristic models are still popular, they are usually from the advertisers’ intuition or personal experience, instead of the data. It is not hard to see that the heuristic models are far from optimal. One may easily game the systems, particularly the last-touch attribution and first-touch attribution models. For instance, the so-called “cookie bombing” strategies of some advertisers or DSPs are to game the ad systems by advocating quantity over quality. One can deliver the ads as cheaply as possible, regardless of targeting, content or frequency, and drive the number of reached users in order to just get credited by either the last-touch attribution or the first-touch attribution models. We next introduce multi-touch and data-driven attribution models.
Shapley value
We provide a quick introduction to Shapley value [?], a concept from cooperative game theory which aims to fairly allocate the utility of the game across the coalition of players.
In the online advertising scenario, Shapley value of the -th touchpoint of the customer journey is
where is the set of the whole channels; is an arbitrary subset of , including the empty set ; denotes the achieved utility of the coalition game. The calculation is straightforward: the Shapley value of is the weighted average of the improvement of the expected and the weight is the probability of a -length sequence starting with .
The factors and in (131) are calculated from the data statistics (simply by counting). However, the weight terms come purely from permutation and combination without considering the data distribution.
In the next section, we shall introduce a series of full data-driven probabilistic models.
Data-driven probabilistic models
[12] first presented the concept of data-driven multi-touch attribution. In their paper, two models are implemented, namely bagged logistic regression and a simple probabilistic model.
Bagged logistic regression
The idea of bagged logistic regression is to predict whether the user is going to convert given the current ad touch events. Without the consideration of repeated touches from the same channel, the input data of the logistic regression is the vector of the user’s ad touch events , where is the binary value indicating whether the user has been touched by the channel . The corresponding is the binary value of whether the user made the final conversion.
[12] proposed to use bagging process to train the logistic regression with sampled data instances and sampled channels so that the averaged weight of each channel is more robust and reliable. The averaged weight of each dimension is regarded as the importance of the channel used for the conversion credit and budget allocation.
A simple probabilistic model
[12] also proposed a simple probabilistic model which combines the first- and second-order channel conditional conversion probabilities. For a given dataset, the first-order conditional conversion probability of channel is calculated as
where and are the number of users ever exposed to channel with and without final conversions, respectively. Similarly, the second-order conditional conversion probability of a channel pair is calculated as
where and are the number of users exposed to channels and with and without conversions, respectively. Then the contribution of channel based on the dataset is summarised as
where denotes the number of channels other than .
From the above equation we can see that the proposed probabilistic model is indeed a simplification to the Shapley value model: (i) it only considers the first- and second-order channel combinations; (ii) the weight of the first order conditional probability is arbitrarilyset as 1/2, which is neither consistent with (132) nor calculated by the data.
An extension to the probabilistic model
Extending from both Shapley value [?] and the probabilistic model [12], [?] proposed a causal framework for multi-touch attribution. The importance of channel is calculated as
where is the set of the whole channels; is an arbitrary subset of , including the empty set , just like (132). But the calculation of probability is totally based on the data observation instead of the permutation and combination in (132) without considering the data distribution.
Other models
There are more relevant papers about conversion attribution. [?] developed a hidden Markov model (HMM) to tackle the attribution problem based on the concept of a conversion funnel. [?] proposed a Markov graph to model the first- and high-order Markov walks in the customer journey. [?] suggested an asymmetric “bathtub shape” time-weighted attribution model for online retailer advertising. [?] assumed the time-decay attribution patterns (similar with the one discussed in Section 7.1) and proposed to leverage Cox time survival model to calculate the credit allocation. Besides the previously mentioned causal probabilistic inference model [?], there are further causal inference research for conversion attribution [?, ?]. [?] proposed a mutually exciting point process to model the path to the purchase in online advertising. People also focused on the path to the purchase [?]. The incremental utility given a channel is also formally studied in [?] with an econometric model and in [?] with a boosted tree Machine Learning model.
After the discussion of various multi-touch attribution models, we explain how they can be leveraged for budget allocation [?] and bidding [?], yielding better advertising performance.
Applications of attribution models
With a multi-touch attribution model, from the micro perspective, the credit of a particular conversion can be assigned over multiple previous touchpoints, which motivates MTA-based bidding strategies in each channel [?]. From the macro perspective, it is feasible for the advertiser to make a sensible budget allocation over different channels to optimise the overall advertising performance [?].
Lift-based bidding
The traditional bidding strategies discussed in Chapter 5 are called value-based bidding strategies as the bidding is based on the estimated value (i.e. utility) of the potential impression. For example, let be the conversion rate of the ad impression and be the value of the conversion, then the truth-telling bidding strategy will bid
Recently, [?] proposed a concept of lift-based bidding strategies, where the lift of conversion rate of the user after showing the ad is estimated as and the corresponding bid price is
The lift CVR indeed corresponds to the conversion credit assigned to such touchpoints from a multi-touch attribution model:
By contrast, in (140) for last-touch attribution.
The basic assumption of lift-based bidding strategies is the user could make the conversion in any context, even if there is no ad exposure at all. As such, in any context with any previous touches, denoted as , there is an underlying conversion rate for each user, and an ad impression is possible to lift the user’s conversion rate .
[?] proposed to leverage gradient boosting decision trees (GBDT) to estimate for each case and then calculated the CVR lift. They further proved that such a lift-based bidding strategy (138) yields more conversions than the value-based bidding strategy (137). This is intuitive: the value-based bidding strategy focuses the campaign budget on high-CVR users but such users are already likely to convert and further ad exposures do not improvement the CVR much; the lift-based bidding strategy allocate the budget on the impressions according to the impression contributions on the CVR, which improves the expected conversion number of the campaign.
Unfortunately, the experiment of [?] showed that although such a lift-based bidding strategy indeed brought more conversions to the advertiser, more conversions are assigned to the competitive value-based bidding strategies than the lift-based one because of the last-touch attribution mechanism. Only when multi-touch attribution mechanism is adopted for all the campaigns of the advertiser or even in the whole RTB marketplace, can the lift-based bidding strategies be widely used, which will push the market to a higher efficient one.
Budget allocation
[?] proposed a framework of performance-driven campaign budget allocation across different channels with a certain attribution model as input. Suppose there are channels of a campaign , the maximum spending capability of each channel is , the campaign global budget is , and the ROI of each channel is , then the budget allocation problem is formulated as
where is the budget allocated to the channel , which are to be optimised. The attribution model reflects in the ROI calculation of each channel :
where represents an observed conversion, is the monetised value of , is the conversion credit assigned to channel according to the attribution model.
For the multi-touch attribution model, [?] adopted the one proposed by [12]
where is calculated as in (135). In their 12-day online experiment, where each channel is the line item (sub-campaign) of the campaign, the budget allocation bucket with MTA consistently outperformed the one with LTA.
Fraud Detection
As reported by Interactive Advertising Bureau’s (IAB) in 2015, ad fraud is costing the U.S. marketing and media industry an estimated $8.2 billion each year [?]]. The report contributes $4.6 billion, or 56%, of the cost to “invalid traffic”, of which 70% is performance based, e.g., CPC and CPA, and 30% is CPM based. These are already staggering numbers comparing with the annual spend of $59.6 billion in U.S., however, because ad fraud is hard to detect and tools to protect advertisers are immature, the actual numbers could be much higher.
Although researchers have devoted a great effort in auction mechanism design to avoid manipulation, as discussed in Chapter 3, there are indeed opportunities to game the system, especially when participants do not aim to win auctions, or the seller does not have genuine impressions to sell. Ad fraud has existed since the beginning of sponsored search, mainly in the form of click fraud. In recent years it has been gaining traction, as RTB is now being widely adopted [?]. The distributed structure of RTB ad exchanges makes it easier to commit and conceal fraud. In this chapter, we first review different types of ad fraud, and then introduce countermeasures, focusing on impression fraud which is getting more and more prevalent in RTB [?, ?].
Ad fraud types
Ad fraud types have been explained well in [?, ?]. In general, we could follow the definition by [?]:
"Invalid traffic including both impressions, clicks, and conversions which are not to be the result of the genuine user interests."
There are generally three types of ad fraud, which corresponds to the three types of commonly used pricing models:
Impression fraud, where the fraudster generates fake bid requests, sells them in ad exchanges, and gets paid when advertisers buy them to get impressions;
Click fraud, where the fraudster generates fake clicks after loading an ad; and
Conversion fraud, where the fraudster completes some actions, e.g., filling out a form, downloading and installing an app, after loading an ad.
Note that different types of fraud often appear together. For example, click fraud usually comes with impression fraud, as described by [?] to achieve a reasonable CTR in analytical reports. In this chapter we discuss the fraud issues mainly in the context of RTB, however, note that they usually have a very close relationship and similar techniques with ones in traditional advertising channels, e.g., click fraud in Sponsored Search.
Ad fraud sources
Ad fraud is generated from a variety of sources. Due to its profit potential, many parties, especially the supply side, are attracted to the business, creating complex structures to take advantage of the distributed online advertising ecosystem. In this section we describe a few sources, including pay-per-view networks, botnets, and competitor’s attack. If one could know where the fraud is from and how it is created, he/she may be in a better position to detect and filter it from the normal traffic.
Pay-per-view networks
Pay-per-view (PPV) networks have been comprehensively studied in [?]. Authors set up honeypot websites and purchased traffic from public available traffic-generation service providers. These providers usually offer a specified volume of traffic at a target website over a specified time period. Many of them support advanced features like geography targeting, mobile traffic, or click events. In their study, authors report that most of the traffic comes from the PPV networks, which pays legitimate publishers for implementing their tags. These tags are used to create Pop-Under windows which load the target website. Pop-Under windows are below the current browser window and usually have a size of 0x0 pixels, thus cannot be easily discovered and closed by ordinary Internet users. This process is illustrated in Figure 8.1.

Figure 8.1. How pay-per-view (PPV) networks generate traffic.
The characteristics of the PPV network traffic are reported by [?]: Most of the purchased traffic does not follow the normal diurnal cycle and there is little interaction from purchased traffic. Also it has been shown that there are large number of incomplete loads from the PPV traffic, where the best case is approximately 60%. Many different IP addresses are used especially for larger purchases. Some PPV networks are able to provide thousands of unique IPs with little overlap with the public IP blacklists. In addition, there is a great diversity of User Agents, but almost half of the views have a height or width of 0, which is consistent with the idea of using Pop-Under windows to generate fake impressions.
These characteristics then shed light on building a detection and filtering system. Based on these discoveries, a few countermeasures are proposed in the paper. Advertisers could employ these methods to get a better control of ad spend.
Viewport size check: valid impressions will not be displayed in a 0x0 viewport, which is invisible to users;
A referer blacklist, which checks if the traffic is from the PPV networks;
A publisher blacklist, which avoids buying traffic from publishers who participate in the PPV networks.
Botnets
[13] provided a good survey on botnet and its detection. Botnets are usually built with compromised end users’ computers. These computers are installed with one or multiple software packages, which run autonomously and automatically. Taking over personal computers helps botnets avoid botnets avoid detection. It diversifies the IP addresses and geographic locations, masking the loads of traffic they send across the Internet. Computers could get infected by accessing a hacked Wi-Fi network, web browser or operating system vulnerabilities, worms, installing software with Trojan horses or backdoors. Once infected, they join a network and listen to and execute commands issued by the botnet owner, or the botnet master.
In history, botnets have been used to steal credentials, to extort money with the threat of deploying Distributed Denial of Service (DDoS), and to send spams. Recently, botnets have been used to conduct ad fraud more often and have been reported to steal billions of dollars from advertisers every year [?].
Once a computer is under the control of a botnet, it can generate Internet traffic as the botnet master commands. The traffic is then sold to publishers who believe they could make more money by reselling the traffic to ad networks or ad exchanges they are part of and do not get caught, or directed to target websites with ad tags set up by botnet master himself.
There are mainly two ways to generate traffic on an infected computer:
Hijack the original network traffic and inject / replace ad code [15];
Open browser windows which are invisible to end users to load target website [?].
Note that in the second case, the botnet softwares are capable of generating clicks, too.
There are a few ways of detecting a botnet as discussed by [16].
Signature based detection, which extracts software / network package signature from known botnet activities;
Anomaly based detection, which attempts to detect botnets based on several network traffic anomalies such as high network latency, high volumes of traffic, traffic on unusual ports, and unusual system behaviour that could indicate presence of malicious bots in the network;
DNS based detection, which focuses on analysing DNS traffic which is generated by communication of bots and the controller;
Mining based detection, which uses Machine Learning techniques to cluster or classify botnet traffic.
An example of the last approach is Google’s analysis on z00clicker, as reported in [?] and shown in Figure 8.2. The click pattern of the known botnet is obviously from the one generated by ordinary users. By mining and classifying click patterns of impressions, one may be able to identify undiscovered botnets, too.

Figure 8.2. [?] reported the unique click patterns from a botnet z00clicker.
Competitors’ attack
Advertisers spend their budget in online advertising to buy impressions and clicks. This gives an advertiser’s competitors a chance to attack by intentionally loading and clicking its ads, especially in the Sponsored Search scenario, as described by [?]. These fraudulent clicks, which will be marked invalid if identified, usually have the intention to drain the competitor’s advertising budget. Once the budget is completely drained, not only will the attacker’s ads be shown exclusively to target users, but he could also pay less due to the nature of the Second Price Auction.
Similarly, a competitor could choose to load advertiser’s ads intentionally and repeatedly, but without clicking on them. The process is similar to impression fraud in the PPV networks and by Botnets discussed above. In Sponsored Search, this attack usually results in a low CTR of ads which in turn heavily affects the Quality Score. With a low Quality Score the advertiser will suffer from suboptimal ranking positions, and/or will have to pay more to secure an advertising slot. In the RTB context, this attack could aim to deplete the advertiser’s budget, then the competitor could buy the specific inventory at a lower price.
Other sources
There are other sources of ad fraud, or cheating behaviours, in the context of RTB [?]:
Hired spammers;
Keyword stuffing, where a publisher stuffs the webpage with irrelevant keywords (usually invisible to users) in the hope of retrieving high value ads;
Impression stuffing, where a publisher "stacks" many banners together or make them invisible to get a large number of impressions per page view;
Coercion, where the publisher explicitly ask users to click on ads to support the website, or obfuscates ads with regular content;
Forced browser action, where the attacker forces the user’s browser to load additional webpages (e.g., Pop-up ads) or click on ads.
Ad fraud detection with co-visit networks
Ad fraud detection is usually an unsupervised learning problem and it is difficult to capture the ground-truth. [?] proposed a method to identify malicious website clusters (which generate fraud impressions) by looking at the co-visit network. The co-visit network is defined on a bi-partite graph of browsers (users) and websites that the browsers are observed visiting. is the set of edges between the browsers and the websites they are observed at over a pre-specified period of time (e.g., one day or one week). After normalising the number of browsers on each website and introducing a threshold on the co-visitation rate, the co-visit network could be established on the projection:
In the network, an edge will be created between two website nodes if there are at least of users on website also visited website . By setting the threshold to the authors report two networks from Dec. 2010 and Dec. 2011 respectively, as shown in Figure 8.3.

Figure 8.3. The co-visit networks of Dec 2010 (left) and Dec 2011 (right) reported by [?].
The authors claim the clustered websites are usually malicious because their users do not show the same behaviour as in random samples. In other words, users typically do not share the tastes in choosing websites, unless the websites are extremely popular. This difference is shown in Figure 8.4.

Figure 8.4. The percentage of user overlap for a network of suspicious websites on the left and for a random group of websites on the right reported by [?].
Feature engineering
Ad fraud detection has a highly targeted goal which is very different from other topics in online advertising. Therefore, it is important to develop a unique and comprehensive feature engineering workflow to capture the characteristics of traffic. In [?], the authors reported the results of Fraud Detection in Mobile Advertising (FDMA) 2012 Competition. The competition was the first of its kind which used datasets from real-world advertising companies. The challenge of the competition was considered a classification problem with a publisher dataset and a click dataset. Participants were asked to determine the status of a publisher among OK, Observation, and Fraud. The organisers of the competition used Average Precision metrics [?] to evaluate models, which favours algorithms capable of ranking the few useful items ahead of the rest.
The summary from competition teams reveals a lot of insights of important features in this task, for example,
Total and average number of clicks and standard deviation of different time intervals;
Total, distinct, and average number of Referer URLs and standard deviation;
Total, distinct, and average number of Device User Agents and standard deviation;
Total, distinct, and average number of IPs and standard deviation;
Country, city, or finer grain geo-location of users;
Second order features could be created by combination. Temporal features could be added, too. For example, total number of clicks with Browser=Chrome and day-part=Morning.
With these features, the competition participants have built classification models. Most of them chose to use ensemble models. For example, the second winning team have reported the following structure as shown in Figure 8.5.

Figure 8.5. An ensemble model for Ad fraud detection in FDMA 2012 competition [?].
Given different context, the detector could have access to more features. For example, in [?] the authors report the feature importance for ad fraud detection in Android apps. Nine out of the top ten most important features were derived from the query parameter of URLs, such as the number of enumeration parameters, the number of low and high entropy parameters, and the total number of parameters. Also, the authors were able to construct the ad request tree, as shown in Figure 8.6. Such trees proved valuable in providing the complete query parameters, depth and width as additional features.

Figure 8.6. Example ad request tree with click illustrated by [?]. Nodes in blue are images and nodes in green are static web content. Nodes with a dotted outline are for requests with a known ad provider hostname.
Viewability methods
In order to reduce advertisers’ unnecessary cost on the traffic from trivially design robots and non-intentional traffic from true users, viewability methods are designed to add into the ad impression counting mechanism.
[17] investigated users’ short-term memory after viewing the ad creatives (the text, picture, or video that the advertiser wants to show to users) in different settings of displayed pixel percentage and exposure time. The goal of the study was to find how the displayed pixel percentage and the exposure time influence the users’ ad recall, and which impression viewability measurement best matches the users’ remembered ad.
The displayed pixel percentage for rectangle ad creative in the viewport can be calculated by the displayed height percentage times the displayed width percentage. Therefore, the bounds of browser’s viewport and each ad creative were tracked by [17].
Figure 8.7 shows the relationship of the variables. In webpage coordinates, the upper left point is the origin point. The lower place means the higher -axis value and the right place means the higher -axis value. Specifically, the four ratios are calculated as follows.

Figure 8.7. Advanced pixel percentage tracking diagram from [17].
In Figure 8.7, , , thus the pixel percentage is 60%. Given an impression measurement with the pixel percentage threshold 50%, the measurement will count this ad impression. Note that when any of the four factors is negative value, the entire ad creative is outside of the viewport, thus the pixel percentage is calculated as zero.
The exposure time is associated with a pixel percentage threshold. For example, if the pixel percentage is 50%, only after half pixels have been shown in the viewport does the tracking system start to count the exposure time. If one does not want any pixel percentage threshold, just set it as 0%. If the measured exposure time has surpassed the predefined threshold, e.g., 2 seconds, then the measurement counts this ad impression.
Specifically, [17] used the tick counts based methods to calculate the exposure time. For example, for the measurement of 50% pixel percentage and 2 seconds exposure time, the tick counter will start to track the time once the pixel percentage meets 50%. Then tick counter calls the pixel percentage tracking algorithm every 0.1 second for 20 times. Every time the pixel percentage tracking algorithm checks whether the current pixel percentage is no less than 50%. If it returns false, the tick counter will restart the counting. If the tick counter counts up to 20, the exposure time and pixel percentage thresholds are both reached, thus the measurement counts this ad impression.
The user study on 20 participants were conducted in the experiment of [17]. The empirically optimal threshold of display percentage is 75% and that of exposure time is 2 seconds.
Besides the research study, there exists similar industrial criteria to filter out the useless ad traffic. In 2013, Google announced that the advertisers were charged only for the viewed ad impressions, where an ad was considered as viewed only if the pixel percentage was no less than 50% and the exposure time was no less than 1 second [18].
Other methods
There are a few other methods to fight ad fraud [?]. Bluff ads, or honeypot ads are the ones sent by ad networks or exchanges to publishers. The ads contain irrelevant display information (either texts or images) and act as a litmus test for the legitimacy of the individual clicking on the ads [20]. Fraudsters could be identified if they register a high CTR on bluff ads.
One can also check website popularity and ranking: the number of impressions a publisher is generating for their webpage can be checked against known, trusted website rankings such as Alexa or Compete. If the publisher has much more traffic than their page ranking would suggest, this would be indicative of fraudulent activity [?].
The Future of RTB
In RTB based display advertising, there are fruitful research opportunities that can be extended from the present study. In a broader scope, RTB display advertising has become a significant battlefield for big data. As the advertising transactions are aggregated across websites in real time, the RTB display advertising industry has a unique opportunity to understand the internet traffic, user behaviours, and online transactions. As reported, a middle range Demand Side Platform (DSP) currently would process more than 30 billion ad impressions daily, while the New York Stock Exchange trades around 12 billion shares daily. It is fair to say that the transaction volume from display advertising has already surpassed that of the financial market. Yet, both markets bear a certain similarity. While the financial market uses a double auction to create bid and ask quotes, RTB (Real-time Bidding) display advertising adopts the second-price auction to gather bid quotes from advertisers once an impression is being generated. As more targeted algorithms are being proposed, advertising optimisation becomes more resembling to that of the financial market trading and tends to be driven by the marketing profit and Return-On-Investment (ROI). That is, there is an explicit and measurable campaign goal of acquiring new users and obtaining sales from the acquired users. Thus, one of the next challenges is to properly bid for an ad impression to drive the profit and ROI. This challenge becomes essential to performance-driven campaigns.
For a DSP, better models are to be explored in order to improve user response estimation [?, ?, ?]. In particular, deep learning methods have started to attract more attention since 2016 and have already demonstrated their potential in performance. For bid optimisation, a more natural treatment would be dynamic decision making instead of a static one. We would expect deep reinforcement learning techniques [?] to be explored for modelling the bidding decision process. For instance, the bidding for a given ad campaign would repeatedly happen during its lifespan before the budget runs out. As such, each bid is strategically correlated by the constrained budget and the overall effectiveness of the campaign (e.g., the rewards from generated clicks), which is only observed after the campaign has completed. Thus, an optimal bidding strategy should sequentially and dynamically allocate the budget across all the available impressions on the basis of both the immediate and future rewards [?].
As the industry becomes more mature, the RTB infrastructure would be able to take more means for trading ad placements. For instance, header bidding has recently emerged as a new way of conducting direct auctions, by getting rid of the inefficiencies of a "waterfall" sequence of selling their ad inventories. A futures exchange could be established in order to reduce the uncertainty and risk of real-time inventory buying [?, ?, 10].
To sum up, RTB display advertising is an important and challenging playground for the most advanced interdisciplinary research and practice of information retrieval, data science, machine learning and economics. We have presented a diverse set of current research topics and their solutions in this monograph. We expect further deep and advanced research and industrial innovation on RTB to emerge, both algorithmically and systematically.
A RTB Glossary
A summary of the terminology used in the monograph, which is also presented in [?].
Ad Exchange A marketplace which connects the media sellers (publishers) and buyers (advertisers) via network message parsing with a predefined protocol, and select the buyers for each sold media inventory (ad impression) by auctions.
Ad Inventory A notion of the advertising volume regarded as the virtual assets owned by the publisher. The unit of ad inventory is an ad display opportunity, i.e., an ad impression.
Ad Slot A region of the page to place the ad creative.
AWR, Auction Winning Ratio From the micro perspective, AWR means the probability of winning a specific ad auction with a specific bid value; from the macro perspective, AWR means the impression number divided by the participated auction number from a certain volume during a certain period.
Bid, Bid Value, Bid Price The amount of the money the advertiser wants to pay for the ad display opportunity being auctioned.
Bid Optimisation The designing of the bidding function such that the consequent advertising performance, measured by some KPIs, is optimised as mush as possible.
Bidding Agent A functional module of performing bid calculation for each received bid request and a qualified ad in DSP.
Bidding Function The function abstracted from the bidding strategy inputs a bid request and possibly some environment information and outputs the bid price.
References
- [1][Breiman, 1996] Breiman, L. (1996). Bagging predictors. Machine Learning, 24(2), 123–140.DOI
- [2][Breiman, 2001] Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32.DOI
- [3][Zhang et al., 2014c]
- [4][Zhang et al., 2016e]
- [5]Osborne, M. J., & Rubinstein, A. (1994). A Course in Game Theory.
- [6]Milgrom, P. (2004). Putting Auction Theory to Work.
- [7]Gummadi et al., 2012
- [8]Berger, 1985DOI
- [9]Yuan et al., 2013
- [10][Chen et al., 2014]
- [11][Talluri and van Ryzin, 2005]
- [12][Shao and Li, 2011]
- [13][Feily et al., 2009] M. Feily, A. Shahrestani, and S. Ramadass. A Survey of Botnet and Botnet Detection. 2009.DOI
- [15][Thomas et al., 2015]. 2015.
- [16][Vratonjic et al., 2010]. 2010.
- [17][Zhang et al., 2015].
- [18][BBC, 2013].
- [20][Haddadi, 2010].