Package 

Class EloAd


  • 
    public final class EloAd
    
                        

    A creative ready to render. Stable id is used for impression dedup and analytics correlation.

    The tracker is set by the winning adapter and owns render / impression telemetry plus click lifecycle behavior. Elo-direct clicks currently notify the publisher locally without a client-side click POST. The SDK never reads network-specific fields directly — it calls tracker methods.

    The optional renderer is set by adapters whose underlying SDK requires view registration to count impressions and clicks (AdMob, Meta). When present, the SDK's Compose ad views embed the renderer's view via AndroidView { ... } instead of rendering Elo-styled chrome.

    clickUrl is exposed (still internal) for the view layer to launch the destination in a browser via Intent.ACTION_VIEW.

    Mirrors iOS EloAd.

    • Method Detail

      • releaseResources

         final Unit releaseResources()

        Release adapter-owned resources tied to this ad. Call this only when you've decided not to render the ad — e.g. you ran a client-side auction against another SDK and chose the other bid, so the EloAd you received from Elo.loadAd will never reach an EloAdView.

        For adapter-rendered fills (AdMob native, Meta, etc.) the underlying network's SDK holds native resources (e.g. AdMob's NativeAd) that get released here. For Elo-direct fills this is a no-op. Safe to call more than once.

        Do not call this on an ad you've passed to EloAdView or Elo.trackRender — the SDK manages losing-bid cleanup automatically (ParallelAuctionMediator releases all losing bids before returning the winner), and the view layer keeps the winner alive as long as it's displayed.

        Named for parity with iOS EloAd.releaseResources().