Interface MediationNativeBannerAdAdapter

  • All Implemented Interfaces:
    com.my.target.mediation.MediationAdapter

    
    public interface MediationNativeBannerAdAdapter
     implements MediationAdapter
                        

    Mediation adapter interface for NativeBanner format. Every mediation adapter for this format should implement this for correct work.

    • 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 View getIconView(@NonNull() Context context) Must return view for displaying icon view for correct implementation of Native Ads and tracking.
      abstract void load(@NonNull() MediationNativeBannerAdConfig mediationAdConfig, @NonNull() MediationNativeBannerAdAdapter.MediationNativeBannerAdListener listener, @NonNull() Context context) Will be called when mediation choose this adapter for loading mediation.
      abstract void registerView(@NonNull() View view, @Nullable() List<View> clickableViews, int adChoicesPlacement) Will be called when view becomes ready to be shown.
      abstract void registerView(@NonNull() NativeBannerAdViewBinder nativeBannerAdViewBinder, @Nullable() List<View> clickableViews, int adChoicesPlacement) Will be called when view becomes ready to be shown.
      abstract void unregisterView() Will be called when view appears invisible and unused.
      • Methods inherited from class com.my.target.mediation.MediationAdapter

        destroy
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getIconView

        @Nullable() abstract View getIconView(@NonNull() Context context)

        Must return view for displaying icon view for correct implementation of Native Ads and tracking. It is optional, but preferred.

        Parameters:
        context - app context
        Returns:

        View for Icon

      • registerView

        @Deprecated() abstract void registerView(@NonNull() View view, @Nullable() List<View> clickableViews, int adChoicesPlacement)

        Will be called when view becomes ready to be shown. There must be called apis to start tracking views, adding listeners on views and load resources, which was not loaded previously, such as not pre-loaded media content. Clickable views is optional, if set - click listeners must be placed only on views in this list, otherwise must be used default logic of ad network

        Parameters:
        view - view to be registered
        clickableViews - optional views want to be clickable
        adChoicesPlacement - placement of AdChoices icon.
      • registerView

         abstract void registerView(@NonNull() NativeBannerAdViewBinder nativeBannerAdViewBinder, @Nullable() List<View> clickableViews, int adChoicesPlacement)

        Will be called when view becomes ready to be shown. There must be called apis to start tracking views, adding listeners on views and load resources, which was not loaded previously, such as not pre-loaded media content. Clickable views is optional, if set - click listeners must be placed only on views in this list, otherwise must be used default logic of ad network

        Parameters:
        nativeBannerAdViewBinder - is binder for views to be registered
        clickableViews - optional views want to be clickable
        adChoicesPlacement - placement of AdChoices icon.
      • unregisterView

         abstract void unregisterView()

        Will be called when view appears invisible and unused. There must be called apis to stop tracking views and free resources.