4-2. Interstitial Ads for Unity

It is an ad that covers the entire screen.

Before you begin

04. Unity-Plugin Guidechevron-right

ONEAdMax 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).

circle-exclamationONE AdMax SDK Error Codeschevron-right

Creating 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.

circle-exclamation

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