Skip to main content

๐Ÿ”— Multi-Step RTB Target Configuration

real-time bidding, real team bidding, ping, rtb, targets

Written by Moja Bot
Updated over 3 months ago

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 runOnRTBGroupWin setting triggers a post-auction call once a winning route is selected

  • This 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_ID

  • Step 2: Call a โ€œpongโ€ endpoint using BID_ID โ†’ returns payout and duration

Moja automatically maps the results into your RTB routing and billing flow.

Did this answer your question?