Interface PrebidMobilePluginRenderer

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String getName()
      abstract String getVersion()
      abstract JSONObject getData()
      abstract void registerEventListener(PluginEventListener pluginEventListener, String listenerKey) Register a listener related to a specific ad unit config fingerprint in order to dispatch specific ad events
      abstract void unregisterEventListener(String listenerKey) Unregister a listener based on an ad unit config fingerprint
      abstract View createBannerAdView(Context context, DisplayViewListener displayViewListener, DisplayVideoListener displayVideoListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse) Creates and returns Banner View for a given Bid Response.
      abstract PrebidMobileInterstitialControllerInterface createInterstitialController(Context context, InterstitialControllerListener interstitialControllerListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse) Creates and returns an implementation of PrebidMobileInterstitialControllerInterface for a given bid response Returns null in the case of an internal error
      abstract boolean isSupportRenderingFor(AdUnitConfiguration adUnitConfiguration) Returns true only if the given ad unit could be renderer by the plugin
      boolean sendsWinNotice() Returns true if the renderer, or the ad SDK it wraps, sends the win notice for its ads itself.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • registerEventListener

         abstract void registerEventListener(PluginEventListener pluginEventListener, String listenerKey)

        Register a listener related to a specific ad unit config fingerprint in order to dispatch specific ad events

      • unregisterEventListener

         abstract void unregisterEventListener(String listenerKey)

        Unregister a listener based on an ad unit config fingerprint

      • createBannerAdView

         abstract View createBannerAdView(Context context, DisplayViewListener displayViewListener, DisplayVideoListener displayVideoListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse)

        Creates and returns Banner View for a given Bid Response. Returns null in the case of an internal error. Don't forget to clean resources in onDetachedFromWindow.

      • createInterstitialController

         abstract PrebidMobileInterstitialControllerInterface createInterstitialController(Context context, InterstitialControllerListener interstitialControllerListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse)

        Creates and returns an implementation of PrebidMobileInterstitialControllerInterface for a given bid response Returns null in the case of an internal error

      • isSupportRenderingFor

         abstract boolean isSupportRenderingFor(AdUnitConfiguration adUnitConfiguration)

        Returns true only if the given ad unit could be renderer by the plugin

      • sendsWinNotice

         boolean sendsWinNotice()

        Returns true if the renderer, or the ad SDK it wraps, sends the win notice for its ads itself.

        When a plugin renderer creates the ad, Prebid sends the bid's win notice: nurl, the Prebid Cache URLs and ext.prebid.events.win. Return true so that Prebid does not send it a second time. The default returns false, and Prebid sends the win notice.