Advertisement
Main Advertisement object. Can be created independently of presentation, then passed to rememberAdState in Compose. In order to fetch the Ad, loadAdvertisement method should be called.
Constructors
Link copied to clipboard
constructor(contentId: String, adTypes: List<String>, wi: UInt? = null, timeoutAfterSeconds: UInt? = null, profiles: HashMap<String, String> = hashMapOf(), keywords: List<String> = listOf(), gdprPd: Boolean? = null, serverSideHeaderBidding: Boolean? = null, campaignId: String? = null, bannerId: String? = null, dsa: DSA? = null, placementType: PlacementType = PlacementType.INLINE, targetURLHandler: TargetURLHandlerInterface? = null)
Advertisement constructor
constructor(learningTag: Map<String, String>, adTypes: List<String>, wi: UInt? = null, timeoutAfterSeconds: UInt? = null, profiles: HashMap<String, String> = hashMapOf(), keywords: List<String> = listOf(), gdprPd: Boolean? = null, serverSideHeaderBidding: Boolean? = null, campaignId: String? = null, bannerId: String? = null, dsa: DSA? = null, placementType: PlacementType = PlacementType.INLINE, targetURLHandler: TargetURLHandlerInterface? = null)
Advertisement constructor
Bundle constructor
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Downloads an ad image
Link copied to clipboard
Loads an advertisement from the server and manages the state depending on the result. Notifies an IMPRESSION event if the AdResponse contains a trigger for it.
Link copied to clipboard
Save Advertisement to bundle so it wouldn't be re-fetched when destroyed when scrolling the list for example
Link copied to clipboard
Set state of the ad
Link copied to clipboard
Triggers the ad click.
Link copied to clipboard
Link copied to clipboard