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

ads on mobile just keep waiting forever!

$
0
0
Hi, i developed a simple game and i add ads to it, when i test ads on laptop i think its work cause its show this sign ![alt text][1] [1]: /storage/temp/43513-untitled.png but when i test the game on mobile its just show waiting sign and when i click on it nothing work.. here is the code of Ads using System; using UnityEngine; using UnityEngine.Advertisements; public class ADS : MonoBehaviour { void Awake() { if (Advertisement.isSupported) { Advertisement.allowPrecache = false; Advertisement.Initialize("27917"); } else { Debug.Log("Platform not supported"); } } void OnGUI() { if(GUI.Button(new Rect(370, 130, 150, 50), Advertisement.isReady() ? "Show Ad" : "Waiting...")) { Advertisement.Show(null, new ShowOptions { pause = true, resultCallback = result => { Debug.Log(result.ToString()); } }); } } }

Viewing all articles
Browse latest Browse all 1416

Trending Articles



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