Campaign Protection Lock and Integer-Unit Consistency: Autonomous Pricing That Never Breaks an Active Campaign
campaign_protection_lock freezes price writes during active marketplace campaigns; integer demand forecasting keeps whole units x effective price = expected revenue.
December 1, 2026 · 8 min
Key Takeaways
- Automatic price writes during an active marketplace campaign can break campaign conditions; campaign_protection_lock freezes them for the campaign duration.
- On locked products XPrice only monitors and reports campaign profitability, then returns to normal optimization.
- Demand is reduced to whole units: whole units x effective price = expected revenue.
- Fractional phantom units overstate revenue and profit; the integer rule removes that bias.
1. Why is autonomous pricing risky during a campaign?
Marketplaces can tie product prices to specific conditions during campaigns and flash sales. If a pricing engine changes the price in that window, the campaign entry can be invalidated, the price can be rejected, or the campaign profitability math can be corrupted. The fix is not changing prices faster; it is knowing when not to change them.
2. How does campaign_protection_lock work?
| State | Lock | XPrice behavior |
|---|---|---|
| Product in an active campaign or flash sale | On | No price write; monitoring and a campaign profitability report are produced |
| Campaign ended | Off | Product returns to normal optimization (Approval Mode or Autopilot) |
| Product outside any campaign | No effect | Normal price floor (P_min) and stock shield rules apply |
The lock reads campaign state from marketplace data and applies per product; it does not halt the whole store. Results from the campaign window feed the post-campaign price decision as real data.
3. Integer-unit math: why are fractional phantom units a problem?
A demand model often produces a continuous expectation: for example 12.6 units per day at a price of $36. But a store cannot sell 12.6 units; it sells 12 or 13. If the expectation is multiplied directly by price, revenue and profit are computed on units that do not exist.
| Item | Fractional units (wrong) | Integer units (XPrice) |
|---|---|---|
| Forecast units | 12.6 | 12 (conservative integer) |
| Effective price (after campaign) | $36 | $36 |
| Expected revenue | $453.60 | 12 x 36 = $432.00 |
| Unit contribution (15% commission, $25 cost) | $5.60 | $5.60 |
| Expected contribution profit | $70.56 | 12 x 5.60 = $67.20 |
In the same scenario the fractional approach inflates revenue by $21.60 and contribution profit by $3.36. Across thousands of SKUs that gap becomes a systematic difference between recorded expectation and realized results.
4. Effective price and revenue equality
Effective price is what the customer actually pays and what reaches the seller. The rule is simple: whole units x effective price = expected revenue. When a stock limit applies, units cannot exceed sellable stock, so revenue is never computed on inventory you do not have. Candidate prices are compared through this equality, so every Monte Carlo scenario obeys the same consistency rule.
5. How do they work together?
- While the campaign lock is on, no price is written; only campaign profitability with integer units is reported.
- When the lock lifts, new candidate prices are scored with integer units and never fall below the P_min floor.
- The result is compared with the realized outcome in the Shadow Mode ledger.
See the Product page for all capabilities and the Pricing page for plans and the fee guarantee. Next: the 7-90 day forecasting and Shadow Mode guide and the campaign price floor guide. Browse every guide in Resources.
FAQ: Does the campaign lock guarantee profit?
No. The lock prevents breaking campaign conditions; profitability depends on cost, commission and demand. Figures are illustrative.