KatInterview

Turning Expected Profit into Keyword Bids Under a Daily Budget

Machine LearningModel answer
MediumModel answerMachine Learningbiddingadsbudget-pacing

Last updated

Design a system that converts predicted business value of a search-ad click into a bid, paces spend against a budget, handles delayed conversions, and proves incremental profit.

An online home-goods retailer buys sponsored placements on a search engine. Each time a shopper runs a query, the platform runs an auction, and the retailer may submit a bid for its ad.

Describe how you would build a bidding system that:

  1. Converts the business value of each ad opportunity into a bid.
  2. Stays within a campaign budget over the day or campaign period.
  3. Copes with purchases that are reported days after the click.
  4. Is evaluated in a way that shows whether it actually improves the business.

The auction mechanics, available features, attribution rules, and budget figures are not given. Begin by stating the assumptions you will make, and do not assume that the amount you bid is the amount you will be charged.

Points worth clarifying up front:

  • Is the goal incremental contribution profit, orders, new customers, or revenue subject to a return target?
  • Is pricing per click, per impression, or per conversion, and what controls does the platform expose (bid, budget, targeting, bid modifiers)?
  • What are the conversion delay, the budget size, stock availability, and any geographic or time-of-day restrictions?

Expected: a structured design covering value estimation, the bid formula, pacing, feedback delay, and evaluation, with trade-offs and common pitfalls.

Hints

Hint 1

Split the problem into two layers: a prediction layer (click probability, conversion probability, order value, margin) and an optimization layer that turns those predictions into a bid under a budget.

Hint 2

Think about what the bid should be relative to the value of a click when the budget is binding, and what a pacing multiplier does to it. Also recall how a second-price style auction changes the incentive to shade the bid.

Hint 3

For evaluation, ask what would have happened without the ad. Consider geo or query-level holdouts, and remember that recent clicks have incomplete conversion labels.