Class POBDefaultBannerEventHandler

  • All Implemented Interfaces:

    
    public class POBDefaultBannerEventHandler
    extends POBBannerEvent
                        

    This is EventHandler class used when publisher do not want to support primary ad server. hence it always provides onOpenWrapPartnerWin() and OpenWrapSDK uses it own renderer to render the ad

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void requestAd(@Nullable() POBBid bid) Provide onOpenWrapPartnerWin() callback since we are providing 'No Ad Server Configuration feature'
      void destroy() Method to do the cleanup
      Array<POBAdSize> requestedAdSizes() OpenWrap SDK calls this method to get the size for which ad request should be made.
      void setEventListener(@NonNull() POBBannerEventListener listener) Method to set POBBannerEventListener to get request ad callback
      • Methods inherited from class com.pubmatic.sdk.openwrap.banner.POBBannerEvent

        getAdInteractionListener, getAdServerView, getAdSize, getRenderer
      • Methods inherited from class java.lang.Object

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

      • POBDefaultBannerEventHandler

        POBDefaultBannerEventHandler(Array<POBAdSize> adSizes)
        Constructor Accepts POBAdSize and initialize POBDefaultBannerEventHandler
        Parameters:
        adSizes - List of banner ad sizes for this impression
      • POBDefaultBannerEventHandler

        POBDefaultBannerEventHandler()
        Default Constructor to avoid empty array initialization of adSizes
    • Method Detail

      • requestAd

         void requestAd(@Nullable() POBBid bid)

        Provide onOpenWrapPartnerWin() callback since we are providing 'No Ad Server Configuration feature'

        Parameters:
        bid - bid details object having price and other useful information that can be passed to
      • destroy

         void destroy()

        Method to do the cleanup

      • requestedAdSizes

        @Nullable() Array<POBAdSize> requestedAdSizes()

        OpenWrap SDK calls this method to get the size for which ad request should be made.

        Returns:

        Array of POBAdSize