AdMob (6.12.0) - Prevent Scrolling & In-app Browser Banner (iOS)

254 views
Skip to first unread message

Gary O'Neill

unread,
Oct 6, 2014, 9:31:41 PM10/6/14
to google-adm...@googlegroups.com
- (void)preventGADBannerViewBounceScrolling:(GADBannerView*)bannerView {
    for (UIWebView *webView in bannerView.subviews) {
        if ([webView isKindOfClass:[UIWebView class]]) {
            webView.scrollView.scrollEnabled = NO;
            webView.scrollView.bounces = NO;
        }
    }
}

I have been using the above code to stop the AdMob banner from scrolling.

I just updated the SDK to the latest (6.12.0) and having the above code and calling it with the following...

[self.view addSubview:self.adMobBannerView]; 
[self preventGADBannerViewBounceScrolling:(GADBannerView *)_adMobBannerView];

Does nothing on the latest SDK, I was wondering if anyone has had this issue and resolved it?


Also, is it possible to make the banner open via In-app Browser instead of opening up Safari?

Eric Leichtenschlag

unread,
Oct 8, 2014, 7:54:04 PM10/8/14
to google-adm...@googlegroups.com
I'm not sure what's changed in regards to why the scrolling code wouldn't work anymore.

For opening up in browser instead of in Safari, Safari was made the default in 6.10.0. Only the creative can override it, but specifying an expand call instead of open. This is only useful for DFP publishers who may be trafficking their own creatives. There is an example creative that does this in this post.

Thanks,
Eric

Aman Prajapati

unread,
Feb 17, 2016, 3:00:52 AM2/17/16
to Google Mobile Ads SDK Developers
Not working with latest SDK please Help me 

Eric Leichtenschlag (Mobile Ads SDK Team)

unread,
Feb 18, 2016, 9:38:16 PM2/18/16
to Google Mobile Ads SDK Developers
As of 6.12.2 (which was released back in November 2014), the SDK turned off bouncing in the WebView so this hack is no longer required at all.

Could you attach a sample of your project with the latest SDK that's not working.
Reply all
Reply to author
Forward
0 new messages