iAd banner with multitasking

I've got a universal app with an iAd banner across the bottom and I've got it working with iOS9 multitasking. When my app is running on the iPad in portrait and I split into 2 apps my app becomes condensed.. which works. The iAd banner across the bottom doesn't resize to the condensed view, it's just clipped off. Is there a way to adjust this? If the ipad is in landscape the ad sizes correclty.

I'm having the same issue.

Did you solve it?


I'd greatly appreciate help.


Edit: I really can't find anything anywhere.


Is it possible there are only two people who ran into this issue, respectively no one else is bothered by it?


I mean so much split-screen, productivity and iPad Pro talk, but nothing on this issue or iAd documentation update at least mentioning different ad sizes for condensed views.


Please, community, what am I missing?

I've also encountered this and not been able to solve it. I have the issue at the 1/3 and 1/2 iPad screen sizes

I've submitted a bug report: 22771587

I'm running into the same problem.


What I find interesting is in this method (called from viewWillTransitionToSize):


func displayAdBannerInView(viewController: UIViewController, newSize: CGSize) {
    AdBanner.adBannerView.frame.size = AdBanner.adBannerView.sizeThatFits(newSize)
    AdBanner.adBannerView.frame.origin.y = newSize.height - AdBanner.adBannerView.frame.size.height - viewController.tabBarController!.tabBar.frame.size.height
}


When I find that my app is in a compressed width (slide over or side by side), the result from calling sizeThatFits(newSize) has a width that is greater than newSize.width. Why would sizeThatFits() return something larger than its input?


I tried manually ensuring that AdBanner.adBannerView.frame.size.width was set to newSize.width in this case, and it didn't make any difference.

Another interesting thing I noticed, both on iOS 9 and 9.1 beta. If my app is multitasking (either slide over or side by side) and I try to interact with an iAd banner (touching it), there is a pop-up, but no ad content loads.


Once I make my app full-screen again, then the ad content will load.

Ultimately I figure it's an issue with Apples own iAd network & the content sizes they support.

Pushing split view multitasking so hard yet not adapting the banner sizes seems shortsighted - or Apple assumes people line up to purchase our apps and ad support is unnecessary.


Things that work for me:

- Normal iPad without split-view

- iPad Pro Portrait

-iPad Pro Landscape with 1/3 going to another app


Correct ad display but cut off ad presentation:

-iPad Pro in side by side mode


Correct ad presentation, but ad is blacked out:

-iPad Pro app fullscreen in landscape orientation


Just weird:

When I run my app (as main) on the iPad Air 2 simulator all is fine until I split-in another app.

Even after giving my app full screen again, banners will show up on top under the Navigation Controller or briefly flicker in the correct location before they fly off the screen.


Implementation:

Just "canDisplayBannerAds" to keep it clean.


Apples own iAd suite shows the same behavior.


However the lack of interest in that topic seems to support the notion that iAd support might be not very important to enough people.

iAd banner with multitasking
 
 
Q