Recalibrate CPL bounds
recalibrate_cpl_boundsRecompute a product's Stop and Goal CPL from its own measured funnel rates, report drift from the current baseline, and flag targets above true break-even.
Instructions
Recompute Stop CPL (the cost per lead at which profit reaches zero) and Goal CPL (the optimisation target) for one product from its own measured funnel rates instead of portfolio-wide assumptions, and report the drift against the baseline currently in use. Measures the product itself when observed rates are not supplied. Use whenever a cost-per-lead target is being set, defended, or questioned. Flags the case where the assumed target sits above the true break-even, which is invisible in the ads dashboard. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | Product code, e.g. 21-183 | |
| usd_uah | No | Hryvnia per US dollar; defaults to the product's rate | |
| window_to | No | ISO date, used only when measuring on demand | |
| window_from | No | ISO date, used only when measuring on demand | |
| observed_buyout | No | Measured buyout rate 0–1; measured on demand when omitted | |
| observed_approval | No | Measured approval rate 0–1; measured on demand when omitted |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | ||
| drift_pct | Yes | ||
| inputs_used | Yes | ||
| rate_source | Yes | ||
| reliability | Yes | ||
| observed_rates | Yes | ||
| resolved_orders | Yes | ||
| structural_loss | Yes | ||
| contribution_uah | Yes | ||
| goal_cpl_assumed | Yes | ||
| stop_cpl_assumed | Yes | ||
| goal_cpl_observed | Yes | ||
| stop_cpl_observed | Yes | ||
| economics_reliable | Yes | ||
| target_above_breakeven | Yes | ||
| contribution_uah_assumed | Yes |