How do I put Admob interstitials on a timer for ios? - ios

I am trying to implement Admob interstitials into my Xcode project and I want to set it so an ad pops up every 70 seconds or so while a user is using the app. If anyone could explain how to do this, or respond with a link to a guide it would be much appreciated.

Load the ad when starting the app/activity/scene. Keep a timer of 70 seconds after which show the ad.
The ad will be displayed. If user presses it or cancels it, in both cases you will have to create new adRequest for the ad to be shown after 140 seconds. Maybe you can have a loop. But i am not sure this is the recommended way to use interstitials. I think they should be shown once during one screen. Show it at a stage when the user will definitely read the ad.

Related

iOS AdMob Reward Video - Implement rewarded video ad playing with "Skip after time" feature

My code is in swift 4,
As follows, it shows me Ads like, as shown in the 1st picture.
var rewardBasedVideo: GADRewardBasedVideoAd!
rewardBasedVideo = GADRewardBasedVideoAd.sharedInstance()
rewardBasedVideo.delegate = self
rewardBasedVideo.load(GADRequest(),
withAdUnitID: GOOGLE_AD_UNIT_ID)
But I want to enable close Ad close button after some time. Or I want to show "Skip Ad" button instead of a close button
I have also implemented the same and I do not think that there is a way around in the reward-based video ad. You can find other ad modules and they will provide the Skip Ad thing. But, in the reward-based video, you can not skip.
If you close it then the reward will not be paid. Sometimes, these are small, but sometimes up to a minute. There is no other way as of now.
We can see ads with skip after time feature in Google AdMob. But cannot achieve that programmatically. Maybe it is dependent on the creator of Ad.

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?

Show ad after certain amount of interactions

I own a simple soundboard app, which basically plays a song when a button is pushed.
I wanted to know, if it was possible to show an ad after a certain amount of user interactions.
e.g when 20 sounds have been played, a fullscreen ad would pop-up.
I've integrated RevMob in to my app, if that makes any differences :)
Thanks!
As far as I know, with any ad provider (including RevMob), you have pretty decent control on when an ad should appear.
For RevMob, I see you can call "[[RevMobAds session] showFullscreen];" when you want to show a full screen ad (or RevMobAds.session().showFullscreen(); if you're using Swift -- you didn't specify).
So just add a counter property in your view controller and increment the number of user interactions you want to keep track of and then show the full screen ad when you're ready.

Calling interstitial iAd works only one time

I have spritekit game, Ad is preloaded on each start of game with [UIViewController prepareInterstitialAds]; And after gameover it should display ad with [self.view.window.rootViewController requestInterstitialAdPresentation]; and it's works okay, but only first time. The ad's shows only one time. After failing another game, ad do not show though preload. Any suggestions?
Do you have it set up to where it runs
[self.view.window.rootViewController requestInterstitialAdPresentation];
each time the game ends?
See the answer by gj15987 here...
requestInterstitialAdPresentation Works only one Time
He says there's a two minute block out period. I tried it and found it took 3min 20sec to allow another ad for me. I have fill rate set to 100% in the Developer section of Settings.
From the doc :
"The second major difference between a banner view and an full-screen advertisement is that the full-screen advertisement does not cycle through new content. An full-screen ad object loads a single advertisement; once that content expires, your app must release the ad object. Each time your app needs to show a new advertisement, it must explicitly create a new ad object."
straight from the horse's mouth :
iAd Programming Guide : Full-Screen Advertisements

Setting up full page ads

I am using Admob Mediation service with an Interstitial ad type for a full page ad.
Documentation here: https://developers.google.com/mobile-ads-sdk/docs/admob/advanced#ios
I am trying to replicate the full page ad setup in Words with Friends and other game apps. Where the full screen ad is shown then a delayed close button is shown. Can this be completed with the above setup?
In an ideal world I would like to delay the close button being shown and also randomly place the close button in one of the four corners.
Yes, the setup displayed in the GADInterstitial documentation should create and display an interstitial ad such as you describe. You shouldn't have to do anything special to make the close box show up after a delay -- that's something that the ad will implement if it's what the advertiser wants. Just follow the directions in the docs -- wait for the ad to finish loading, and then call:
[interstitial_ presentFromRootViewController:self];
(Substitute your own variable name if you use something other than interstitial_, of course).
In an ideal world I would like to delay the close button being shown and also randomly place the close button in one of the four corners.
You shouldn't try to control the placement or display of ad controls like the close button. Again, the ad itself will manage that. I'm sure your goal is to increase your app's click-through rate, or more generally to maximize your advertising income. But there's a reason beyond ease of use that ad networks make their SDK's very simple to integrate: they don't want you to mess with the way ads are displayed. At all. Not even a little bit.
You can add a timer that creates and adds a button to your view after x-time

Resources