- Home /
Prevent ad from pausing game (UnityAds)
I am creating a basic ad call using the line
Advertisement.Show(null, new ShowOptions {
pause = false,
resultCallback = result => {
Debug.Log(result.ToString());
}
});
And the ad is being successfully created on mobile and in engine just fine. However, part of my game requires that the ad not pause the scene when being shown and despite pause being set to false, the ad continues to do just that. What am I missing here?
Thanks a ton as always.
Answer by LightSource · Jul 13, 2015 at 02:35 AM
For anyone else who is searching and comes across this question, I got the answer here: http://forum.unity3d.com/threads/show-ads-with-showoptions-pause-false.311752/#post-2184834
The pause option has no effect. The Unity Player is always paused on the device when ads are shown.
If you are seeing a "Video Playback Error", this is typically a failure to stream the video ad over poor network conditions. Unity ads attempts to cache each video ad before showing. However, if it has not cached the ad before the ad is shown, it will then attempt to stream.
We can however disable streaming, forcing Unity Ads to only be ready when ads are fully cached. This should avoid this error, effectively improving user experience. However it may also limit the availability of ads.
Contact me directly with your game ID if you would like streaming disabled. We are currently working on improvements to the SDK which should handle this issue more gracefully in the future.
unity-nikkolai
Your answer
Follow this Question
Related Questions
Ads Showing Only in Editor 0 Answers
Issue with ads on iPhone 6 and 6+ 0 Answers
Using MoPub and ad systems 0 Answers
Ads show up in editor but not during play test on iPhone 1 Answer
What does iPhone.advertisingTrackingEnabled actually reference? 1 Answer