Package 

Class AdMobNativeAdRenderer

  • All Implemented Interfaces:
    ad.elo.androidsdk.mediation.tracking.AdRenderer , ad.elo.androidsdk.mediation.tracking.ConfigurableAdRenderer

    
    public final class AdMobNativeAdRenderer
     implements ConfigurableAdRenderer
                        

    AdMob's billing requires NativeAd assets 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 the NativeAd against 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 iOS AdMobNativeHostView since 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. EloAdView supplies AdRenderOptions through makeView / update so the attribution label comes from the view call site instead of adapter setup.