article

justin avatar image
justin posted

Ads are failing to display on iOS in Unity 4.6   

Summary:

The following issue may occur when attempting to display your interstitial or banner ad from Unity 4.6: [Warning: Attempt to present on whose view is not in the window hierarchy!

To fix this, add the following line to the top of the AMAZONAmazonMobileAdsImpl.h methods, createAndShowFloatingBannerAd() and showInterstitialAdWithError()

self.topController = [self.controller currentViewController];

Keywords: iOS, view controller, interstitial, Unity, 4.6

KB_277

mobile ads
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Article

Contributors

brizzlebrazzle contributed to this article Justin@Amazon contributed to this article