Package 

Class AdResult


  • 
    public class AdResult
    
                        

    The outcome of an ad request.

    Exhaustive when over this to handle every case — or pass it directly to a ad.elo.androidsdk.EloAdView which hides itself on non-loaded results.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class AdResult.Loaded

      An ad won the auction.

      eCpm is the winning bid's price in USD-equivalent CPM. For Elo-direct fills this is the server-quoted price from AdResponse.ecpm; for adapter fills it's the value the adapter reported (e.g. the publisher-configured expectedEcpm on the AdMob adapter). Consumers running a client-side auction against another SDK can compare this number to their own bid and choose whether to render the Elo result. Always >= 0.0.

      networkId identifies the winning adapter ("elo" for the first-party network, or the networkId of a mediation adapter).

      public final class AdResult.NoFill

      No ad was available. Not an error; just no match for this request. The reason explains why so the host can show the right empty-state UI or diagnose integration problems.

      public final class AdResult.Error

      Something went wrong (network failure, decoding, etc).