4-1. Rewarded Video Ads for Unity
This is an ad type where users are rewarded after watching the video ad to completion.
Before you begin
04. Unity-Plugin GuideONEAdMax SDK initialization
...
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
});
}
}
}User identifier setting
Reward Video AD Sample Code
Create a Reward Video Ad instance
Network schedule timeout setting (optional)
Setting up event listeners for Reward Video Ads (optional)
ONE AdMax SDK Error CodesCreate a Reward Video Ad
Load the Reward Video Ad
Display the Reward Video Ad
Destroys the ad
Check if the Reward Video Ad has been loaded
Extending the application's lifecycle
Call the CS page
Mediation settings
πStarting MediationLast updated