AdResponseBundle

data class AdResponseBundle(val adResponse: AdResponse, val jsonString: String) : Parcelable

A class that includes both AdResponse and the full JSON response received from the ad server.

An instance of this class is used in the AdRenderer.configure method, and can be useful for custom renderers. You can use it to build your own renderers based on AdResponse, or you can get only the keys you need from the passed JSON string.

See also

Constructors

Link copied to clipboard
constructor(adResponse: AdResponse, jsonString: String)

Creates an AdResponseBundle instance. You can use this constructor for testing. Normally you do not need to use it.

Properties

Link copied to clipboard

The data received from the ad server and decoded by the SDK.

Link copied to clipboard

The full JSON response received from the ad server.

Functions

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