3-4. Interstitial Video Ads (Non Reward)

It is an ad type that is similar to video ads but does not offer rewards.

Create an Interstitial Video Ads instance

private OAMInterstitialVideo    interstitialVideo;
 
@Override
protected void onCreate(Bundle savedInstanceState) {
    ...
 
    interstitialVideo = new OAMInterstitialVideo( this );
}

Interstitial Video Ads PLACEMENT ID

Add the following code to set the PLACEMENT ID for the Interstitial Video Ads. The PLACEMENT ID for Interstitial Video Ads can be generated in the ONE AdMax console.

interstitialVideo.setPlacementId( PLACEMENT_ID );

Interstitial Video Ads network schedule timeout

When loading Interstitial Video Ads, a timeout is set for each network (mediation partner). If an ad is not received within the specified time, it will move on to the next network.

interstitialVideo.setNetworkScheduleTimeout( 10 ); // default 10 sec

Interstitial Video Ads request

Interstitial Video Ads display

Specify the Activity for displaying Interstitial Video Ads

This is used when displaying Interstitial Video Ads in an activity different from the one where the load() API was called.

Check if the Interstitial Video Ads have been loaded

This is called to check whether the Interstitial Video Ads have been loaded or not.

Interstitial Video Ads event listener

Set up listeners for events that occur when loading Interstitial Video Ads.

ONE AdMax SDK Error Codes

Interstitial Video Ad Sample Code

Last updated