Screen goes dark when Facebook interstitial ad is dismissed - ios

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.

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.

Ad displayed by Google Mobile Ads SDK dismisses when app goes to background

Here is the code which presents reward based video on any view controller:
GADRewardBasedVideoAd.sharedInstance().present(fromRootViewController: vc)
Its successfully shows the video, but when the app enters background and comes to foreground, the ad dismisses itself and rewardBasedVideoAdDidClose fires.
Is it normal behaviour?
Yes, this is intended behavior.
It's there to prevent getting rewards for a video the user is not even watching.
For more information, check out the documentation of GADRewardBasedVideoAd.

How to load ADInterstitialAd only when required in iOS?

I would like to show interstitial ads in my iOS application for some specified time interval.
Also, I do not want to disturb the User Interaction. I would like to show this Interstitial Ad when user tries to navigate from the scree/some other action.
But, I don't see any method/call in iOS that would load the InterstitialAd when required.
Also, [interstitialAdObj presentFromViewController] is also deprecated in iOS 7.
My question is, what is the another way to show/present the interstitial ads only when required?
This one works for me in iOS 7. Found in the ADInterstitialAdDelegate
-(BOOL)presentInView:(UIView *)containerView;
Also
-(BOOL)requestInterstitialAdPresentation NS_AVAILABLE_IOS(7_0);
I hope that helps you.

Flurry Ads iOS Banners dismiss

Does anybody have experience with Flurry Ads? I am able to get their test ads to display. However, when I display a banner ad, there is no 'x' for the user to dismiss the ad itself. Does anyone know if this is intentional? Do I have to write my own code to give the user a specific banner dismissal action? Or am I doing something wrong?
I use Flurry Ads and no, there is no built-in close button on their banners. If you want the user to be able to close banners, you will need to create your own UI and implement the removeAdFromSpace method on your ad space.

iOS AdMob full screen banner does not hide

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

Resources