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

Unity ads are working in editor but not on android device

$
0
0
The ads are not appearing when called but in editor it works here is my code if anyone could help it would be much appreciated using UnityEngine; using System.Collections; using UnityEngine.Advertisements; public class SimpleAds : MonoBehaviour { void Start () { Advertisement.Initialize ("gameid"); StartCoroutine (ShowAdWhenReady()); } IEnumerator ShowAdWhenReady() { while (!Advertisement.isReady()) yield return null; Advertisement.Show (); } }

Viewing all articles
Browse latest Browse all 1416

Trending Articles