1. Set the rewarded video ad delegate method
Yodo1U3dMas.SetRewardedAdDelegate((Yodo1U3dAdEvent adEvent, Yodo1U3dAdError error) => {
Debug.Log("[Yodo1 Mas] RewardVideoDelegate:" + adEvent.ToString() + "\n" + error.ToString());
switch (adEvent)
{
case Yodo1U3dAdEvent.AdClosed:
Debug.Log("[Yodo1 Mas] Reward video ad has been closed.");
break;
case Yodo1U3dAdEvent.AdOpened:
Debug.Log("[Yodo1 Mas] Reward video ad has shown successful.");
break;
case Yodo1U3dAdEvent.AdError:
Debug.Log("[Yodo1 Mas] Reward video ad error, " + error);
break;
case Yodo1U3dAdEvent.AdReward:
Debug.Log("[Yodo1 Mas] Reward video ad reward, give rewards to the player.");
break;
}
});
2. Check Rewarded Video Ad Loading Status
bool isLoaded = Yodo1U3dMas.IsRewardedAdLoaded();
3. Show Rewarded Video Ad
Yodo1U3dMas.ShowRewardedAd();
Comments
0 comments
Please sign in to leave a comment.