AdLayoutPreviewData

data class AdLayoutPreviewData(val headline: String = "Build faster with sample native ads", val body: String = "Preview your native ad layout with realistic sample copy before wiring live AdMob assets.", val callToAction: String = "Install", val advertiser: String = "AdMob CMP", val price: String = "Free", val store: String = "App Store", val starRating: Double = 4.6, val hasIcon: Boolean = true, val hasMedia: Boolean = true)(source)

Sample data for previewing a native ad layout in AdLayoutPreview. All fields carry realistic defaults suitable for design-time rendering.

Constructors

Link copied to clipboard
constructor(headline: String = "Build faster with sample native ads", body: String = "Preview your native ad layout with realistic sample copy before wiring live AdMob assets.", callToAction: String = "Install", advertiser: String = "AdMob CMP", price: String = "Free", store: String = "App Store", starRating: Double = 4.6, hasIcon: Boolean = true, hasMedia: Boolean = true)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Sample advertiser name.

Link copied to clipboard

Sample body text.

Link copied to clipboard

Sample call-to-action text.

Link copied to clipboard

Whether to show the icon placeholder.

Link copied to clipboard

Whether to show the media placeholder.

Link copied to clipboard

Sample headline text.

Link copied to clipboard

Sample price string.

Link copied to clipboard

Sample star rating (out of 5).

Link copied to clipboard

Sample store name.