3-2. Interstitial Ads
It is an ad format that covers the entire screen.
Create an instance of the interstitial ad.
private OAMInterstitial interstitial;
@Override
protected void onCreate(Bundle savedInstanceState) {
...
interstitial = new OAMInterstitial( this );
}Set the placement ID for the interstitial ad
Apply the PLACEMENT ID issued from the ONE AdMax console as follows.
interstitial.setPlacementId( PLACEMENT_ID );Request the interstitial ad
interstitial.load();Excessive calls to the load() API may lead to blocking.
Display the interstitial ad
Specify the activity for displaying the interstitial ad
By default, interstitial ads are displayed in the Activity where the load API was called.
If you want to display the interstitial ad in an Activity other than the one that called the load API, pass the Activity object as an argument to the setCurrentActivity method.
Check whether the interstitial ad has been loaded.
It is called to determine the availability of an ad when loading an interstitial ad.
Set the event listener for the interstitial ad.
Set a listener for events that occur when loading a interstial ad.
ONE AdMax SDK Error CodesCustom options for interstitial ads.
Sample code for interstitial ads.
Last updated