Problem
Marketers add budget to campaigns that did well and cut the rest. With a long sales cycle, that reaction comes too late. Forecasts from recent weeks and year-over-year data also fail, because competitors and market conditions change and conversion swings. Each school's sales team can handle only a limited number of leads: too few hurt sales, too many overwhelm the team.
Example from the article: a leading education company in Spain ran campaigns for three product types across six paid channels and 15 schools. It bought leads on Google Ads and Meta Ads at a variable cost per lead (CPL), and on Educaedu and Emagister at a fixed price. Last quarter Emagister had the best ROAS (9.8) and Educaedu the worst (5.7).
Solution in brief
Predict conversion for each channel, school and product with a lead scoring model. Then solve the budget split as a linear program: maximize profit under the total budget, channel caps, lead ranges per school and a maximum shift from the baseline plan. Fixing CPL at last month's value makes the problem linear, so GLOP solves it.
Questions this case answers
- How to allocate a fixed budget across competing channels and segments to maximize profit when conversion is uncertain and each downstream team has minimum and maximum capacity
- How to replace reactive trial-and-error budget shifts with a forward-looking allocation when outcomes mature slowly and historical averages are unstable
- How to split a monthly marketing budget across paid acquisition channels, schools and products to maximize profit?
- How to keep every sales team supplied with enough leads, but not more than it can handle, when budgets are reallocated?
Tools and methods
- Lead scoring with XGBoost — predicts each lead's conversion probability.
- Linear programming — chooses spend per channel, school and product under constraints.
- OR-Tools (GLOP,
pywraplp) — open-source solver that turns the formulation into code.
Google or a one-time email code. No password.