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 ();
}
}
↧