MediationAdLoadCallback

public interface MediationAdLoadCallback

Callback to be invoked when a mediation adapter loads an ad.

Public Method Summary

abstract void
onFailure(AdError adError)
Called when a mediation adapter fails to load an ad.
abstract void
onFailure(String failure)
This method is deprecated. Use onFailure(AdError) instead.
abstract MediationAdCallbackT
onSuccess(MediationAdT ad)
Success callback for third party ad loading.

Public Methods

public abstract void onFailure (AdError adError)

Called when a mediation adapter fails to load an ad.

Parameters
adError AdError detailing the cause of the failure.

public abstract void onFailure (String failure)

This method is deprecated.
Use onFailure(AdError) instead.

Called when a mediation adapter fails to load an ad.

Parameters
failure Failure reason.

public abstract MediationAdCallbackT onSuccess (MediationAdT ad)

Success callback for third party ad loading. Returns a callback the adapter should use to report ad lifecycle events.

Parameters
ad The loaded ad.
Returns
  • A listener to which the adapter should report ad lifecycle events.