Show ad after certain amount of interactions - ios

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.

Related

Does AdMob know if an ad is not visible?

I am implementing AdMob into my app. My banner is inside a UIView that is set to alpha 0.0. When the user wants to search, it fades in.
Does Google Ad Services know whether the ad is hidden and would it count as an impression? I don’t want to break any rules but I can’t find any info about this.
I have not had any problems so far, and it seems that there is code implemented to detect this. So an ad on a hidden view should not cause any problems with the AdMob account as it won't count impressions while hidden.

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?

How long does an iAd banner have to be on the screen to successfully make an impression

I'm going to be using iAds in my app and I hoped to put it inside a scroll view so the user sees one only occasionally without having a clunky banner. However, I recently read that an ad has to be on the screen for a certain amount of time to make an impression. Does anyone know how long it has to be on the screen?
Thanks!
If it a small banner like 320x50 you can show it somewhere all the times (usually bottom or top).
If it is a full-screen banner, I recommend showing it not more often than 30 seconds.
Also, if it is a game, maker sure you only display it in specific states, otherwise the users will get annoyed and write bad reviews.

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