Second Price Auctions

How the winner of a second price auction is chosen and what it pays, including relevancy scores, floor prices and CPC.

Overview

In a second price auction, the winning ad does not pay its own bid. It pays what it needed to match the runner-up's Ad Rank, plus one cent.

For instance:

Advertiser #1 - $5.00 CPM bid
Advertiser #2 - $4.00 CPM Bid

With second price auctions, Advertiser #1 would win and pay a $4.01 CPM.

This is the base case: two CPM ads and no relevancy scores. Other cases follow the same rule, but "what it needed to match" is worked out on Ad Rank, not on the bids alone. See How the price is set.

This is used in situations where advertisers know that their bids are a max bid, but that actual costs may turn out to be lower. This benefits the advertiser, who will pay less for less valuable/competitive inventory.

Second price auctions are needed for building AdWords-type auction systems.

How the price is set

An auction ranks ads by Ad Rank, which is an ad's eCPM multiplied by its relevancy score. eCPM is the value of the ad per 1,000 impressions at its bid. See Auctions / eCPM Optimization. The ad with the highest Ad Rank wins, except for impressions given to the remainder percentage. An ad with no relevancy score has the default score of 500, so when no ad has a score, the ad with the highest eCPM wins.

The winner pays the eCPM it needed to match the runner-up's Ad Rank, plus one cent. This is the clear eCPM:

Clear eCPM = min(
  Winner's eCPM,
  max(Floor price, (Ad Rank of the runner-up / Winner's relevancy score) + $0.01)
)

In words, the clear eCPM is the runner-up's Ad Rank divided by the winner's relevancy score, plus one cent. It is raised to the floor price if it is lower, and it is never more than the winner's own eCPM.

The clear eCPM is a price per 1,000 impressions, so the cent is one cent per 1,000 impressions. When every ad has the same relevancy score, including when none has one, the formula is the runner-up's eCPM plus $0.01, as in the example in the overview.

The runner-up

The runner-up is the ad with the next highest Ad Rank that is still in the auction for this request. Only the runner-up sets the price. An ad further down the ranking has no effect on it.

An ad is not counted as the runner-up if it:

An ad that does not match the targeting of the request, or has reached a frequency cap, is not in the auction at all. The price therefore depends on how many different advertisers can win the placement, not on how many have campaigns running. A second advertiser can raise the price even if it never wins.

If no runner-up is left, the winner pays the floor price, with no extra cent.

What the winner is charged

The clear eCPM is a price per 1,000 impressions, not the amount charged for one event. The amount charged for each impression, click or conversion is revenue in the pricing data. How it is worked out depends on the rate type of the winning flight:

Rate typeCharge
CPMThe clear eCPM divided by 1,000, for each impression
CPCFor each click: the bid, multiplied by the clear eCPM, divided by the winner's eCPM. Never more than the bid, and never less than the CPC floor
CPAFor each conversion: the bid, multiplied by the clear eCPM, divided by the winner's eCPM. Never more than the bid

After burn-in, the charge for a CPC or CPA ad is set so that the impression is expected to earn the clear eCPM. The CPC example below shows the steps.

Multi-winner placements

In a multi-winner placement, each winner is priced against the next ad ranked below it from a different advertiser, so the winners do not share one clearing price. If all the winners are from one advertiser, the price comes from the highest-ranked ad from another advertiser, even if that ad is below the number of winners requested.

For example, with a $2 floor and eCPMs of $7, $6, $5, $4 and $3 from different advertisers, two winners clear at $6.01 and $5.01.

Example with relevancy scores

Two CPC ads compete in a second price auction. Both are past burn-in and in the auction on this request, and the floor price is $0.01.

AdvertiserCPC bidClick-through rateeCPMRelevancy scoreAd Rank
A$0.800.5%$4.004501,800
B$1.200.3%$3.605501,980

Advertiser B wins. Its Ad Rank of 1,980 is higher than A's 1,800, even though its eCPM is lower.

The clear eCPM is A's Ad Rank divided by B's relevancy score, plus a cent. B needed an eCPM of $3.27 to match A's Ad Rank, so it clears at about $3.28 per 1,000 impressions. The logs can show more decimals. B's click is priced so that the impression is expected to earn that amount:

eCPM_clear = (1,800 / 550) + $0.01
           = $3.2827

CPC_clear  = CPC_bid * eCPM_clear / eCPM_ad
           = $1.20 * $3.2827 / $3.60
           = $1.09

B pays $1.09 for a click. That is less than its $1.20 bid and more than A's $0.80 bid, because B's click-through rate is lower.

For A to win, it would need an Ad Rank above 1,980. At a relevancy score of 450, that is an eCPM above $4.40 (1,980 / 450), which at its 0.5% click-through rate is a CPC bid above $0.88.

Now give both ads the default relevancy score of 500. A has an Ad Rank of 2,000 and B has 1,800, so A wins. The clear eCPM is (1,800 / 500) + $0.01 = $3.61, which is B's eCPM plus a cent. A pays $0.80 * $3.61 / $4.00 = $0.72 for a click.

Enabling Second Price Auctions

Follow the steps outlined here, plus:

Enabling via API

  1. Set IsSecondPricing to true when creating a Priority

Enabling via UI

  1. Check "Enable Second Pricing" when creating a Priority

Settings in a request

Second price settings belong to the priority. A Decision API request cannot turn second pricing on or off, or change which ads an ad is second priced against. A request can override the floor prices: set floorPrice and floorCpc on the placement. See CPC Floor Prices.

Second Price Auction Behavior

Decisions

Kevel uses the below logic when picking a winner and a price:

SituationResult
Single ad competes and is below floor priceDoesn't win
Single ad competes and is at or above floor priceWins, with floor price as the winning bid
2+ ads from different advertisers compete and above floorHighest Ad Rank wins and pays the clear eCPM. With no relevancy scores, that is +1c more than the next highest eCPM
2+ ads compete and all are below floor priceNone wins
2+ ads compete, with floor price between the 1st and 2nd highest eCPMsHigher eCPM ad wins, with floor price as the winning bid
2+ ads from different advertisers tie above floor priceWinner is chosen at random and pays its own eCPM
2+ ads tie at floor priceWinner is randomly chosen at floor price

An ad competes if it is in the auction for this request: it passed the floor price check, pacing and de-duplication. If every ad left in the auction is from the same advertiser, the winner pays the floor price, because ads from the same advertiser do not set each other's price by default. See The runner-up.

A first-price priority breaks ties the same way, with the winner paying its bid. For how ties are decided, see When ads tie.

Second Pricing Exclusions

By default, we will not second price an advertiser's ad against another ad from the same advertiser. Advertisers will only second price against ads from different advertisers.

In some cases, your advertisers may want their own campaigns or flights to second-price against each other. To do this:

Excluding via API

Set the optional SecondPriceGroupBy on the priority to not second-price against the same campaign, flight, or ad instead of advertiser.

Excluding via UI

Use the "Ads in this priority are bidding against..." dropdown in the Priority settings to select an option different than "other advertisers".

The Edit Priority form for a priority named Sponsored listings, with Selection Method set to Auction. The Enable Second Pricing checkbox is checked, and the 'Ads in this priority are bidding against...' dropdown below it is set to 'Ads in this priority from other campaigns'. Both controls are circled in red. The dropdown's other choices are 'Ads in this priority from other advertisers', which is the default, 'Ads in this priority from other flights' and 'All other ads in this priority'.

Remainder Percentage Behavior

You must set a remainder percentage on the priority between 0% and 99%. A priority with a remainder percentage of 100% will not be able to auction its ads.

📘

Remainder percentage ads will have their revenue recorded at their normal price.

An ad that is the only eligible ad in the priority for the request serves normally. There is no other ad to give the remainder impression to, so the request does not move to the next highest priority.

Second Pricing in adChain Optimized Priorities

You can also second price the impressions served via an adChain Optimized priority. An ad will first be ordered in the adChain by Ad Rank and then will be second-priced if it serves. For example:

eCPM   | Clear eCPM
------ | ----------
$5.00  | $4.01
$4.00  | $3.01
$3.00  | $1.00

This example uses a floor price of $1.00 CPM. The last ad in the chain has no ad below it, so it is priced at the floor price.

Just like with other adChains, the first ad has a chance to serve, and if it can't, the impression will be "passed back" to the next ad in the chain. The only difference is that the served impression will be priced at the second price instead of the eCPM.

CPC Floor Prices

🚧

CPC floor prices are available for the Decision API AND UI 2.0 only.

In second-priced auctions, a CPC floor price guarantees that a click from a CPC ad will be priced at a minimum cost-per-click floor that does NOT exceed the CPC price of the ad's flight.

Note that CPM floor prices must be used in addition to CPC floor prices, so set a CPM floor price on the priority as well.

Floor CPC values are converted into eCPM to act as an additional floor price during the auction (which uses eCPM values). Second pricing will take place using an eCPM value instead of CPC. Once the click occurs after the auction, the eCPM clear price will be converted to CPC revenue.

👍

When a CPC floor price is set, an ad will not compete in the auction if its price is less than the CPC floor, or its eCPM is less than the CPM floor.

This example gives every ad the default relevancy score of 500, so Ad Rank follows eCPM. For an example with different scores, see Example with relevancy scores.

Consider the following second price auction:

AdvertiserAd eCPMCPC Bid
A$5.00$10.00
B$4.00$20.00

~Advertiser A has the highest eCPM, so he wins the impression.
~The clearing CPM for this impression is $4.01 (ie. second highest eCPM + $0.01).

🚧

Note that this means the winning impression is expected to generate a CPM of $4.01, regardless of the rate type of the flight! Thus, for non-CPM flights we compute the cost per click, conversion, etc. such that the expected CPM is $4.01, taking into account the probability that the impression will result in a click, conversion, etc.

Since the winning flight is a CPC flight, we compute the CPC such that this impression is expected to generate the required $4.01 CPM, as follows:

📘

The numbers in this example are illustrative. Set includePricingData to see the clear eCPM as clearPrice and the charge per click as revenue. See Pricing Data.

CPC_clear = CPC_bid * eCPM_clear / eCPM_ad
          = $10.00 * $4.01 / $5.00
          = $8.02

We now show that the computed CPC will, in fact, generate the correct $4.01 CPM for this impression as follows:

Definitions:

  1. eCPM_ad      = CTR_expected * CPC_bid * 1000
  2. CPM_expected = CTR_expected * CPC_clear * 1000

Solving for CTR_expected in terms of eCPM_ad and CPC_bid in [1] we get:

  3. CTR_expected = eCPM_ad / (CPC_bid * 1000)
                  = $5.00 / ($10.00 * 1000)
                  = 0.0005

Substituting the value of CTR_expected from [3] into [2] we obtain:

  4. CPM_expected = CTR_expected * CPC_clear * 1000
                  = 0.0005 * $8.02 * 1000
                  = $4.01

So we expect this impression to generate, on average, a CPM equivalent to the clearing CPM of the auction with the click priced at the computed clearing CPC.

Getting Started

To get started:

  1. Ask your account manager or Kevel support for the CPC Floor Price feature. They will enable it for your account.
  2. There are two ways to set a CPC floor: through a Decision API request, or as a setting on a second price auction Priority.

Setting a CPC Floor Price Via the Decision API

To set a CPC floor price via the Decision API, add the floorCpc (float) to the placements object in the request:

{
   "placements":[
      {
         "networkId":124,
         "siteId":71727,
         "adTypes":[
            5
         ],
         "floorCpc":0.50
      }
   ]
}

You can also override the floorPrice but this is optional.

Setting a CPC Floor Price Via an Auction Priority

To set a CPC floor price via an auction priority, create a new second price auction priority or update a priority. Add the "Floor CPC":

The Edit Priority form for the same auction priority with second pricing on. Floor Price is 1 and Floor CPC is 0.5, with the hint 'Minimum clear price per click.', and both fields are circled in red. Floor CPC sits directly below Floor Price.