Issue with Admob Position being out of the screen

145 views
Skip to first unread message

Ahmad Mujtaba

unread,
Jun 10, 2014, 1:01:55 PM6/10/14
to google-adm...@googlegroups.com
Hi,

I have integrated Admob plugin version 2.1 in to unity for iOS.
Ads are being displayed. But I have an issue that some ads are cut and shown out of the screen on iphone 4. Same ads are ok on ipad2. (i dont have iphone 5 so tha I can test on it).

As shown in the screen shot, the ad is out of the screen and half cut. But some ads do fit properly inside the screen on same device but some don't.

Please see the issue. If there are any clarification needed I am willing to share.

Thanks

Ahmad Mujtaba
admob.png

Uchiha Sasuke

unread,
Jun 10, 2014, 2:52:08 PM6/10/14
to google-adm...@googlegroups.com
I'm not an expert here (just started getting into admob two days ago) but It would help if you posted the part of your script that creates the banners. :)

Eric Leichtenschlag

unread,
Jun 11, 2014, 7:47:16 PM6/11/14
to google-adm...@googlegroups.com
Uchiha's suggestion would help. In particular, what banner format are you using?

Thanks,
Eric

Ahmad Mujtaba

unread,
Jun 11, 2014, 10:07:50 PM6/11/14
to google-adm...@googlegroups.com
bannerView = new BannerView(adUnitId, AdSize.SmartBanner, AdPosition.Bottom);
        // Register for ad events.
        bannerView.AdLoaded += HandleAdLoaded;
        bannerView.AdFailedToLoad += HandleAdFailedToLoad;
        bannerView.AdOpened += HandleAdOpened;
        bannerView.AdClosing += HandleAdClosing;
        bannerView.AdClosed += HandleAdClosed;
        bannerView.AdLeftApplication += HandleAdLeftApplication;
        // Load a banner ad.
        bannerView.LoadAd(createAdRequest());
        bannerView.Show();


So I am using SmartBanner and at Bottom.

Same implementation gives correct ads on ipad. (some kind of ads shown, correctly fits on the device whose screen shot was attached)

Regards
Ahmad


--

---
You received this message because you are subscribed to a topic in the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/j69_W1T2SrY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eric Leichtenschlag

unread,
Jun 12, 2014, 7:20:05 PM6/12/14
to google-adm...@googlegroups.com
This looks like a bug in the plugin. The smart banner is being positioned before its size is actually determined. I'll work on a fix for this.

Thanks,
Eric
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

Ahmad Mujtaba

unread,
Jun 14, 2014, 9:15:30 AM6/14/14
to google-adm...@googlegroups.com
Is this bug fixed?

Eric Leichtenschlag

unread,
Jun 15, 2014, 2:25:54 PM6/15/14
to google-adm...@googlegroups.com
I'm still waiting on a code review, but can you try replacing these two files in Assets/Plugins/iOS and rebuilding and see if that solves the issue?

Thanks,
Eric
GADUBanner.m
GADUInterface.m
Reply all
Reply to author
Forward
0 new messages