Documentation Index
Fetch the complete documentation index at: https://docs.cloudx.io/llms.txt
Use this file to discover all available pages before exploring further.
Trusted Arbiter compares a loaded CloudX bid with supported third-party bids and returns the selected platform. CloudX SDK 4.1.0 supports CloudX, Unity LevelPlay, and PubMatic bid inputs.
// cloudXAd is the CloudX ad object from a CloudX load callback.
// levelPlayAdInfo is the Unity LevelPlay ad info object.
// pobBid is the PubMatic OpenWrap bid object.
val levelPlayBid = CloudXArbiterBid.levelPlay(
networkName = levelPlayAdInfo.adNetwork,
revenue = levelPlayAdInfo.revenue,
precision = levelPlayAdInfo.precision
)
val pubMaticBid = CloudXArbiterBid.pubmatic(
price = pobBid.price,
partnerName = pobBid.partnerName
)
val bids = listOfNotNull(
CloudXArbiterBid.cloudX(cloudXAd),
levelPlayBid,
pubMaticBid
)
val configuration = CloudXArbiterConfiguration.builder(bids).build()
CloudX.arbiter(configuration, object : CloudXArbiterListener {
override fun onCompleted(result: CloudXArbiterResult) {
Log.d("CloudX", "Selected platform: ${result.platform}")
}
})
If the arbiter service is unavailable, the SDK falls back to the highest comparable USD bid among the supplied supported bid inputs.