Location: Targets โ RTBs
โLast Updated: 11/6/25
๐ Overview
Multi-Step RTB Target Configuration allows you to define chained bidding sequences within a single RTB, where multiple API requests execute in order and each step can reference data returned from previous steps.
This enables flexible ping-pong auctions, real-time validation flows, and advanced decision logic โ allowing you to confirm winners or apply routing rules before a call is finalized.
โ๏ธ How Multi-Step RTBs Work
Within one RTB target, you can define step-based logic that executes sequentially:
๐ Ping-Then-Full Flow
Send an initial lightweight โpingโ request, then follow up with a full payload once a winning route is identified.๐งฑ Step-Chained Evaluation
Define multiple RTB steps that execute in sequence, each dependent on the previous stepโs outcome.๐ Automatic Variable Chaining
Fields returned in one step (e.g.,BID_ID,SESSION_TOKEN) are automatically available to subsequent steps via response mapping.๐ฏ Per-Step Logic
Assign different payout, duration, or priority rules to each step.
๐ท๏ธ RTB Target Group Behavior
When used inside an RTB Target Group, multi-step behavior follows specific rules:
The winning step determines the effective route for the RTB Target Group
The
runOnRTBGroupWinsetting triggers a post-auction call once a winning route is selectedThis allows confirmation or enrichment calls after auction resolution
๐ Logging & Resilience
Multi-Step RTBs include built-in observability and fault tolerance:
๐งพ Expanded Logging
Step-level responses are recorded to support debugging and analysis.๐ก๏ธ continueOnFailure Support
If an intermediate step fails, the auction can continue without terminating the flow.๐ Backward Compatibility
Single-step RTB targets continue to work unchanged.
๐ฏ Why This Matters
Previously, implementing layered bidding logic required creating and maintaining multiple RTBs โ increasing complexity and reducing visibility.
With Multi-Step RTBs, you can manage advanced bidding strategies in one place, which helps you:
Optimize call routing dynamically using performance data
Run A/B variations across buyer tiers or targeting strategies
Improve payout control without duplicating campaigns
Reduce configuration overhead and routing errors
๐ก Example Use Cases
Two-Step Bid Logic
Send a ping to gather bids, then send the full payload only to the selected bidder.Dynamic Testing
Route the same call through multiple buyers and select the best-performing response.Conditional Fallback
Automatically redirect traffic if response thresholds arenโt met.Tiered Bidding
Define priority-based sequences for premium and secondary routes.
๐ Getting Started
1๏ธโฃ Open or Create an RTB
Navigate to Targets โ RTBs, then create a new RTB or open an existing one.
2๏ธโฃ Add Steps in Sequence
For each step, define:
Request URL
HTTP method
Headers and parameters
Use Send to test each step.
3๏ธโฃ Map Response Fields to Variables
Enable Map Response Fields to Variables
Click a response field to create a mapping
Mapped variables become available in all subsequent steps
4๏ธโฃ Chain Steps Together
Add a new step
Copy the previous stepโs URL if needed
Use Edit โ Add Parameter to inject mapped variables into the request
5๏ธโฃ Define the Winning Step (RTB Groups Only)
If the RTB is used in an RTB Target Group, select which step determines the winning route.
6๏ธโฃ Save & Deploy
Once saved, the RTB will automatically process multi-step logic during execution.
๐ Example Flow
Step 1: Call a โpingโ endpoint โ returns
BID_IDStep 2: Call a โpongโ endpoint using
BID_IDโ returns payout and duration
Moja automatically maps the results into your RTB routing and billing flow.