- Home /
Video Ads not showing correctly on IOS
Hello!
I've got an annoying problem considering video ads. I've tried different networks and for all video placements (Rewarded and Interstitial) I've got same problem: the Ad shows 1 frame, then disappears, but the ad sound remains. I think It is needed to enable something in Player settings, but I was not able to find what exactly. Banner ads work fine. Currently I am testing Ad Mob. The reward works fine, but the video ad just not displaying correctly.
My Unity version: 2019.1.9f1Personal
platform: IOS
device: iPad mini 2
void Start()
{
AdMobRewardedAd = RewardBasedVideoAd.Instance;
// Called when an ad request has successfully loaded.
AdMobRewardedAd.OnAdLoaded += HandleRewardBasedVideoLoaded;
// Called when an ad request failed to load.
AdMobRewardedAd.OnAdFailedToLoad += HandleRewardBasedVideoFailedToLoad;
// Called when an ad is shown.
AdMobRewardedAd.OnAdOpening += HandleRewardBasedVideoOpened;
// Called when the ad starts to play.
AdMobRewardedAd.OnAdStarted += HandleRewardBasedVideoStarted;
// Called when the user should be rewarded for watching a video.
AdMobRewardedAd.OnAdRewarded += HandleRewardBasedVideoRewarded;
// Called when the ad is closed.
AdMobRewardedAd.OnAdClosed += HandleRewardBasedVideoClosed;
// Called when the ad click caused the user to leave the application.
AdMobRewardedAd.OnAdLeavingApplication += HandleRewardBasedVideoLeftApplication;
// Initialize the Google Mobile Ads SDK.
MobileAds.Initialize(appId);
this.Load_rewarded_video();
}
//============================ Google ad mob Handlers======================
public void HandleRewardBasedVideoLoaded(object sender, EventArgs args)
{
//MonoBehaviour.print("HandleRewardBasedVideoLoaded event received");
}
public void HandleRewardBasedVideoFailedToLoad(object sender, AdFailedToLoadEventArgs args)
{
Time.timeScale = 1;
//MonoBehaviour.print(
// "HandleRewardBasedVideoFailedToLoad event received with message: "
// + args.Message);
}
public void HandleRewardBasedVideoOpened(object sender, EventArgs args)
{
//MonoBehaviour.print("HandleRewardBasedVideoOpened event received");
}
public void HandleRewardBasedVideoStarted(object sender, EventArgs args)
{
//MonoBehaviour.print("HandleRewardBasedVideoStarted event received");
}
public void HandleRewardBasedVideoClosed(object sender, EventArgs args)
{
//MonoBehaviour.print("HandleRewardBasedVideoClosed event received");
Time.timeScale = 1;
this.Load_rewarded_video();
}
public void HandleRewardBasedVideoRewarded(object sender, Reward args)
{
Time.timeScale = 1;
ContinueGameCalculations();
}
public void HandleRewardBasedVideoLeftApplication(object sender, EventArgs args)
{
//MonoBehaviour.print("HandleRewardBasedVideoLeftApplication event received");
}
private void Load_rewarded_video()
{
#if UNITY_IOS
string ad_unit = "ca-app-pub-5759662936416666/3614416666";
#endif
AdMobRewardedAd.LoadAd(new AdRequest.Builder().Build(), ad_unit);
}
Answer by Radonezhskiy · Jul 25, 2019 at 08:55 AM
[Resolved]
By some reason the very first test ad from Admob shows this way, but the next ones work fine.
Hello, is the problem still exist? I'm facing this issue, but perhaps it's random on my side, not the very first test.
Hello! I've opened this issue with unity ads: https://answers.unity.com/questions/1676727/unity-advertisements-crash-ios-game.html
Please check The problem still exists for admob and unity ads skd
Your answer
Follow this Question
Related Questions
Admob video ad shows only once on the phone ? 1 Answer
admob legacy api can load multiple video ads but new api doesn't ? 0 Answers
Admob rewarded video give more and more reward. Why 3 Answers
Admob Reward video not showing up, but the test ad unit is showing. 2 Answers
admob rewarded video ad dont reward 1 Answer