-
- All Implemented Interfaces:
-
ad.elo.androidsdk.mediation.tracking.AdRenderer,ad.elo.androidsdk.mediation.tracking.ConfigurableAdRenderer
public final class AdMobNativeAdRenderer implements ConfigurableAdRendererAdMob's billing requires
NativeAdassets to be displayed inside a NativeAdView subtree with each asset View registered. This renderer builds that subtree, applies card chrome that matches Elo-direct ads, and registers theNativeAdagainst it.The layout mirrors the Elo-direct card in
EloAdView: a 56dp icon beside an "Ad • Headline" attribution line and body, with a trailing disclosure chevron in place of a CTA pill. Unlike the Elo-direct card, the body stays two-line and tail-truncated rather than marquee-scrolling — it is a registered Google asset view. No call-to-action button is drawn (matching iOSAdMobNativeHostViewsince 0.1.8) — clicks are handled by AdMob through the registered icon/headline/body asset views (the same assets iOS registers), which cover the card's primary content. Taps on inert regions (padding, the chevron, whitespace) are not registered click targets.Embedded by Elo's rendered-ad surface.
EloAdViewsupplies AdRenderOptions through makeView / update so the attribution label comes from the view call site instead of adapter setup.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerminimumDisplayHeightDp
-
Constructor Summary
Constructors Constructor Description AdMobNativeAdRenderer(NativeAd nativeAd)
-