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

UnityAds doesn't work!

$
0
0
Hi guys I'm using this script: `using UnityEngine; using System.Collections; using UnityEngine.Advertisements; public class Ads : MonoBehaviour { void Start() { Advertisement.Initialize("33675", true); StartCoroutine(ShowAdWhenReady()); } IEnumerator ShowAdWhenReady() { while (!Advertisement.Sh()) yield return null; Advertisement.Show(); } }` and the console says: Assets/Scripts/Ads.cs(9,3): error CS0433: The imported type `UnityEngine.Advertisements.Advertisement' is defined multiple times and : Assets/Scripts/Ads.cs(16,25): error CS0117: `UnityEngine.Advertisements.Advertisement' does not contain a definition for `Sh' I've got the asset but i don't know what i should do with it. Pls help!

Viewing all articles
Browse latest Browse all 1416

Trending Articles



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