4-2. Interstitial Ads for Unity
It is an ad that covers the entire screen.
Before you begin
04. Unity-Plugin GuideONEAdMax SDK initialization
Before loading ads, it is necessary to initialize ONEAdMax.
The ONEAdMaxClient.Initialize() should only be performed once during the initial setup.
...
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 Ads Sample Code
You can create an instance of OAMInterstitial and extend its functionality by handling events.
Creating an instance of Interstitial Ads.
Custom options for Interstitial Ads (optional).
Setting an event listener for Interstitial Ads (optional).
ONE AdMax SDK Error CodesCreating Interstitial Ads
Complete all the settings and create the OAMInterstitial.
Interstitial Ads Load
Call the Load() API for interstitial ads to request an ad from the server.
Excessive ad requests can be a reason for blocking, so please be cautious!
Interstitial Ads 노출하기
광고 로드가 완료되면 광고를 노출을 원하는 시점에 Show() API를 호출하여 화면에 노출 시킵니다.
Interstitial Ads Memory Destroy
Destroy the memory within the instance of the interstitial ad.
Check whether the Interstitial Ads are loaded.
Check whether the interstitial ad is loaded. (returns true | false)
Last updated