Quantcast
Channel: Questions in topic: "ads"
Viewing all articles
Browse latest Browse all 1416

hi i need your help...

$
0
0
i'm a new to programming and i'm creating this game and when i tested it on IOS it display the interstitial ads but does not stop the game in the background . how can i modify this code to do that ? " this is Ad Manager for Admob " public class AdManager : MonoBehaviour { public static AdManager Instance { set; get; } public string topBannerId; public string VideoId; private void Start() { Instance = this; DontDestroyOnLoad(gameObject); Admob.Instance().initAdmob(topBannerId,VideoId); Admob.Instance().loadInterstitial(); } public void ShowBanner() { Admob.Instance().showBannerRelative(AdSize.Banner, AdPosition.TOP_CENTER, 0); } public void ShowVideo() { if (Admob.Instance().isInterstitialReady()) { Admob.Instance().showInterstitial(); } } }

Viewing all articles
Browse latest Browse all 1416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>