public interface

AppLovinMediationDisplayListener

com.applovin.mediation.AppLovinMediationDisplayListener

Class Overview

This is an interface that defines a listener for mediated ad display events

Created by basil on 12/1/16.

Summary

Public Methods
abstract void adClicked(AppLovinMediatedAdInfo ad)
This method should be called when the user has clicked adapter's ad
abstract void adDisplayed(AppLovinMediatedAdInfo ad)
This method should be called when the adapter has successfully displayed an ad to the user.
abstract void adHidden(AppLovinMediatedAdInfo ad)
This method should be called when adapter's ad has been dismissed
abstract void failedToDisplayAd(AppLovinMediatedAdInfo ad, AppLovinMediationErrorCode errorCode)
This method should be called when the adapter was not able to display an ad to the user
abstract void rewardRejected(AppLovinMediatedAdInfo ad, Map<String, String> rejectionInfo)
This method should be called when user's reward has been rejected
abstract void rewardVerified(AppLovinMediatedAdInfo ad, Map<String, String> rewardInfo)
This method should be called when user is due to receive a reward for an incentivized ad.

Public Methods

public abstract void adClicked (AppLovinMediatedAdInfo ad)

This method should be called when the user has clicked adapter's ad

Parameters
ad Ad that was clicked. May be null (depending on adapter implementation).

public abstract void adDisplayed (AppLovinMediatedAdInfo ad)

This method should be called when the adapter has successfully displayed an ad to the user.

Parameters
ad Ad that was displayed. May be null (depending on adapter implementation).

public abstract void adHidden (AppLovinMediatedAdInfo ad)

This method should be called when adapter's ad has been dismissed

Parameters
ad Ad that was hidden. May be null (depending on adapter implementation).

public abstract void failedToDisplayAd (AppLovinMediatedAdInfo ad, AppLovinMediationErrorCode errorCode)

This method should be called when the adapter was not able to display an ad to the user

Parameters
ad Ad that was failed ot be displayed. May be null (depending on adapter implementation).
errorCode Error code that caused the ad to fail to display.

public abstract void rewardRejected (AppLovinMediatedAdInfo ad, Map<String, String> rejectionInfo)

This method should be called when user's reward has been rejected

Parameters
ad Ad which reward was rejected. May be null (depending on adapter implementation).
rejectionInfo Information about the rejection: please note, this information will be adapter-dependent. This map is guaranteed to have 'adapter' entry that will contain the name of an adapter issuing the reward.

public abstract void rewardVerified (AppLovinMediatedAdInfo ad, Map<String, String> rewardInfo)

This method should be called when user is due to receive a reward for an incentivized ad.

Parameters
ad Ad which reward was verified. May be null (depending on adapter implementation).
rewardInfo Information about the reward: please note, this information will be adapter-dependent. This map is guaranteed to have 'adapter' entry that will contain the name of an adapter issuing the reward.