iOS AdMob full screen banner does not hide - ios

I am using AdMob ad in my application. Ads are displayed correctly.
When i tap the ad, some of the ads are opening in full screen web page in my application.When i tap the Done button, it did not close the full screen ad and ad page just frozen.
AdMob API id invoke the
- (void)adViewWillDismissScreen:(GADBannerView *)adView;
delegate method
but it never invoked the following delegate method.
- (void)adViewDidDismissScreen:(GADBannerView *)adView;
I had to kill the application in iPad2.
I had to restart the iPhone 4s device (since i could not locate my application in the running application panel to kill).
Not sure what is wrong. I could not find any details in google.
Any help is highly appreciated.
Thanks
Sasikumar JP

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.

Screen goes dark when Facebook interstitial ad is dismissed

I'm implementing interstitial ads from Facebook in my iOS Swift app. The interstitial shows correctly, but when it is dismissed the view controller from which the ad was presented from shows up for a fraction of a second, then the screen goes dark.
I'm following the instructions from here
I've implemented facebook ads in another app successfully, now I'm doing the same thing but the above behavior happens.
The app has multiple view controller's and it doesn't matter from which the ad is presented, it always results in the same behavior.
Does anybody has any idea why this might happen, because currently I'm clueless?
Update your FBAudienceNetwork SDK. This was an issue with an older version.

How to check if there are Chartboost Rewarded Ads available to display?

In my Swift iOS game I have a button that I show after the player loses, this button shows a rewarded ad from Chartboost.
The problem is that sometimes, i get an error on ad retrieval (error code 6) which is "No Ad Available". So i'm running out of ads for my region, i don't know why. Sometimes i'm able to watch 2-3 ads and that's all i can watch per day.
So when im running out of ads, the button still stays there of course, but does nothing. It might be confusing for the users to press the button and not see anything happening.
So i wanted to check if there are ads available, just hide the button.
The method i'm using to check if there is an ad available is:
Chartboost.hasRewardedVideo(CBLocationDefault)
But this somehow, is returning always false, no matter what CBLocation I use.
And I trigger the showAd() like this:
Chartboost.showRewardedVideo(CBLocationDefault)
Any suggestion?
Thanks.
What region are you currently located in? Chartboost might have some trouble filling ad requests if you happen to be located in a country like Pakistan or Thailand. It may be a simple case of not having enough advertisers in your area that meet your publishing criteria.
Also, are you trying to show an ad right away on your application's bootup or is it ingame somewhere?

iOS caches the application screen when clicking the home button for the device

we are developing hybrid application on Worklight.
After the user launches the application on iOS, he will see the login screen, providing his credentials, he is inside our application.
Now, if the user clicked the home button for iOS before "logging out" from the app, the iOS will take a snapshot and store it inside the device cache.
By using IExplorer, I can see this screen cached, which in our situation a high critical issue.
How can I a override this screen with a white screen, in case the user clicked the home button of the iOS device it will be populated immediately, and the device will not snapshot the user main screen.?
Is there any thumbnail I can add to my nativeResource folder for iOS to solve this issue?
thank you.
I encourage you to look at the Worklight Knowledge Center. In most cases, you will find your answer.
To control the snapshot taken by the OS when moving to the background, you need to use the following API methods, depending on your needs:
WL.App.BackgroundHandler.setOnAppEnteringBackground and WL.App.BackgroundHandler.setOnAppEnteringForeground

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