Millennial Media Android Ad SDK Public Documentation  6.6.1
Classes | Public Member Functions | Public Attributes | List of all members
CustomEventInterstitial Interface Reference
Inheritance diagram for CustomEventInterstitial:
CustomEvent

Classes

interface  CustomEventInterstitialListener
 

Public Member Functions

void loadInterstitial (Context context, CustomEventInterstitialListener interstitialListener, Bundle mediationExtras)
 
void showInterstitial (Context context, Bundle mediationExtras)
 
void destroy ()
 

Public Attributes

String PLACEMENT_ID_KEY = "PLACEMENT_ID"
 

Detailed Description

An interface used to provide interstitial ads from a third party SDK to the One by AOL SDK.

Member Function Documentation

◆ destroy()

void destroy ( )

Called by the SDK when the ad placement is being destroyed. A third party should use this to perform any clean up related to this ad instance

◆ loadInterstitial()

void loadInterstitial ( Context  context,
CustomEventInterstitialListener  interstitialListener,
Bundle  mediationExtras 
)

This method is called by the One by AOL SDK to request an interstitial ad from the third party SDK. The third party SDK should call the onLoaded callback when the ad is successfully loaded.

Parameters
contextan instance of Context
interstitialListeneran implementation of CustomEventInterstitialListener that is used to communicate with the One by AOL SDK
mediationExtrasa bundle containing configuration data for the third party SDK. The placement ID is always mapped using the CustomEvent#PLACEMENT_ID_KEY.

◆ showInterstitial()

void showInterstitial ( Context  context,
Bundle  mediationExtras 
)

This method is called by the One by AOL SDK to request that the third party SDK show the previously loaded interstitial.

Parameters
contextan instanceof Context
mediationExtrasa bundle containing configuration data for the third party SDK. The placement ID is always mapped using the CustomEvent#PLACEMENT_ID_KEY.

Member Data Documentation

◆ PLACEMENT_ID_KEY

String PLACEMENT_ID_KEY = "PLACEMENT_ID"
inherited

Key to use for obtaining the third party placement identifier from the mediationExtras passed during an ad request.