Marketing Channel Budget Optimization with Spend Constraints
Statistics & ExperimentsModel answerLast updated
Formulate marketing channel profit, analyze inbound call unit economics, and solve optimal budget allocation under per-channel spend caps.
Scenario
You are tasked with allocating a total quarterly customer acquisition budget $B$ across three marketing channels: Phone Calls, Social Ads, and Email Campaigns. Each channel has distinct efficiency metrics (click-through rates, conversion rates, and revenue-to-cost multiples) along with fixed maximum spending caps.
Questions
- Channel Net Profit Model: Define the standard mathematical expression for expected net profit as a function of spending level for a channel. Explain how to compute the maximum expected net profit per channel under a fixed overall budget $B$.
- Unit Economics for Phone Calls: Assume an inbound phone call costs $c = $20$, converts to a funded loan at a rate of $p = 10%$, and generates lifetime revenue of $V = $400$ per conversion. Calculate:
- Average cost per inbound call
- Expected revenue and expected net profit generated per inbound call
- Customer Acquisition Cost (CAC) per funded customer
- Break-even conversion rate threshold
- Constrained Portfolio Allocation Strategy: Given an overall budget limit $B$ and individual spend caps $Cap_i$ for each channel $i$, derive the spending allocation that maximizes total net profit. Prove why your strategy reaches the optimal solution, and address edge cases (such as unprofitable channels or unallocated funds).
Hints
Hint 1
Determine the net profit margin per dollar spent (margin = Revenue_per_dollar - 1) before allocating.
Hint 2
Formulate the portfolio optimization as a linear program and leverage the fractional knapsack property.
Hint 3
Distinguish between unit metrics computed per contact/call versus metrics computed per converted customer.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
1. Channel Net Profit Model
To evaluate profitability across marketing channels with different conversion funnels, we normalize performance metrics relative to direct spend.
Parameter Definitions
For each channel $i$:
- $c_i$: Cost per initial touchpoint (e.g., cost per call, cost per ad click, cost per sent email)
- $CTR_i$: Click-through or contact engagement rate
- $CVR_i$: Conversion rate from engaged contact to converted customer
- $V_i$: Revenue generated per conversion (Customer Lifetime Value or net interest margin)
- $Cap_i$: Maximum spend cap for channel $i$
- $S_i$: Allocated budget for channel $i$
Revenue Multiplier ($R_i$) and Margin ($m_i$)
The expected number of conversions per dollar spent is: $$\text{Conversions per Dollar} = \frac{1}{c_i} \times CTR_i \times CVR_i$$
Multiplying by revenue per conversion ($V_i$) yields the Revenue-to-Cost ratio ($R_i$): $$R_i = \frac{CTR_i \times CVR_i \times V_i}{c_i}$$
The Net Profit Margin per dollar spent ($m_i$) is: $$m_i = R_i - 1$$
Expected Net Profit
For spend $S_i$: $$\text{Expected Revenue}_i = R_i \cdot S_i$$ $$\text{Expected Net Profit}_i = (R_i - 1) \cdot S_i = m_i \cdot S_i$$
If allocating the entire budget $B$ to a single channel $i$ without portfolio constraints, the maximum realistic net profit is $m_i \cdot \min(B, Cap_i)$.
2. Inbound Phone Call Unit Economics
Given parameters:
- Cost per call ($c$) = $$20$
- Conversion rate ($p$) = $10% = 0.10$
- Revenue per conversion ($V$) = $$400$
Metric Calculations
-
Average Cost per Inbound Call: $$\text{Cost per Call} = c = $20$$
-
Expected Revenue per Call: $$\text{Expected Revenue per Call} = p \times V = 0.10 \times $400 = $40$$
-
Expected Net Profit per Call: $$\text{Expected Net Profit per Call} = (p \times V) - c = $40 - $20 = $20$$
-
Customer Acquisition Cost (CAC): Because $10%$ of calls convert, $10$ calls are needed to acquire one customer: $$\text{CAC} = \frac{c}{p} = \frac{$20}{0.10} = $200$$
-
Net Profit per Customer: $$\text{Profit per Customer} = V - \text{CAC} = $400 - $200 = $200$$
-
Break-Even Conversion Rate ($p_{\text{break-even}}$): Setting expected profit per call to $0$: $$p \cdot V - c = 0 \implies p_{\text{break-even}} = \frac{c}{V} = \frac{$20}{$400} = 5%$$ Takeaway: The call channel generates positive profit as long as the conversion rate exceeds $5%$.
3. Constrained Portfolio Optimization Strategy
Linear Programming Formulation
To maximize total portfolio profit given total budget $B$ and spending caps $Cap_i$:
$$\begin{aligned} \text{maximize} \quad & \sum_{i=1}^{N} m_i \cdot S_i \ \text{subject to} \quad & \sum_{i=1}^{N} S_i \le B \ & 0 \le S_i \le Cap_i \quad \forall i \in {1, \dots, N} \end{aligned}$$
This problem maps directly to the continuous (fractional) knapsack problem.
Greedy Optimization Algorithm
Since marginal profit $m_i$ remains constant up to $Cap_i$, a Greedy Strategy by Profit Margin ($m_i$) yields the optimal allocation:
- Calculate Margin: Compute $m_i = R_i - 1$ for all channels.
- Filter Negative Channels: Exclude channels where $m_i \le 0$.
- Rank Channels: Sort active channels in descending order of margin ($m_{(1)} \ge m_{(2)} \ge \dots \ge m_{(k)}$).
- Allocate Budget: Fund channel $(1)$ up to $\min(B, Cap_{(1)})$. Deduct allocated funds from $B$ and repeat for subsequent channels until budget $B$ is zero or all caps are reached.
Proof of Optimality (Exchange Argument)
Suppose an optimal allocation $S^$ does not follow the greedy sequence. Then there exist channels $A$ and $B$ where $m_A > m_B$, channel $A$ is under-allocated ($S_A^ < Cap_A$), and channel $B$ has non-zero allocation ($S_B^* > 0$).
Reallocating spend $\delta = \min(Cap_A - S_A^, S_B^)$ from channel $B$ to channel $A$ alters total profit by: $$\Delta \text{Profit} = \delta \cdot m_A - \delta \cdot m_B = \delta (m_A - m_B) > 0$$
Because this shift strictly increases overall profit without violating spend constraints, the original non-greedy allocation $S^*$ could not have been optimal. Thus, the greedy strategy is globally optimal.
Python Implementation
def optimize_marketing_allocation(budget: float, channels: list[dict]) -> dict:
"""
Optimizes marketing budget allocation to maximize total profit under channel caps.
channels: list of dicts with keys 'name', 'R' (revenue multiplier), 'cap'
"""
# Calculate net profit margin per dollar spent
for ch in channels:
ch['margin'] = ch['R'] - 1.0
# Sort channels by profit margin descending
sorted_channels = sorted(channels, key=lambda x: x['margin'], reverse=True)
allocation = {}
remaining_budget = budget
total_profit = 0.0
for ch in sorted_channels:
name = ch['name']
margin = ch['margin']
cap = ch['cap']
# Skip unprofitable channels or if budget is exhausted
if margin <= 0 or remaining_budget <= 0:
allocation[name] = 0.0
continue
spend = min(cap, remaining_budget)
allocation[name] = spend
remaining_budget -= spend
total_profit += spend * margin
return {
"allocation": allocation,
"total_profit": total_profit,
"unspent_budget": remaining_budget
}
# Example execution with illustrative numbers ($100k total budget):
channel_data = [
{"name": "Phone Calls", "R": 2.0, "cap": 30000},
{"name": "Email Campaigns", "R": 1.8, "cap": 40000},
{"name": "Social Ads", "R": 1.5, "cap": 50000},
]
# Result: Phone: $30k, Email: $40k, Social: $30k -> Total Profit: $77,000
Key Operational Considerations
-
Non-linear Saturation (Diminishing Returns): Real-world conversion rates decrease as spending increases due to ad fatigue and target audience saturation. When revenue curves are concave functions $f_i(S_i)$, linear programming converts to convex optimization. The optimal solution satisfies KKT conditions, equalizing marginal ROI ($\frac{df_i}{dS_i}$) across all funded channels.
-
Risk-Adjusted LTV: In financial lending, revenue ($V$) must be adjusted for default risk. Channels producing high conversion volume may attract higher credit loss rates, necessitating net present value (NPV) adjustments for risk.
-
Incremental Measurement: Multipliers ($R_i$) derived from standard attribution models often overestimate incremental lift. Budget decisions should be validated using geo-experiments or holdout tests to isolate true causal returns.