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

      The server returned an ad.

      eCpm is the price the server quoted for it, in USD-equivalent CPM (AdResponse.ecpm). Consumers comparing Elo against another network in their own code can weigh this number against the other network's bid and choose whether to render the Elo result. Always >= 0.0.

      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).