4-4. Interstitial Video Ads for Unity (Non Reward)
It is the same format as video ads, but it is a type of ad that does not provide rewards.
Before you begin
04. Unity-Plugin GuideONEAdMax SDK initialize
...
using ONEAdMax;
...
public class ONEAdMaxDemo : MonoBehaviour
{
private static bool _isInitialized = false;
void Start()
{
if (!_isInitialized)
{
// Initialize the ONEAdMax SDK.
ONEAdMaxClient.Initialize(() =>
{
// This callback is called once the ONEAdMax SDK is initialized.
_isInitialized = true
});
}
}
}Interstitial Video Ads sample code
Create an instance of the OAMInterstitialVideo ad.
Set the network schedule timeout (optional)
Set the event listener for Interstitial Video Ads (optional)
ONE AdMax SDK Error CodesCreate an instance of the Interstitial Video Ad
Load the Interstitial Video Ad.
Display the Interstitial Video Ad.
Destroy the memory for the Interstitial Video Ad.
Check whether the Interstitial Video Ad is loaded
Last updated