I have a admob banner in my app and I've implemented it with the documentation AdMob provided, the only thing wrong with it is that it does not show at the bottom of the screen but in the top instead. Now I've been looking for a long time But I can't find how to change it and I can't find anyone one the net solving this problem.
Someone knows how to fix this?
Thanks
EDIT
// Create a view of the standard size at the bottom of the screen.
// Available AdSize constants are explained in GADAdSize.h.
bannerView_ = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner];
// Specify the ad's "unit identifier." This is your AdMob Publisher ID.
bannerView_.adUnitID = @"MYID";
// Let the runtime know which UIViewController to restore after taking
// the user wherever the ad goes and add it to the view hierarchy.
bannerView_.rootViewController = self;
[self.view addSubview:bannerView_];
// Initiate a generic request to load it with an ad.
[bannerView_ loadRequest:[GADRequest request]];
been looking for numbers on all the admob scripts but Can't find any to edit..
Ads won't show if you haven't integrated the GoogleGoogleGoogle Search (also known simply as Google) is a search engine provided by Google. Handling more than 3.5 billion searches per day, it has a 92% share of the global search engine market. It is also the most-visited website in the world.https://en.wikipedia.org › wiki › Google_SearchGoogle Search - Wikipedia Mobile Ads SDK correctly. Is your ad implementation code working properly? Test your implementation code to check that ads can show. You can also use ad inspector to test your app's ad serving.
Banner ads are placed in high-traffic locations on web pages, creating brand awareness and generating click-throughs, purchases, and leads. These high-visibility locations include the front, bottom, or the side of a webpage; places where the eyes of browsers usually wander.
Ad serving When apps are newly registered with AdMob, it typically takes up to an hour and a few ad requests to allow inventory to build. Because of this, you may not see live impressions immediately. Note: In some cases, it may take longer than an hour. Please wait 24 hours before seeking additional help.
The host is paid for the banner advertisement through one of three methods: cost per impression (payment for every website visitor who sees the ad), cost per click (payment for every website visitor who clicks on the ad and visits the advertiser's website) or cost per action (payment for every website visitor who ...
Have you tried changing the frame of the view (GADBannerView I think?) to position it at the bottom instead of the top?
Here's an example (you should replace the placeholders with the correct attributes:
bannerView.frame = CGRectMake(0.0, 460 - bannerheight
, bannerwidth
, bannerheight
);
edit:
All you need to do is replace this:
bannerView_ = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner];
With all of this:
// Initialize the banner at the bottom of the screen.
CGPoint origin = CGPointMake(0.0,
self.view.frame.size.height -
CGSizeFromGADAdSize(kGADAdSizeBanner).height);
// Use predefined GADAdSize constants to define the GADBannerView.
bannerView_ = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner
origin:origin];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With