I have integrated Chartboost to my project and I am trying to display an ad when a user loses. I have created a CreateAd method in a script and I am calling it whenever the user loses and gets the game over screen.
public void CreateAd () {
CBBinding.showInterstitial(null);
}
But I want to count how many times a user has played in a single sitting and display an ad every five plays or so. Not every time. Also could someone please show me how to check if Chartboost is available and if not use a different ad service like Admob or inMobi?