Home / Unity / Rewarded Video / Rewarded video example in Unity

SDK Tappx Unity GDPR

Rewarded video example in Unity

Below you can see a small example of running a rewarded video ad.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class start : MonoBehaviour {
// Start is called before the first frame update

void Start() {
TappxManagerUnity.instance.loadRewarded();

}
void RewardedLoaded(){

}

// Update is called once per frame
void Update() {
if(SomeEventTrue){
if(TappxManagerUnity.instance.isRewardedReady()){
TappxManagerUnity.instance.rewardedShow();
}
}
}
}