4-3. Banner Ads for Unity
It is a rectangular image or text ad that occupies a portion of the screen. It remains visible on the screen while the user interacts with the app and automatically refreshes.
Before you begin
04. Unity-Plugin GuideONEAdMax SDK Intitialize
...
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
});
}
}
}Banner ADs Sample Code
Create a Banner View instance.
Banner Size
Size
μμ(Constant)
Set the banner display animation.
μ λλ©μ΄μ
νμ
μ’
λ₯
μμ
μ€λͺ
Set the network schedule timeout (optional)
Set the banner ad request refresh interval (optional)
Fill the banner background color (optional)
Set the banner mediation options (optional).
πStarting MediationListen for events from the banner view (optional)
ONE AdMax SDK Error CodesCreate a banner view.
Banner Load
Stop displaying the banner ad.
Check whether the banner ad is loaded.
Extend the application lifecycle.
Last updated