Questions tagged [gadbannerview]

20 questions
9
votes
0 answers

How to create a shared Admob banner for multiple views?

I am buildung my very first application with Admob banners in Xcode. My apps uses multiple UIViews connect via NavigationController and currently I am requesting a new ad for every UIView. That is what I already got for every…
Benjamin1956
  • 1,883
  • 2
  • 12
  • 12
4
votes
0 answers

Admob Banner ad, how to implement across multiple view controllers

I'm near completion with an app and I'm starting to add ad's to it. For adMob I have the following code in my viewdidLoad method: bannerAd.adUnitID = "...." bannerAd.rootViewController = self bannerAd.load(GADRequest()) This is…
Discoveringmypath
  • 1,049
  • 9
  • 23
4
votes
3 answers

GADBannerView delegate methods not called if the view is not in the view hierarchy

I'm working with the Google Mobile Ads SDK on iOS and trying to display some ads. My code: GADBannerView* bannerView = [[GADBannerView alloc] initWithAdSize:GADAdSizeFromCGSize(CGSizeMake(300, 250))]; bannerView.adUnitID =…
lawicko
  • 7,246
  • 3
  • 37
  • 49
3
votes
1 answer

How to get a GADErrorCode from a GADRequestError?

I have implemented an AdMob banner view ad, and also the GADBannerViewDelegate protocol as defined here: https://developers.google.com/admob/ios/banner So I can use this callback: /// Tells the delegate an ad request failed. func adView(_…
Jon Cox
  • 10,622
  • 22
  • 78
  • 123
3
votes
0 answers

Swift: Layout issues for GADBannerView with different size classes

This question may be a duplicate but I cannot seem to find an answer for it. I have a 320 x 50 GADBannerView centered at the bottom of the view controller. When loaded the bannerView changes size from the specified width: 320 & height: 50 which I…
Ryan.H
  • 361
  • 4
  • 19
2
votes
1 answer

AdMob video-ad in GADBannerView is keep using CPU after a tab-change in UITabBarController

My setup: There's a UITabBarController. In the first tab - there's a UINavigationController with a UITableViewController as a root viewcontroller. In the table of UITableViewController, one of the cells contains a GADBannerView In the cell with the…
Konstantin Loginov
  • 15,802
  • 5
  • 58
  • 95
2
votes
2 answers

How to add an AdMob GADBannerView to every view

I am implementing an AdMob banner in my app for a single UIViewController, and it is working. But I have so many views and I want to show a banner on every screen. How would I implement a banner that would appear on every screen? I am trying this in…
Museer Ahamad Ansari
  • 5,414
  • 3
  • 39
  • 45
1
vote
1 answer

SDL2 based game and GADBannerView

Now I'm working at SDL2 based game for iOS and I have a question. How to implement Google advertising banner in my case?
S.Lapin
  • 126
  • 2
  • 4
1
vote
1 answer

AdMob GADBannerView delay when presenting new VC

I am using AppDelegate to configure a banner view, and its delegates. Then displaying the banner on two VC's: ViewController, and SecondViewController. The banners show up properly, but with two visual mishaps. On app open, there's about a 2-3…
Joe
  • 3,772
  • 3
  • 33
  • 64
1
vote
1 answer

How to use GADBannerViewDelegate to perform action on adViewDidReceiveAd

I have a banner view and want to have a custom close button. My problem is that the button is displayed before the ad is loaded and displayed. class RootVC: UIViewController, GADBannerViewDelegate { var googleAdBanner: GADBannerView! var…
David Seek
  • 16,783
  • 19
  • 105
  • 136
1
vote
1 answer

How to add an adbannerview in UITableViewController in Swift?

I have a project with a UITableViewController in the storyboard. I want to add an ADBannerView to the bottom of it, does anybody have any idea how to do it? Appreciated.
5elephant
  • 13
  • 3
0
votes
1 answer

Banner Google AdMob is Not Working in Swift

I am using Google AdMob banner in my app. I created a dummy project and implemented the banner functions there and it is working fine there but when I used it in my actual application, it is giving me error. The error…
Taimoor Arif
  • 750
  • 3
  • 19
0
votes
1 answer

set google ad bannerview to tabbr controller but when i push to detail view than still ads showing

i am adding GoogleMobileAds in Swift project and i have done all the steps successfully which is provided in doc and ads are showing in my app just issue is that when i push to other ViewController than ads banner view still show on top of…
posah
  • 1
  • 2
0
votes
2 answers

AdMob banner appears under home indicator in the first load and from time to time

When ViewControllers loaded in my app for the first time, AdMob banners do not appear in their dedicated superviews, but instead banners appear under the home indicator, as shown in the screenshot: I have noticed that this does not happen only in…
Luke
  • 965
  • 8
  • 21
0
votes
0 answers

Multiple GADBannerView in UiCollectionView is not scrolling smoothly in Objective C

I have a collection view in my project with lots of data coming from a web service, with GADBAnnerView(AdMob) on every 4th position. Ads are showing but it doesn't scroll smoothly. - (void)preloadNextGoogleBannerAd { if (!adMobBannersToLoad.count)…
Akhil
  • 93
  • 7
1
2