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

how often is the unity ad ready?its a rewarded video ad which gives 1000 cash to the player.

$
0
0
using UnityEngine.Advertisements; public class admanager : MonoBehaviour { private void Start() { if(!Advertisement.isInitialized) { Advertisement.Initialize("3009385"); } } public void showVideoAd() { if (Advertisement.IsReady("rewardedVideo")) { Advertisement.Show("rewardedVideo"); PlayerPrefs.SetInt("Currency", PlayerPrefs.GetInt("Currency", 0)+1000); } } }

Viewing all articles
Browse latest Browse all 1416

Trending Articles



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