Ad

fun Ad(advertisement: Advertisement, modifier: Modifier = Modifier)

Composable used to display the AdPlacementType.INLINE ad.

Note: When using this composable, all registered renderers should confirm to the AdComposeRenderer interface.

Ad is the main presentation element with which you can add advertisement to your view hierarchy.

Note: Ad is only available for AdPlacementType.INLINE ads. If you want to display ads in the form of a full screen cover, use Interstitial with AdPlacementType.INTERSTITIAL.

Parameters

advertisement

The Advertisement object that this composable should display.

modifier

Modifier for changing the appearance of the Ad.