![]() |
Mobile Ads SDK Team |
![]() |
Mobile Ads SDK Team |
RewardedAd.Load(_adUnitId, adRequest,
(RewardedAd ad, LoadAdError error) =>
{
// if error is not null, the load request failed.
if (error != null || ad == null)
{
Debug.LogError("Rewarded ad failed to load an ad " +
"with error : " + error);
return;
}
Debug.Log("Rewarded ad loaded with response : "
+ ad.GetResponseInfo());
rewardedAd = ad;
RegisterEventHandlers(rewardedAd);
});
RegisterEventHandlers(rewardedAd);
2. We should be safe and handle callbacks on the Unity main thread.
Hope this helps,
- Nick