iAd delivery stops after viewing Google ad

Hello,


I released an iPhone app today, normal portrait mode only.


For iAd display, I use the approach of using "canDisplayBannerAds" to control display of ads, and of checking "displayingBannerAd" in viewWillLayoutSubviews to know whether an ad is being displayed by my view controller.


All ads shown in my app work correctly, except for the ad whose banner text is "Meet the Google app."/"install now". (The text of the banner ad periodically changes to "Get the Google app for iPhone.")


When I tap that particular banner, and then dismiss that ad, I no longer get new ad banners in my app. I left my app running for a number of hours, checking on this periodically during the day, and I never again got another ad.


This ad seems different from others in that the ad's orientation is landscape.


And, this issue only occurs for me on an iOS 9 device. No problems on iOS 8.


Any ideas on this? This is concerning to me, because I don't think I'll get any ad revenue after the user has viewed this particular ad.


(One other item: I mentioned above that I check "displayingBannerAd" in viewWillLayoutSubviews...if "displayingBannerAd" is NO, then I display a view of my own in the area at the bottom of the screen. Just speculating here, but I wonder whether--after this Google ad is shown--the "displayingBannerAd" property is permanently set to NO. I wish there was a way to test this kind of landscape ad in the Simulator...is there?)


Thank you.


-Allan

Note to self:


Perhaps a workaround for this is to periodically disable and then re-enable banner ads (via setting canDisplayBannerAds). The idea here is to break out of this "no-more-ad-banners" condition by "resetting" iAd.


For example, in response to UIApplicationWillResignActiveNotification, I could disable banner ads, and in UIApplicationWillEnterForegroundNotification I could re-enable banner ads.


(After settings canDisplayBannerAds to YES in response to UIApplicationWillEnterForegroundNotification, I would call setNeedsLayout so that viewWillLayoutSubviews gets called, in which I check whether displayingBannerAd is YES or NO, to decide whether to show my own little view in this Ad area.)


Thoughts?


-Allan

Apple folks: Today, I've tried numerous times to get this problematic Google ad to appear in my app (via force quit and re-launch of my app). I have not seen this ad all day. Is it possible that this ad was removed from rotation? -Allan

Well darn, five minutes after sending my last update, I ran into that problematic ad again. Help...any ideas how to workaround the issue I described above? -Allan

Do you have any logging from the device when that ad appears? It's a bit odd that one ad would cause issue when others would not. Could you also provide a screenshot?


Thanks,

Josh

Hi Josh,


Thanks for your reply.


I've posted a movie that shows the workflow: https://www.dropbox.com/s/ypytrx0w9vv4jr0/IMG_1991.MOV?dl=0. (The video is 90 degrees rotated.)


The issue is that after I come back from this movie, I never get any more ad banners. (The "Love DoubleTalk?" banner that shows at the bottom after coming back from the ad is the UIView that I show when no iAd banner is available...that is, when the "displayingBannerAd" property is NO.)


As mentioned, I don't see this issue with my app running on iOS 8.


I don't have any logging on this, and I'm not sure whether it's possible for the Simulator to display one of these landscape ads...is it? I'd love to be able to debug this in the debugger.


It's interesting that this kind of ad enters from left to right (with the device held portrait orientation), and exits from top to bottom.


(Note also: the user who wrote up the following forum issue has problems of a slightly different nature, but likewise with a portait-only app with one of these landscape ads: https://forums.developer.apple.com/message/84475#84475).


I'd be glad to send my project to you, if that would help.


Thank you.

-Allan

Would it help if I were to add the following? (Currently, I only enforce portrait-only via the "Portrait" checkbox in my app's "Targets>Deployment Info" section in Xcode.)


- (BOOL) shouldAutorotate {

return NO;

}


- (UIInterfaceOrientationMask) supportedInterfaceOrientations {

return UIInterfaceOrientationMaskPortrait;

}

I having similar issue where the google ads are the interupting audio of my app, its so weird everytime a google ad comes on it interrupts my apps audio. Is there a way to stop getting iADs from Google?


Matt

Dear Apple: Any suggestions on this?

-Allan

iAd delivery stops after viewing Google ad
 
 
Q