//sdk/com.adsbynimbus/NimbusAdManager
NimbusAdManager
class NimbusAdManager(publisherKey: String? = null, apiKey: String? = null) : RequestManager
The entry point for requesting and rendering an ad from Nimbus.
Parameters
androidJvm
| publisherKey | Defaults to the publisherKey used to initialize the SDK. Can be overridden with apiKey to have this NimbusAdManager instance send requests to a different Nimbus environment. |
| apiKey | Defaults to the apiKey used to initialize the SDK. Can be overridden with publisherKey to have this NimbusAdManager instance send requests to a different Nimbus environment. |
Constructors
| NimbusAdManager | constructor(publisherKey: String? = null, apiKey: String? = null) |
Types
| Name | Summary |
|---|---|
| Companion | object Companion |
| Listener | fun interface Listener : NimbusResponse.Listener, Renderer.Listener, NimbusError.Listener A listener for a request made to Nimbus. |
Properties
| Name | Summary |
|---|---|
| apiKey | open override val apiKey: String |
| publisherKey | open override val publisherKey: String |
Functions
| Name | Summary |
|---|---|
| makeRequest | open suspend fun makeRequest(context: Context, request: NimbusRequest): NimbusResponse open fun <T : NimbusResponse.Listener, NimbusError.Listener> makeRequest(context: Context, request: NimbusRequest, listener: T) |
| notifyError | fun RequestManager.notifyError(extras: Bundle, error: AdError): Job |
| notifyLoss | fun RequestManager.notifyLoss(nimbusResponse: NimbusResponse, auctionData: AuctionData?, requestHandler: RequestHandler = Tracker.requestHandler) Notifies Nimbus of an external auction Loss |
| notifyPrice | fun RequestManager.notifyPrice(extras: Bundle, adValue: AdValue) |
| notifyWin | fun RequestManager.notifyWin(nimbusResponse: NimbusResponse, auctionData: AuctionData?, requestHandler: RequestHandler = Tracker.requestHandler) Notifies Nimbus of an external auction Win |
| showAd | fun showAd(request: NimbusRequest, viewGroup: ViewGroup, listener: NimbusAdManager.Listener) fun showAd(request: NimbusRequest, @IntRange(from = 20)refreshInterval: Int, viewGroup: ViewGroup, listener: NimbusAdManager.Listener) Makes a request to Nimbus and renders the result into an AdController. |
| showBlockingAd | fun showBlockingAd(request: NimbusRequest, activity: Activity, listener: NimbusAdManager.Listener) fun showBlockingAd(request: NimbusRequest, @IntRange(from = 0, to = 3600)closeButtonDelaySeconds: Int = 5, activity: Activity, listener: NimbusAdManager.Listener) Makes a request to Nimbus and renders the result into an AdController. |
| showRewardedAd | fun showRewardedAd(request: NimbusRequest, @IntRange(from = 0, to = 3600)closeButtonDelaySeconds: Int, activity: Activity, listener: NimbusAdManager.Listener) Makes a rewarded request to Nimbus and renders the result into an AdController. |