NativeAdPresentation

The shape a native ad takes on screen.

A presentation is the unit of reuse for native ads: new ad surfaces add a presentation here rather than a new component with its own view tree. Every presentation renders through the same NativeAdSlot and the same programmatic NativeAdView, so ad policy, lifecycle, palette, and the disclosure label stay in one place.

Inheritors

Types

Link copied to clipboard

Full-width strip for a bottom app bar or action bar: icon, one-line text, trailing CTA.

Link copied to clipboard

Icon-led row inside a card: icon, headline, body, advertiser, trailing CTA.

Link copied to clipboard

Media-led card: MediaView at 16:9, headline, body, then icon, advertiser and CTA.

Link copied to clipboard

Square cell for grids and decks: icon, headline, advertiser, body. No CTA.

Link copied to clipboard
data class GridRow(val iconSizeDp: Int, val iconInsetDp: Int, val contentPaddingDp: Int, val iconSpacingDp: Int) : NativeAdPresentation

One row of a grouped grid: icon badge, headline, the disclosure chip inline with the body, advertiser, and a trailing CTA, all on a single row, so the ad is no taller than the cells it sits between.