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

Unity rewarded ads not working. I do not get a reward after watching add?

$
0
0
Hi, I made an iOS game, but I can not make the ad rewards work properly The ad is shown, but after it is played, player gets no reward. Here is the code when I call the add: //works fine public void GetCoinsAdd() { if (gameID == "4641622") { Advertisement.Show("Rewarded_Android"); } else { Advertisement.Show("Rewarded_iOS"); } } //here is the code when I try to get reward from the add. It does not even Debug.Log("Completed"); public void OnUnityAdsShowComplete(string placementId, UnityAdsShowCompletionState showCompletionState) { Debug.Log("Completed!"); if(showCompletionState == UnityAdsShowCompletionState.COMPLETED && placementId.Equals(gameID)) { if(uIManager.DieManager.isActiveAndEnabled) uIManager.WatchAd(); else uIManager.AddCoins(10); } } what can I do to make this method, OnUnityAdsShowComplete work?

Viewing all articles
Browse latest Browse all 1416

Trending Articles



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