NimbusCustomEvent

open class NimbusCustomEvent : CustomEventBanner, CustomEventInterstitial, NimbusAdManager.Listener, AdController.Listener

A CustomEvent implementation for integrating Nimbus ads with GAM.

When setting up an ad unit in GAM, use the following parameters. Custom event class: com.adsbynimbus.google.NimbusCustomEvent Parameter: Maps to the position parameter of the NimbusRequest. Defaults to "GAM Banner" or "GAM Interstitial"

You can use setRequestForPosition to provide a preconfigured request if the parameter passed to the CustomEvent by Google matches the position.

For more information on setting up a custom network, refer to this link https://support.google.com/admanager/answer/7387351

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
A mapping of position names to request objects

Functions

Link copied to clipboard
open fun onAdEvent(adEvent: AdEvent)
This method does not proxy impression events because Google does not need them
Link copied to clipboard
open fun onAdRendered(controller: AdController)
Link copied to clipboard
open fun onAdResponse(@NonNull nimbusResponse: NimbusResponse)
Link copied to clipboard
open fun onDestroy()
Link copied to clipboard
open fun onError(error: NimbusError)
Link copied to clipboard
open fun onPause()
Link copied to clipboard
open fun onResume()
Link copied to clipboard
open fun requestBannerAd(@NonNull context: Context, @NonNull customEventBannerListener: CustomEventBannerListener, parameter: String, @NonNull adSize: AdSize, @NonNull mediationAdRequest: MediationAdRequest, bundle: Bundle)
Link copied to clipboard
open fun requestInterstitialAd(@NonNull context: Context, @NonNull customEventInterstitialListener: CustomEventInterstitialListener, parameter: String, @NonNull mediationAdRequest: MediationAdRequest, bundle: Bundle)
Link copied to clipboard
open fun setRequestForPosition(@NonNull position: String, @NonNull request: NimbusRequest)
Sets a preconfigured request to be used by the NimbusCustomEvent.
Link copied to clipboard
open fun showInterstitial()