Assets

interface Assets

Encapsulates all asset-related properties for the ad.

These properties should return null in case the ad is not loaded, the asset is not available in the bid response, or not preloaded successfully

Properties

Link copied to clipboard
abstract val callToActionText: String?

Call-to-action text.

Link copied to clipboard
abstract val description: String?

Text for the ad's body.

Link copied to clipboard
abstract val iconUri: Uri?

Uri link to the icon of the ad.

Link copied to clipboard
abstract val mainImageUri: Uri?

If the main asset is an image, then will return the Uri link to the image.

Link copied to clipboard
abstract val mediaView: View?

View for displaying media content. Works for both Image / Video

Link copied to clipboard
abstract val rating: Float?

Rating for the ad.

Link copied to clipboard
abstract val sponsorText: String?

Advertiser for the ad.

Link copied to clipboard
abstract val title: String?

Title for the ad.