Re: iAd Mediation on iPhone Simulator w/4.3

263 views
Skip to first unread message

Rajkumar Parameswaran

unread,
Jul 13, 2012, 2:08:08 PM7/13/12
to google-adm...@googlegroups.com
@Jonathan,
I tested the example project you sent me on a 4.3 device and I didn't get any issues. I did run it in the simulator and saw the issue you were talking about, but I don't know if its worth deploying your fix if its only a simulator problem. I tested it on a 4.3 iPhone. I know you said you saw it on an actual device, what device and os version was it?

@AOS
I'm having a hard time finding a 4.2 device so haven't been able to see your issues. Are you running the same code that Jonathan posted, or is your code different? If your code is different, can you post a snippet of your ad code? 

On Thu, Jul 12, 2012 at 7:26 PM, Jonathon Walz <argo...@gmail.com> wrote:
I'm not seeing your background issue, but I'm getting issues similar to your other ones. When I tested on a 4.2 device I didn't have any placement issues with the iAd but I only did a quick test (it's not my device...) - this sounds similar to the issue I'm having with 4.3. As for not having more that one banner display, more are getting loaded but they don't always get displayed correctly for some reason. This is my current work around:

if ([self.controller.admobView.mediatedAdView isKindOfClass:[ADBannerView class]]) {
   if (![self.controller.admobView.mediatedAdView isDescendantOfView:self.controller.admobView]) {
      [self.controller.admobView addSubview:self.controller.admobView.mediatedAdView];
   }
   if (self.controller.admobView.mediatedAdView.frame.size.height == 0) {
      CGRect iadFrame;
      iadFrame.origin.x = iadFrame.origin.y = 0;
      iadFrame.size = [ADBannerView sizeFromBannerContentSizeIdentifier:((ADBannerView*)self.controller.admobView.mediatedAdView).currentContentSizeIdentifier];
      self.controller.admobView.mediatedAdView.frame = iadFrame;
   }
}

I haven't run into any issues with this yet, but time will tell if it causes any other issues...  (Note that I'm comparing the height to zero and not checking for a zero rect because that comparison failed for some reason in my tests...)

On Sunday, July 8, 2012 11:30:18 AM UTC-5, AOS wrote:
I'm seeing the same issue with my implementation. In addition I noticed some more issues: 

- On a 4.2 device an iAd banner in landscape is partially obscured, not just receiving that well known message, the iAd banner really is misplaced inside the mediation frame. AdMob ads in landscape are fine using the same project.

- Also on 4.2 device and in 4.3 simulator, if iAd is set to 100%, an iAd is only displayed once after app has been launched. After the first banner has been hidden, no new iAd is displayed anymore. 

- If an iAd is displayed and the app enters background (e.g. for some minutes), on return an empty banner is displayed. Before going to background, iAd fires a message "Jul  3 22:17:34 unknown AdSheet[3420] <Warning>: AdSheet running for 240.000 seconds with 1 clients and 1 assertions [banner:1]:
com.myapp (State: Background Task Suspended) (Background: 1, will close 2012-07-03 20:17:46 +0000) has 1 banners:", but probably this is not caught by AdMob Mediation. 

Can you verify, that some of these issues also occur with your project?

Thanks!


On Sunday, June 24, 2012 12:54:53 AM UTC+2, Jonathon Walz wrote:
I'm currently switching my application from AdWhirl to the mediation in admob. I have it working correctly everywhere except on the 4.3 simulator with the iPhone. It works fine with the 4.3 iPad and >=5 iPhone/iPad. (My 4.3 device met an unfortunate end so I can't test on that right now...)

On the iPhone AdMob ads will display fine, but when displaying iAds the device needs to be rotated before the ad will display. I don't have any idea what I'm doing wrong or if it's a bug in the framework.

I've attached a sample project that shows the issue.

Any ideas what's causing this?

Thanks for any help! 

Raj Parameswaran

unread,
Jul 13, 2012, 4:57:40 PM7/13/12
to Google AdMob Ads Developers
Hey AOS,

What happens if you just set your mediatedAdView's origin to be that
of your GADBanenrView?

Jonathon Walz

unread,
Jul 18, 2012, 6:33:04 PM7/18/12
to google-adm...@googlegroups.com
Well, this is weird. I don't have access to the iPhone 4 that was running 4.3.5 that I originally tested on but I have picked up an iPhone 3GS that's running 4.3.5 and it does NOT see the issue. But the iPhone 4 DID, but I wasn't able to test the stripped down version so it's possible that something else was causing the issue that I've since fixed. If I get a chance to test the simple version on the iPhone 4 I will, and see what happens...

So, I guess this is resolved for me for now. Though I am a little paranoid that ads might not show on some devices...

Rajkumar Parameswaran

unread,
Jul 18, 2012, 7:36:25 PM7/18/12
to google-adm...@googlegroups.com
@Jonathan
That's good to hear. For the simulator issue, I've filed a bug with our engineers. If you'd like, I could ping this thread again if we find out more information about why this is happening. 

@AOS
The issue with the empty banner you were seeing, was this only on a 4.2 device or was it in the simulator as well? How long did you put the app into the background for?

For the issue where you said the first banner is hidden and the second banner is not shown anymore, are you manually hiding the banner or are you saying that a transition happens and no new banner comes in? Are you sure this isn't another manifestation of Jonathan's issue where an ad may be coming in but just not be being shown correctly?

I'm trying to determine basically if these are all stemming from the same issue possibly. Thanks.

--
 
 
 

Reply all
Reply to author
Forward
0 new messages