admob with uiwebview iOS - ios

I have a problem with the admob ad covering my webView content. I´ve understood there´s something that can be done with making webview and bannerview siblings, but I have an In-app purchase from which the user can remove the ads. Does anyone have any idea how to make the bannerview appear above the webView and if the user buys the in-app purchase, I want the webview to cover the entire screen again.

As you mentioned, you can have the bannerView and UIWebView be sibling views. If a user completes the purchase, you can programmatically remove the bannerView from your Window.

Related

How to stop showing AdMob banner ad correctly?

I am building an app which will display AdMob banner ad, and when user successfully purchased an IAP item, the banner ad will never show up again, and the screen area originally occupied by the banner ad will be used by the app real functions.
The question is how to dismiss the bannerView or does not init it on the next launch up? And how to insure AdMob Sdk will never refresh the ad content in the background?
I think we cannot just hide the bannerView with just a statement:
bannerView.isHidden = true
And, as we know, AdMob SDK use IDFA. But Apple will deny an app which use IDFA but not showing Ads.
Google has guides on how to show up ads, but I cannot find information about how to stop showing ads from Google.
How to get this problem out?
The question is how to dismiss the bannerView or does not init it on
the next launch up? And how to insure AdMob Sdk will never refresh the
ad content in the background?
There are multiple ways to do this. One way I can think of is to add multiple targets in your Xcode project.
And the easier way, the more practical way - at least for me, is to prevent the requests for ads through GADRequest().
You can even do this even in AppDelegate, when setting Ids to your SDK.
That's it. You may also set nil to the delegate property of your bannerView.
And like what you've mentioned, just hide the bannerView's container, and everything should be perfect. I've worked on lots of applications with Admob, and I believe there should be no problem doing this approach.

Can you preload admob DFPBannerView on iOS

Can you preload admob DFPRequest on iOS? I know you can for interstitials, but was wondering about DFPBannerView
Create one GADBannerView and one request inapplicationDidFinishLaunching, listen to the GADBannerView's delegate method to know when it's loaded, and then present it on any view you desire. applicationDidFinishLaunching would be the earliest you could make your request. Check this example using an ADBannerView and Swift. The implementation would be the same.
No, you can't do it for banners. Once you call LoadAd() for a banner ad unit, your banner ad starts loading and refreshes after a set interval (what you've set on the dashboard, or the default), if any.
There is no way to preload admob banner ads like interstitial.

Choosing the iAd banner

I am new to iAd. I used iAd for the first time in one of my apps .. and I didn't like the type of ads that was shown in my app. Is there anyway to choose which ads or banners can appear in my app?
or at least which category of ads?
If you're referring to add content (e.g. kid apps or car ads), you don't have a choice in which type of ads are displayed to the user. There does seem to be some tailoring of ads from Apple based on user data from app download analytics but that's entirely opaque to developers adopting iAd.
The APIs which are provided with iAd lets you show either banners either interstitial ads (which is an ad displayed on all the screen).

Can I place iAd ADBannerView middle of the iPad app?

I could place iAd ADBannerView as a subview of a view , which sits at the middle of the screen.
So effectively the ad view will be at the middle of the ipad app.I did not change the size of the ADBannerView.
My questions are
1, will apple reject my app?
2, Can my ADBannerView receive ads from iAd network..
Thanks in advance
You should try it out. After you open your app, you will see a test ad, if you click it it will tell you if it is working ok.
Otherwise, three is no rule that I know of about the placement of the ad, you can place it wherever you like, the middle is fine.

When are these iAd delegate methods called?

Ok I am am using the delegate method
(void)bannerViewActionDidFinish:(ADBannerView *)banner
Being only test ads I cant test when it is called. I know it is called when the ad is closed with the X as i can click that in the test ad and it calls the delegate method. My question is, is it also called when the user interacts with the ad i.e clicks to download the advertised app or only when closed?
Also im trying understand the revenue from iAds.
if an ad is displayed in the bannerView on my app does that generate any revenue?
if an ad banner is clicked to load an ad does that generate any revenue?
if an ad banner is clicked to load an ad into full screen does count towards the CTR?
if an ad is loaded an interacted with does that generate any revenue and does that count towards the CTR?
Thanks
Ok I found the info i needed here is what i got:
Being only test ads I cant test when it is called. I know it is called when the ad is closed with the X as i can click that in the test ad and it calls the delegate method. My question is, is it also called when the user interacts with the ad i.e clicks to download the advertised app or only when closed?
The Delegate is called after the application is covered with an iAd and then returned to the application
Also im trying understand the revenue from iAds.
if an ad is displayed in the bannerView on my app does that generate any revenue?
If you show a developer iAd i.e a link to the AppStore to download an App, then you only get revenue when the iAd is clicked in the banner. If you show an iAd from a branded company i.e BMW you get revenue for having the iAd banner and more for it being clicked
if an ad banner is clicked to load an ad does that generate any revenue?
yes
if an ad banner is clicked to load an ad into full screen does count towards the CTR?
yes
if an ad is loaded an interacted with does that generate any revenue and does that count towards the CTR?
yes
Thanks

Resources