Quantcast
Channel: Questions in topic: "crash"
Viewing all articles
Browse latest Browse all 2383

Unity AdMob Crashes After VideoAd Load (Android)

$
0
0
Hi, I have built versions with ads just fine months ago till recently when I needed to make some changes. All of a sudden on Unity version (2019.2.8f1), my android builds keep crashing after a minute or so (assuming that's when I find an ad). I can't find any specific errors except for "HandleRewardBasedVideoFailedToLoad" method being run (Figure 2). Here are some pictures: ![alt text][1] ![alt text][2] [1]: https://cdn.discordapp.com/attachments/497874004401586176/631330926357643274/unknown.png [2]: https://cdn.discordapp.com/attachments/308662036303446026/631358718105092106/unknown.png Here is part of the script for managing my reward video ads: public void Start() { // Initialize the Google Mobile Ads SDK. MobileAds.Initialize(appId); // Get singleton reward based video ad reference. this.rewardBasedVideo = RewardBasedVideoAd.Instance; // RewardBasedVideoAd is a singleton, so handlers should only be registered once. this.rewardBasedVideo.OnAdLoaded += this.HandleRewardBasedVideoLoaded; this.rewardBasedVideo.OnAdFailedToLoad += this.HandleRewardBasedVideoFailedToLoad; this.rewardBasedVideo.OnAdOpening += this.HandleRewardBasedVideoOpened; this.rewardBasedVideo.OnAdStarted += this.HandleRewardBasedVideoStarted; this.rewardBasedVideo.OnAdRewarded += this.HandleRewardBasedVideoRewarded; this.rewardBasedVideo.OnAdClosed += this.HandleRewardBasedVideoClosed; this.rewardBasedVideo.OnAdLeavingApplication += this.HandleRewardBasedVideoLeftApplication; Debug.Log("AD REQUEST- 0x0"); this.RequestRewardBasedVideo(); Debug.Log("AD REQUESTED- 0x3"); } public void Update() { Debug.Log("AD NOT LOADED - 0x1"); if ((rewardBasedVideo.IsLoaded())) { Debug.Log("AD LOADED - 0x2"); if (aniCount < 1) notifactionAd.Play("AdPopUp", 0, 0); } } Anyone have any idea? I've been having this problem for over a week now. Thanks!

Viewing all articles
Browse latest Browse all 2383

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>