Question by
Deksover · Mar 11 at 11:27 AM ·
adsadvertising
Unity rewarded ads not working. I do not get a reward after watching add?
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?
Comment
Your answer
Follow this Question
Related Questions
can i use admob ads with unity ads in Unity3d Game? 0 Answers
How to put admob in unity game? 0 Answers
Unity ADS doubts 0 Answers
Advertisements v4.0.0 Error: 'Advertisement' does not contain a definition for 'IsReady' 0 Answers
how to add pubcenter and adduplex ads in unity for windows 10? 0 Answers