Asset

@Serializable
class Asset(var id: Int, var required: Byte, var ext: Map<String, String>? = null, var title: Asset.TitleObject? = null, var img: Asset.ImageObject? = null, var video: Asset.VideoObject? = null, var data: Asset.DataObject? = null)

This object represents a native asset object, which is the main container for each asset requested or supported by Exchange on behalf of the rendering client.

OpenRTB Native Ads 1.2

Constructors

Link copied to clipboard
constructor(id: Int, required: Byte, ext: Map<String, String>? = null, title: Asset.TitleObject? = null, img: Asset.ImageObject? = null, video: Asset.VideoObject? = null, data: Asset.DataObject? = null)

Types

Link copied to clipboard
@Serializable
class DataObject(var type: Byte, var len: Int)
Link copied to clipboard
@Serializable
class ImageObject(var type: Byte, var w: Int? = null, var h: Int? = null, var hmin: Int? = null, var wmin: Int? = null)
Link copied to clipboard
@Serializable
class TitleObject(var length: Int)
Link copied to clipboard
@Serializable
class VideoObject(var mimes: Array<String>? = null, var minduration: Int = 0, var maxduration: Int = 60, var protocols: ByteArray? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard