Class MyTargetStandardAdAdapter

    • 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 destroy() Destroys adapter and cleans resources.
      void load(@NonNull() MediationAdConfig mediationAdConfig, @NonNull() MyTargetView.AdSize adSize, @NonNull() MediationStandardAdAdapter.MediationStandardAdListener listener, @NonNull() Context context) Will be called when mediation choose this adapter for loading mediation.
      • Methods inherited from class java.lang.Object

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

      • MyTargetStandardAdAdapter

        MyTargetStandardAdAdapter()
    • Method Detail

      • destroy

         void destroy()

        Destroys adapter and cleans resources. Adapter will not work after calling this method

      • load

         void load(@NonNull() MediationAdConfig mediationAdConfig, @NonNull() MyTargetView.AdSize adSize, @NonNull() MediationStandardAdAdapter.MediationStandardAdListener listener, @NonNull() Context context)

        Will be called when mediation choose this adapter for loading mediation. All of initialization and loading logic should be implemented here. Then should be called com.my.target.mediation.MediationStandardAdAdapter.MediationStandardAdListener#onLoad(android.view.View,com.my.target.mediation.MediationStandardAdAdapter) MediationStandardAdAdapter.MediationStandardAdListener.onLoad(View, MediationStandardAdAdapter) in case of failed loading should be called com.my.target.mediation.MediationStandardAdAdapter.MediationStandardAdListener#onNoAd(com.my.target.common.models.IAdLoadingError,com.my.target.mediation.MediationStandardAdAdapter) MediationStandardAdAdapter.MediationStandardAdListener.onNoAd(IAdLoadingError, MediationStandardAdAdapter) with the reason of fail. If no callbacks will be called, adapter will be removed from loading queue, and next adapter or no ad will be called.