This is still a relatively new topic so not sure how many people have got to implement iAd on iPad (iOS4.2.1).
But basically, I get the iAd banner to appear in landscape mode (and it appears correctly). The only problem is when I click the "Test Advertisement" it shows the test advertisement in portrait mode. I.e., the device is still in landscape but the text and iad box itself that says "this confirms that test ads are running correctly" is sideways.
Is this normal? has anyone else experience this? It almost seems like an apple bug but I'm not sure...
Make sure that Rotation Lock is off: Swipe down from the top-right corner of your screen to open Control Center. Then tap the Rotation Lock button to make sure it's off. Turn your iPad sideways.
On an iPhone with a Home button, swipe up from the bottom of the screen to access it. On an iPhone without a Home button, swipe down from the top-right corner of the screen instead. Here, tap on the rotation lock icon (which looks like a lock with a circular arrow) to turn it on or off.
This happens to me, too. Apple's test ads on iPhone and iPad are portrait only. Real advertisements probably will support landscape mode.
the ADBannerView's requiredContentSizeIdentifiers is defaulted to have Landscape AND Portrait. If you are using landscape only, you must make a new NSSet with ADBannerContentSizeIdentifierLandscape
iAdView.requiredContentSizeIdentifiers = [NSSet setWithObjects:ADBannerContentSizeIdentifierLandscape, nil];
After doing this, the test ad with show up correctly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With