Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

How can I do something if no internet or ad fails for some reason?

Discussion in 'Unity Ads' started by yoash, Jun 9, 2015.

  1. yoash

    yoash

    Joined:
    Sep 3, 2013
    Posts:
    36
    I got an app rejection because the ad page was coming up as a blank screen.. If the ad fails for any reason, how can I do something (like go back to the main menu)?

    Also, in the section for "Ad skipped" I simply put ShowAdvertisement again, so when they skip it shows another one. Is this a bad idea or could it cause a problem? I am going to change it so that skipping simply goes back to the menu.

    Thanks
     
  2. unity-nikkolai

    unity-nikkolai

    Unity Technologies

    Joined:
    Sep 18, 2014
    Posts:
    541
    This is typically due to poor network conditions.

    The issue occurs on Android and is due to the webview content being cached when the first ad is shown. We have an update to the SDK on the way that fixes this by caching the webview content during initialization.

    In the meantime, we have a limited release version of the SDK with this fix that I can provide you with. Contact me directly if you'd like access to this build, and if you'd like it as an asset package or just the SDK.