AdResponse

data class AdResponse(val adType: String, val bannerId: String, val adName: String = "", val body: AdResponse.Body? = null, val campaignId: String, val clickUrl: String, val contentUnitId: String, val files: List<AdResponse.FileItem>, val height: Int, val logId: String, val networkId: Int, val options: AdResponse.Options, val placementType: String, val webViewConfig: AdResponse.WebviewConfig, val width: Int) : Parcelable

Base Ad response from API

Constructors

Link copied to clipboard
constructor(adType: String, bannerId: String, adName: String = "", body: AdResponse.Body? = null, campaignId: String, clickUrl: String, contentUnitId: String, files: List<AdResponse.FileItem>, height: Int, logId: String, networkId: Int, options: AdResponse.Options, placementType: String, webViewConfig: AdResponse.WebviewConfig, width: Int)

Create empty Ad response

Types

Link copied to clipboard
data class Body(val assets: List<AdResponse.Body.Asset>, val eventTrackers: List<AdResponse.Body.EventTracker>, val ext: AdResponse.Body.Ext? = null) : Parcelable
Link copied to clipboard
object Companion
Link copied to clipboard
data class FileItem(val url: String, val name: String, val options: AdResponse.FileItem.FileOptions? = null) : Parcelable
Link copied to clipboard
data class Options(val usesCustomClose: Boolean? = null, val body: String? = null, val closeAfter: UInt? = null, val closeButtonAfter: UInt? = null, val countdownColor: String? = null) : Parcelable
Link copied to clipboard
data class WebviewConfig(val hardwareAccelerated: Boolean) : Parcelable

Properties

Link copied to clipboard
Link copied to clipboard

Type of Ad

Link copied to clipboard

The banner_id the ad has been served for

Link copied to clipboard
val body: AdResponse.Body? = null

Body of the Ad

Link copied to clipboard

The networkID the ad has been served for

Link copied to clipboard
Link copied to clipboard

The content unit the ad has been served for

Link copied to clipboard

Files that Ad contains

Link copied to clipboard
val height: Int

Height of the Ad

Link copied to clipboard

Log ID of the Ad

Link copied to clipboard

The networkID the ad has been served for

Link copied to clipboard

Options of the Ad

Link copied to clipboard

Type of Ad. Inline or interstitial

Link copied to clipboard
Link copied to clipboard
val width: Int

Width of the Ad

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)