Admob Unity plugin for iOS is not allowing position on bottom

1,586 views
Skip to first unread message

Steve Haines

unread,
Jul 15, 2013, 10:44:49 AM7/15/13
to google-adm...@googlegroups.com
Using the plugin that was released a week ago. Here. I am using the Android plugin as well as the iOS plugin for my current project. I want my ads to display on the bottom of the screen, so I'm using 'false' for the positionAtTop bool when creating my banner view. For iOS it seems like it's ignoring the flag and displays the ad on top of the screen regardless. Using the same method in the Android plugin is working correctly.

Has anyone run into this issue?

Rajkumar Parameswaran

unread,
Jul 19, 2013, 5:09:58 PM7/19/13
to google-adm...@googlegroups.com
Ahh sounds like it might be a bug on our behalf. We'll try to take a look and fix it soon enough. In the meantime though, the code should be open sourced so you can take a look as well and see if it's just a tiny fix somewhere. Will ping this thread once it's fixed.


On Mon, Jul 15, 2013 at 7:44 AM, Steve Haines <skas...@gmail.com> wrote:
Using the plugin that was released a week ago. Here. I am using the Android plugin as well as the iOS plugin for my current project. I want my ads to display on the bottom of the screen, so I'm using 'false' for the positionAtTop bool when creating my banner view. For iOS it seems like it's ignoring the flag and displays the ad on top of the screen regardless. Using the same method in the Android plugin is working correctly.

Has anyone run into this issue?

--
 
---
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.
 
 

Zayed Uddin Chy

unread,
Nov 24, 2013, 9:36:03 AM11/24/13
to google-adm...@googlegroups.com
Has the issue been resolved? Or is there any workaround?
Thanks
Zayed
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

Sun Fremont

unread,
Nov 24, 2013, 10:22:36 AM11/24/13
to google-adm...@googlegroups.com

The plugin for Unity iOS is not complete.
It have some issue .
about Top and Bottom position and multiview issue .
If you show ads then hide it and show it again , it will create a new view and let old ads view there every time.
It will cause memory leak .
 I almost modify most part of AdmobPlugin.m file



Steve Haines於 2013年7月15日星期一UTC+8下午10時44分49秒寫道:

Foong Ching Kong

unread,
Jan 12, 2014, 6:04:08 PM1/12/14
to google-adm...@googlegroups.com, raj...@google.com
Hi guys,

I'm quite late to the party. Just started to make use of the Unity3d IOS plugin from admob team.
It's an excellent choice for Unity developer for the ease of implementing admob but I also find that the positionAtTop = false isn't working for me.
Is there going to be a new update any time soon? As far as I know it has already been a few months since the release of this plugin.

Thanks.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

Jason Morano

unread,
Feb 13, 2014, 9:00:49 PM2/13/14
to google-adm...@googlegroups.com, raj...@google.com
I know this is late but this solved my problem

open 

AdMobPlugin.mm and find "createGADBannerViewWithPubId"

replace it with this

- (void)createGADBannerViewWithPubId:(NSString *)pubId bannerType:(GADAdSize)adSize

{


  self.bannerView = [[[GADBannerView alloc] initWithAdSize:adSize] autorelease];

    

  if (!positionAdAtTop_)

  {

      [self.bannerView setFrame:CGRectMake(self.bannerView.bounds.origin.x,

                                           UnityGetGLViewController().view.frame.size.height - self.bannerView.bounds.size.height,

                                           self.bannerView.bounds.size.width,

                                           self.bannerView.bounds.size.height)];

  }

    

  self.bannerView.adUnitID = pubId;

  self.bannerView.delegate = self;

  self.bannerView.rootViewController = UnityGetGLViewController();

}

Eric

unread,
Mar 15, 2014, 12:19:45 PM3/15/14
to google-adm...@googlegroups.com, raj...@google.com
Thanks for this solution!
I had many problems while implementing admob in iOS. Admob in Android was much easier!
There is a little bug in your code if you use admob in landscape mode.
This code worked for me:

    if (!positionAdAtTop_)

        

    {

        

        [self.bannerView setFrame:CGRectMake(self.bannerView.bounds.origin.x,

                                             

                                             UnityGetGLViewController().view.frame.size.width - self.bannerView.bounds.size.height,

                                             

                                             self.bannerView.bounds.size.width,

                                             

                                             self.bannerView.bounds.size.height)];

        

    }



Feel free to test my app, if you want to: https://play.google.com/store/apps/details?id=de.EricWenk

Reply all
Reply to author
Forward
0 new messages