When you search for sneakers on a store's website and the first result says "Sponsored", a lot more happened than it looks like. While the page was loading, an ad server (the system that decides which ad shows on each page) received a query, checked the catalog, scored products, ran an auction and sent back an answer. All in a fraction of the time it takes you to blink.
I tell you this because I often talk to ecommerce leads who have heard the words ad server but have never seen inside one. For them it is a black box that sometimes slows search down and sometimes doesn't, and neither outcome is explained. There is no magic. There are specific steps, each with a cost in time, and understanding them gives you the judgment to decide what happens right away and what can wait.
I'll walk through the path of one ad request, explain why an ad with a high bid can lose, compare the two ways of pricing an auction, and tell you where the line between relevance and revenue is usually drawn. I won't share latency figures from any client. When I use numbers in an example they will be round, and I'll mark them as hypothetical.
- 1
The page asks for ads
The results or category page sends the ad server the query, the category and the context.
- 2
Candidates are retrieved
The retailer's own catalog is filtered: in-stock products that match the search.
- 3
Relevance is predicted
A model estimates how likely each product is to be useful to the shopper.
- 4
It is combined with the bid
Each brand's offer and the relevance are merged into one score.
- 5
The auction runs
Candidates are ranked and winners are picked for the available slots.
- 6
Budget and frequency are checked
The campaign needs budget, a steady pace and no over-repeating to the same user.
- 7
Response and render
The ad server responds and the page draws the sponsored products among the results.
- 8
Measurement
Impressions and clicks are logged and, later, the order is attributed within a window.
Why the catalog decides before any bid does
The first filter doesn't come from advertising, it comes from the catalog. The ad server can only show products the retailer actually sells: in stock, active, and matching the search or the category the user is looking at. This is called candidate retrieval. If an ad promotes sneakers that are sold out, the shopper gets frustrated, the brand pays for a useless click and the retailer looks bad to both sides.
Say a store has 50,000 products and a search for "sneakers". This is a hypothetical example with round numbers. After filtering by stock and by match with the search, a few hundred candidates might remain. No ad comes out of that yet: it is the list of products that have the right to compete. The cleaner and more current your catalog is, the better the candidates, and you feel that in everything that follows.
With the candidates in hand, a model estimates relevance: how likely each product is to be useful to this person, on this search, right now. It can draw on the text of the query, on the site's own click history (the CTR, the share of impressions that end in a click) and on the page context. The retailer's own data is the best raw material for this.
Here comes the part that surprises people the most when they arrive from other kinds of advertising. The order isn't decided by the bid alone, it is decided by the bid multiplied by the relevance. Roughly speaking, an ad's score is what the brand offers to pay, weighted by the probability that the product is the right one. I'll write it as pseudocode so you can see it.
score = bid * predicted_relevance
product A: bid 2.00 x relevance 0.05 = 0.10
product B: bid 0.50 x relevance 0.40 = 0.20
winner: BIn the example, brand A offers four times more than brand B, but its product has almost nothing to do with the search. B wins. This isn't a punishment for paying more: it follows from the fact that someone who searches for sneakers and gets an ad for something else stops looking at the ads. Over time, an irrelevant ad costs clicks to everyone, the brand, the retailer and the shopper. That is why a high bid on an irrelevant product has to lose.
First price, second price: what the advertiser really pays
Once the candidates are ranked, what's left is deciding how much the retailer charges for the click. There are two families of auction. In a first-price auction, the winner pays exactly what it offered. In a second-price auction, it pays the minimum needed to keep its position, that is, just enough to beat the next one. Neither is right in every case. Each one changes how the brand behaves and how much you have to explain.
In first price, an experienced brand starts bidding below its real value so it doesn't overpay, and spends its time adjusting. In second price, the sensible move for the advertiser is to bid what the click is really worth, because it will never pay that: it will pay less. For a brand that is just entering retail media, that rule is much easier to understand and to defend inside its own company.
A hypothetical example with the earlier numbers. Brand B bids 0.50 and has relevance 0.40, so its score is 0.20. The next score is 0.10. In second price, B pays the minimum that would have been enough to win: 0.10 divided by 0.40, that is, 0.25 per click and not 0.50. In first price, it would pay the full 0.50. The difference is the one you see in the table, and it is the one your sales team will have to explain to each brand.
| Aspect | First price | Second price |
|---|---|---|
| What the winner pays | What it offered | The minimum to beat the next one |
| How an experienced brand bids | Below its value, adjusting | Close to its real value |
| Explaining it to a new brand | You have to teach bid adjustment | Bid what the click is worth |
| Example (bid 0.50, relevance 0.40) | 0.50 per click | 0.25 per click |
My preference depends on how mature the brands you'll work with are, not on a theory. I still don't know whether there is a single answer for all of Latin America, and I distrust anyone who says there is. What I am sure of is that the pricing rule has to be written down before the first ad, because changing it later means renegotiating with every brand.
What has to happen inside the time budget and what can wait
A results page has a time budget: how long the retailer is willing to wait before drawing the screen. In a well-built ad server, the ad request runs in parallel with the normal search and has to answer within that margin. If it doesn't arrive in time, the sensible outcome is a page that ships without ads. That is a design decision I defend: a page with no ad beats a late page.
Inside the budget goes everything that changes what is shown: retrieving candidates, predicting relevance, running the auction and checking budget and frequency. A campaign's budget (the money the brand is willing to spend) and its pacing (the rhythm that keeps it from burning everything in the first hour) are checked on every request, because an exhausted campaign can't win. Frequency caps keep the same person from seeing the same ad ten times.
Outside the budget goes everything that is only needed afterwards: storing the impression, logging the click, attributing the order and building the reports. A hypothetical example: someone clicks a sponsored product and buys three days later. That sale is credited to the ad because it fell inside an attribution window, the period the retailer defines for deciding that the ad had influence. None of that needs to happen while the user waits, which is why it runs in the background.
An ad that arrives late is worse than an ad that never arrives.
The practical consequence for you is simple. Every time someone proposes adding a calculation to the request path, ask whether it changes what is shown. If the answer is no, it goes later. Nice reports, new attribution rules and data joins belong to that second half, where time doesn't cost sales.
Where the line between relevance and revenue is drawn
This is the dilemma I care about most, because it is where an ad server stops being technical and becomes a business decision. If you raise the weight of the bid in the score, you earn more revenue today: more ads from whoever pays most. If you raise the weight of relevance, you earn the shopper's trust. The two forces pull in opposite directions, and no model settles it for you.
A well-built ad server usually sets a relevance floor. Below a certain score, the ad doesn't compete, however much the brand offers. It is better to leave a slot empty, or fill it with an organic result, than to show something unrelated. In the short term you lose some revenue. In the long term, you avoid teaching your customers that ads are noise.
Where exactly to put that floor, I don't know precisely, and it varies by category. It is something you tune by watching how shoppers respond on each site, not a number that works for everyone. I would be wary of a vendor who gives you a fixed number before seeing your catalog and your traffic. What I can tell you is that it is worth deciding on purpose and not by default.
What to ask your vendor before you launch
If you are going to look at retail media platforms, bring this list. Is the bid multiplied by relevance or ranked on price alone? Is it first or second price, and what does the brand pay in a concrete case? What happens if the ad server doesn't answer in time? What is computed before showing and what after? The answers tell you more than any demo.
At AndesML we provide the platform, with Sponsored Products, Sponsored Brands and Display Ads, the commercial playbook, operation support and measurement. Your team does the selling to brands, because the relationship with them is yours. Understanding how the ad server works matters for exactly that: so that when a brand asks you why it won or lost, you have a clear answer.
If you can only do one thing this week, ask to be shown the path of a real request, with the time of each step. If they can't show it, they probably aren't measuring it either, and what isn't measured can't be improved.
It is the system that, for each page, decides which ads to show, to whom and at what cost, and records what happens afterwards.
It shouldn't. In a well-built ad server, the request runs in parallel and has a maximum time. If it doesn't answer in time, the page ships without ads. What can slow things down is adding heavy calculations to the request path.
The retailer's own sales team, since it holds the relationship with the brands. The platform brings the technology, the playbook, operation support and measurement.


