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

UnityAds problem on Android device

$
0
0
Hello, Tudor here! I'm creating a game called Cube Quest. I have this code putted on the camera: using System; using UnityEngine; using UnityEngine.Advertisements; public class UnityAdsStart : MonoBehaviour { void Awake() { if (Advertisement.isSupported) { Advertisement.allowPrecache = true; Advertisement.Initialize ("22972"); } else { Debug.Log("Platform not supported"); } } void Start() { if(Advertisement.isReady()){ Advertisement.Show(); PlayerPrefs.SetInt("CubePointsLvl",PlayerPrefs.GetInt("CubePointsLvl") + 50); } } } In the editor, it is working, but on my phone (Android) it is not. So what is the problem?

Viewing all articles
Browse latest Browse all 1416

Trending Articles



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