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. Available from Unity SDK 4.1.0 (backed by Android SDK 4.1.1 and iOS SDK 3.4.1), it supports CloudX, Unity LevelPlay, and PubMatic bid inputs.
Use loaded ad objects or ad info objects from each SDK to populate bid values:
using CloudX;
using System.Collections.Generic;
using UnityEngine;
// cloudXAd is the CloudXAd object from an OnAdLoaded callback.
// levelPlayAdInfo is the Unity LevelPlay ad info object.
// pubMaticPrice and pubMaticPartnerName come from the PubMatic/OpenWrap bid object.
var bids = new List<CloudXArbiterBid>
{
new CloudXArbiterBid.CloudX(cloudXAd),
new CloudXArbiterBid.LevelPlay(
NetworkName: levelPlayAdInfo.adNetwork,
Revenue: levelPlayAdInfo.revenue,
Precision: levelPlayAdInfo.precision
),
new CloudXArbiterBid.PubMatic(
Price: pubMaticPrice,
PartnerName: pubMaticPartnerName
),
};
CloudXSdk.Arbiter(bids, result =>
{
Debug.Log($"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.