I'm using an iPhone 5/iOS 6 in Debug mode on with AdMob SDK 6.2.0.While displaying an iAd, GADBannerView will randomly go blank. It is as if a failure occurred but the didFailToReceiveAdWithError: callback is not fired. I put print statements in both adViewDidReceiveAd: and didFailToReceiveAdWithError: but neither function is called when the ad goes suddenly blank. When a new ad come in and fires the adViewDidReceiveAd:, the ad shows properly. If I turn off my WiFi, the didFailToReceiveAdWithError: is correctly called, and the view is hidden.The sudden blankness only happens following a correctly displayed iAd. I've even tried turning off Admob network ads, so only iAds show, and the problem still occurs. However, if I turn iAds off, and leave Admob on, the problem does not occur (again, the problem only seems to happen with a currently showing iAd).--
Typically I just run the default, which I believe is 30 seconds. The refresh rate doesn't seem to matter, but for testing purpose, I put it at 12 seconds. The issue is intermittent, but it happens often enough that we had to go with strictly Apple ADBannerViews for now.
--
Having the same issue, ads display on initial request but subsequent refresh by admob displays blank. Changed to utilize code refresh but when the ad displays it disappears within 5 seconds?? Code refreshes every 15 seconds.
--
I am running into exactly the same issue. I am mediating between adMob and iAd ads and roughly 1 in 20-30 ads returned are blank, even though the adViewDidReceiveAd: method is the one that is called. I am using the most recent SDK on iOS 6.1 (iPhone 5), including the October 4, 2012 iAdAdapter. I tried at refresh rates of 12 and 35 seconds. I also verified that the mediatedAdView property of GADBannerView passed to adViewDidReceiveAd: is not nil when the ad is blank (if it was, I could have used that as a workaround to hide the banner until the next request is fulfilled).
--
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Raj,Sorry for the delay responding. I haven't thought to check this thread for a while.Few days ago I upgraded to version 6.3 of SDK and haven't noticed any problems until tonight (even though no code in the app changed since then).To answer your questions:1. Yes, adView:DidReceiveAd: gets called even when a "blank" iAd is loaded (adView:didFailToReceiveAdWithError: is not called in that case)2. This was happening without putting the app in the background.Since my original e-mail I added a category on the UIView to show me view hierarchy of the ad view when adView:DidReceiveAd: gets called. As you can see below, there appears to be no obvious differences between the two instances:iAd showing:2013-02-28 20:39:15.248 Till[12568:907] Received banner ----------------------------------------------------------------------2013-02-28 20:39:15.249 Till[12568:907] <GADBannerView: 0x1f86d1d0; frame = (0 498; 320 50); autoresize = LM+RM+TM; layer = <CALayer: 0x1f86d2b0>>2013-02-28 20:39:15.250 Till[12568:907] <ADBannerView: 0x1ed69530; frame = (0 0; 320 50); clipsToBounds = YES; autoresize = W; gestureRecognizers = <NSArray: 0x231603f0>; layer = <CALayer: 0x2315c4c0>> isBannerLoaded: 12013-02-28 20:39:15.251 Till[12568:907] <ADRemoteView: 0x23159da0; frame = (0 0; 320 50); autoresize = W+H; userInteractionEnabled = NO; layer = <CALayerHost: 0x231653c0>>2013-02-28 20:39:15.252 Till[12568:907] <UIView: 0x23165ac0; frame = (0 0; 320 50); alpha = 0; autoresize = W+H; userInteractionEnabled = NO; layer = <CALayer: 0x23163820>>iAd not showing (blank rectangle):2013-02-28 20:38:50.258 Till[12568:907] Received banner ----------------------------------------------------------------------2013-02-28 20:38:50.259 Till[12568:907] <GADBannerView: 0x1f86d1d0; frame = (0 498; 320 50); autoresize = LM+RM+TM; layer = <CALayer: 0x1f86d2b0>>2013-02-28 20:38:50.260 Till[12568:907] <ADBannerView: 0x1f856c60; frame = (0 0; 320 50); clipsToBounds = YES; autoresize = W; gestureRecognizers = <NSArray: 0x1f8d6b00>; layer = <CALayer: 0x1f8060e0>> isBannerLoaded: 12013-02-28 20:38:50.261 Till[12568:907] <ADRemoteView: 0x1f8d10f0; frame = (0 0; 320 50); autoresize = W+H; userInteractionEnabled = NO; layer = <CALayerHost: 0x1f8d2f10>>2013-02-28 20:38:50.262 Till[12568:907] <UIView: 0x1f80ed10; frame = (0 0; 320 50); alpha = 0; autoresize = W+H; userInteractionEnabled = NO; layer = <CALayer: 0x1f8cf3d0>>I spent some more time than previously testing today, and I noticed three different kinds of unexpected behavior (the first one is the same I noticed in the past):1. iAd was showing black rectangle only (although its views were loaded as shown above)2. iAd was shown for 2-4 seconds then disappeared (for testing purposes I have the refresh set at 12 seconds through the web site) without triggering either success or failure delegates. Although this could be something in my code, it is unlikely - the only place I hide the ad view is in adView:didFailToReceiveAdWithError: and NSLog in there was not executed).3. Two adView:DidReceiveAd: were called 2-4 seconds apart. Both of them with iAd loaded and showing. When the next (3rd in the sequence) adView:DidReceiveAd: was called, it was 12 seconds (+/- 1 second) after the first (and not the most recent) adView:DidReceiveAd:I am wondering if there are circumstances under which the mediation code is trying to refresh iAd twice too quickly (or perhaps twice at the same time), causing what it gets back from Apple "undefined" (sometimes 1 ad, sometimes two of them one following another quickly, perhaps one of them without the actual ad)?I'll see if I can put together a sample app for you, but it will likely be little more than what the SDK instructions provide for basic setup, since that's all that happens in my app (just start showing apps, slide ad view onto the screen if not there in success delegate, slide off in failure delegate).Bart
Hey Bart,Thanks for the clarification, I understand now what you're trying to say. However, I'm still really struggling to reproduce the issue. I've tried a couple different devices now and can't get the black ad to show up. I've attached the sample app I'm using (essentially a simple app) but I was wondering if you could plug your ID into there and see if the black ad issue is happening for you using this as well.Raj
On Thu, Mar 14, 2013 at 7:20 PM, Bart Cichosz <bar...@gmail.com> wrote:
Raj,The answer to your first question is no -- that's not at all what I was saying :-)Note that these are three separate cases of strange behavior I observed on separate occasions during one night of testing - not three steps that happen in sequence.In case #1 adView:DidReceiveAd: gets called every 12 seconds, but sometimes iAd is just a black rectangle (even though view hierarchy seems to be fine when comparing it to view hierarchy when iAd is shown correctly - adView:DidReceiveAd: is what calls my UIView category method to display that hierarchy). adView:didFailToReceiveAdWithError: is not called at all in this case.In case #2, adView:DidReceiveAd: is called every 12 seconds, but the iAd disappears (i.e. the view turns into black rectangle) after few seconds. When it disappears neither adView:DidReceiveAd: nor didFailToReceiveAdWithError: get called. Because of that (a) I cannot see if the view hierarchy changed since the method to show it is not called, (b) the disappearance is not caused by my view modifications, since those modification only happen in didFailToReceiveAdWithError: in my code (which is not called).In case #3, adView:DidReceiveAd: gets called every 12 seconds, but sometimes another adView:DidReceiveAd: gets called 2-4 seconds into this 12 second period (usually displaying all ads correctly).As far as your second paragraph questions go -- adView:didFailToReceiveAdWithError: simply animates the ad view off the screen (I am not hiding it via the hidden property). However, the is not where the issue is, as none of the above three cases result in adView:didFailToReceiveAdWithError: being called.Now, if I am running the app for a few minutes, and go through few dozen requests, eventually an ad is not returned and adView:didFailToReceiveAdWithError: does get called, ad view is animated off the screen properly, requests continue, and once a new ad is received the view correctly animates back onto the screen. Sorry for the confusion.So my simplified NSLog output might look as follows (+x means x seconds later) - for simplicity I am assuming all received ads are iAds (and text after // is my comment and not NSLog output):0: adView:DidReceiveAd: // Ad view animated onto the screen - iAD shown+12: adView:DidReceiveAd: // Ad changes - iAD shown+12: adView:DidReceiveAd: // Ad changes - iAD shown+12: adView:DidReceiveAd: // Ad changes - black rectangle shown - case #1+12: adView:DidReceiveAd: // Ad changes - iAD shown+12: adView:DidReceiveAd: // Ad changes - iAD shown+12: adView:DidReceiveAd: // Ad changes - iAD shown+12: adView:DidReceiveAd: // Ad changes - iAD shown+12: adView:didFailToReceiveAdWithError: // ad view animated off the screen - expected and correct behavior+12: adView:DidReceiveAd: // Ad view animated onto the screen - iAD shown+12: adView:DidReceiveAd: // Ad changes - iAD shown+12: adView:DidReceiveAd: // Ad changes - iAD shown+3: adView:DidReceiveAd: // Ad changes - iAD shown - case #3+9: adView:DidReceiveAd: // Ad changes - iAD shown+12: adView:DidReceiveAd: // Ad changes - iAD shown+12: adView:DidReceiveAd: // Ad changes - iAD shown+2: // Neither delegate called, but the ad changes into a black rectangle - case #2+10: adView:DidReceiveAd: // Ad changes - iAD shown+12: adView:DidReceiveAd: // Ad changes - iAD shownand so on...Note that the refresh timing is not set anywhere in the app - I always set that through the mediation settings on the web site.I hope this makes things clearer. :-)Regards,Bart
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.