Package com.my.target.mediation
Interface MediationStandardAdAdapter.MediationStandardAdListener
-
- Enclosing interface:
- MediationStandardAdAdapter
public static interface MediationStandardAdAdapter.MediationStandardAdListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonClick(MediationStandardAdAdapter adapter)Must be called when ad view received click.voidonLoad(android.view.View adView, MediationStandardAdAdapter adapter)Must be called when implemented ads network loads successfully insideMediationStandardAdAdapter.load(MediationAdConfig, AdSize, MediationStandardAdListener, Context)method.voidonNoAd(java.lang.String reason, MediationStandardAdAdapter adapter)Must be called when implemented ads failed to load for some reason insideMediationStandardAdAdapter.load(MediationAdConfig, AdSize, MediationStandardAdListener, Context)method.voidonShow(MediationStandardAdAdapter adapter)Must be called when ad view showing / impression must be tracked.
-
-
-
Method Detail
-
onLoad
void onLoad(@NonNull android.view.View adView, @NonNull MediationStandardAdAdapter adapter)Must be called when implemented ads network loads successfully insideMediationStandardAdAdapter.load(MediationAdConfig, AdSize, MediationStandardAdListener, Context)method.- Parameters:
adView- advertisement viewadapter- an instance of current adapter
-
onNoAd
void onNoAd(@NonNull java.lang.String reason, @NonNull MediationStandardAdAdapter adapter)Must be called when implemented ads failed to load for some reason insideMediationStandardAdAdapter.load(MediationAdConfig, AdSize, MediationStandardAdListener, Context)method.- Parameters:
reason- a reason of fail to loadadapter- an instance of current adapter
-
onShow
void onShow(@NonNull MediationStandardAdAdapter adapter)Must be called when ad view showing / impression must be tracked. Most of ad networks provide callbacks for this, so pass it here- Parameters:
adapter- an instance of current adapter
-
onClick
void onClick(@NonNull MediationStandardAdAdapter adapter)Must be called when ad view received click. Most of ad networks provide callbacks for this, so pass it here- Parameters:
adapter- an instance of current adapter
-
-