-
public final class EloAdA 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 viaIntent.ACTION_VIEW.Mirrors iOS
EloAd.
-
-
Method Summary
Modifier and Type Method Description final StringgetId()final StringgetTitle()final StringgetDescription()final StringgetImageUrl()final UnitreleaseResources()Release adapter-owned resources tied to this ad. final Unitrelease()Renamed for iOS parity — use releaseResources. -
-
Method Detail
-
getDescription
final String getDescription()
-
getImageUrl
final String getImageUrl()
-
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.loadAdwill never reach anEloAdView.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
EloAdVieworElo.trackRender— the SDK manages losing-bid cleanup automatically (ParallelAuctionMediatorreleases 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().
-
release
@Deprecated(message = Renamed to releaseResources() for cross-platform parity., replaceWith = @ReplaceWith(imports = {}, expression = releaseResources())) final Unit release()
Renamed for iOS parity — use releaseResources.
-
-
-
-