-
public interface AdNetworkAdapterA single ad demand source in the client-side mediation auction.
Register one adapter per network on ad.elo.androidsdk.EloConfiguration.adapters. The mediator calls bid on every adapter in parallel and returns the highest-priced creative.
Implementations should:
Return
nullfor no-fill. Throwing is reserved for real errors (network failures, SDK not ready). No-fill is a normal outcome.Respect AdBidRequest.timeoutMs. The mediator enforces its own ceiling, but well-behaved adapters should cancel their own work if they can't meet the budget.
Be safe to call concurrently. The mediator invokes adapters from a
coroutineScope { async { ... } }per auction.
Elo's own adapter (
EloNetworkAdapter) is built internally byEloStatefrom the publisher config; consumers never construct it.Mirrors iOS
AdNetworkAdapter.
-
-
Method Summary
-
-
Method Detail
-
start
Unit start(Context context, AdConsent consent)
Start or warm the adapter's underlying SDK. Called once before the adapter's first auction. Default is a no-op.
-
bid
abstract AdBid bid(AdBidRequest request)
Bid on the given request. Return
nullfor no-fill; throw an AdAdapterError for errors that should be surfaced but not break the auction.
-
getNetworkId
abstract String getNetworkId()
Stable identifier for this network. Used for logging and to attribute winning bids. Must be unique across registered adapters; duplicates surface as a ad.elo.androidsdk.internal.ValidationIssue from
ConfigurationValidatorand remain in the auction (no auto-dedupe).
-
-
-
-