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

Unity Ads Banner not working.

$
0
0
Its just not showing, i also created a new GameObject and added this script. public string gameid = "3170875"; public string placementId = "bannerPlacement"; public bool testMode = true; void Start () { if(Application.platform==RuntimePlatform.IPhonePlayer) { gameid = "3170875"; } else if (Application.platform==RuntimePlatform.Android) { gameid = "3170875"; } Advertisement.Initialize (gameid, testMode); StartCoroutine (ShowBannerWhenReady ()); } IEnumerator ShowBannerWhenReady () { while (!Advertisement.IsReady (placementId)) { yield return new WaitForSeconds (0.5f); } Advertisement.Banner.Show (placementId); } }

Viewing all articles
Browse latest Browse all 1416

Trending Articles



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