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.
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-sdk+unsub...@googlegroups.com.
AdMobPlugin.mm and find "createGADBannerViewWithPubId"
- (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();
}
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