NativeAdPool
Properties
Link copied to clipboard
Number of ads currently available for acquire, as a live signal.
Link copied to clipboard
Current load state of the pool.
Link copied to clipboard
The placement this pool is bound to.
Functions
Link copied to clipboard
Acquires a NativeAdToken from the pool, or null if none available. Every acquire must be paired with a release.
Link copied to clipboard
Returns the number of cached ads currently available for acquire.
Link copied to clipboard
Returns media info (aspect ratio, video duration) for the ad identified by token.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun preload(count: Int = placement.cachePolicy.maxSize, requestOptions: AdRequestOptions = placement.requestOptions, nativeOptions: NativeAdOptions = placement.nativeOptions): AdLoadState
Preloads count native ads.
Link copied to clipboard
Releases a previously acquired NativeAdToken. The underlying native ad is destroyed/discarded (native ads are single-use and not returned to the pool). Call when the rendering view is disposed.