Class MediationBannerAdUnit

    • 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
    • Constructor Detail

      • MediationBannerAdUnit

        MediationBannerAdUnit(Context context, String configId, AdSize size, PrebidMediationDelegate mediationDelegate)

        Default constructor.

        Parameters:
        context - Context
        configId - config id
        size - ad size
        mediationDelegate - mediation delegate (AdMobBannerMediationUtils or MaxMediationBannerUtils.
    • Method Detail

      • destroy

         void destroy()

        Destroy ad unit.

      • fetchDemand

         final void fetchDemand(OnFetchCompleteListener listener)

        Loads ad and applies mediation delegate.

        Parameters:
        listener - callback when operation is completed (success or fail)
      • setAdUnitFormats

         void setAdUnitFormats(EnumSet<AdUnitFormat> adUnitFormats)

        Sets the ad unit formats requested on a single impression.

        Defaults to BANNER. Pass VIDEO for an outstream video banner, or both values to let display and video demand compete on the same impression.

        A null or empty set is ignored and the current value is kept.

        Unlike BannerView, a mediation ad unit is not told whether the Prebid bid actually won in the primary ad server, so auto refresh keeps running when video is requested. Call stopRefresh and resumeRefresh around video playback if the refresh interval is shorter than the creatives being served.

      • resumeRefresh

         void resumeRefresh()

        Resumes auto refresh if it was stopped.

      • stopRefresh

         void stopRefresh()

        Stops automatic refreshing. Use this for better performance when the view is off‑screen or covered by another view. To start refreshing again, call resumeRefresh.