Getting rewarded ads to work 'Unity ads'

I just don’t understand what I’m doing wrong, I have my ad script and everything seems to be in check but when i click on the buttons (first ad the play ad button disappears but no coins rewards) (second is when you die in game has a button to watch ads for double coins but nothing happens , its a separate script but basically the same just for a different scene so I’m only posting one script ) am i forgetting to add some code or do i need another script to make this one work. i always thought i needed my gameid from unity dashboard but whenever i tried adding it to my code i just recieved errors, and when i looked online appearently everything is automated so im just confused at this point, thank you for any help i really do appreciate it.

(update) I bought an asset from the store, this and an identical script came with it, the only difference in the other script is instead of rewardedadsmenu its rewardedadsplay, the script is obviously a little old since it uses deprecated code, but appearently everything is good with it, i just cant seem to figure out why it doesn’t work) if i need to post anything else to help recieve an answer i will not hesitate. thank you again.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Advertisements;

public class RewardedAdsMenu : MonoBehaviour {
  public SoundManager sm;
	public GameObject PickReward;
  int CoinsBonus;
  int CoinsAds;
  int WatchAds;
  int CoinsAdsZzz;

  public void ShowRewardedAd()
  {
    if (Advertisement.IsReady("rewardedVideo"))
    {
      var options = new ShowOptions { resultCallback = HandleShowResult };
      Advertisement.Show("rewardedVideo", options);
    }
  }

  private void HandleShowResult(ShowResult result)
  {
    switch (result)
    {
      case ShowResult.Finished:
        Debug.Log("The ad was successfully shown.");
        sm = GameObject.Find("PlayZone").GetComponent<SoundManager>();  
        WatchAds = PlayerPrefs.GetInt("WatchAds",0);  
        CoinsAds = PlayerPrefs.GetInt("CoinsAds", 100);
        CoinsBonus = PlayerPrefs.GetInt("ShipCoinBonus", 1);
        CoinsAdsZzz = CoinsAds*CoinsBonus;
        PlayerPrefs.SetInt("CoinsAdsZzz", CoinsAdsZzz);
	      PickReward.SetActive(true);
        WatchAds++;
        PlayerPrefs.SetInt("GetRewardCoins",1);
        PlayerPrefs.SetInt("WatchAds",WatchAds);  
        sm.PlaySound(0);
        break;
      case ShowResult.Skipped:
        Debug.Log("The ad was skipped before reaching the end.");
        break;
      case ShowResult.Failed:
        Debug.LogError("The ad failed to be shown.");
        break;
    }
  }

might as well add the other script :slight_smile:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Advertisements;

public class RewardedAdsPlay : MonoBehaviour {
  public SoundManager sm;
  public int DoubleCoins;
  public Text DoubleCoinsText;
  public GameObject DoubleCoinBtn;
	public GameObject NeDoubleCoinBtn;
	public GameObject DoubleNextBtn;
  int CoinsC;
  int WatchAds;

  public void ShowRewardedAd()
  {
    if (Advertisement.IsReady("rewardedVideo"))
    {
      var options = new ShowOptions { resultCallback = HandleShowResult };
      Advertisement.Show("rewardedVideo", options);
    }
  }

  private void HandleShowResult(ShowResult result)
  {
    switch (result)
    {
      case ShowResult.Finished:
        Debug.Log("The ad was successfully shown.");
        sm = GameObject.Find("PlayZone").GetComponent<SoundManager>();  
	  	  CoinsC = PlayerPrefs.GetInt("Coins",0);    
        WatchAds = PlayerPrefs.GetInt("WatchAds",0);  
        DoubleCoins = PlayerPrefs.GetInt("CoinsForGame", 0);
        CoinsC = PlayerPrefs.GetInt("Coins",0);  
        CoinsC += DoubleCoins;
        DoubleCoins += DoubleCoins;
        DoubleCoinsText.text = DoubleCoins.ToString();
		    WatchAds++;
        PlayerPrefs.SetInt("WatchAds",WatchAds);  
        PlayerPrefs.SetInt("Coins",CoinsC); 
        DoubleCoinBtn.SetActive(false);
		    NeDoubleCoinBtn.SetActive(false);
		    DoubleNextBtn.SetActive(true);
        PlayerPrefs.SetFloat("TimerDouble", 120);
        sm.PlaySound(4);
        break;
      case ShowResult.Skipped:
        Debug.Log("The ad was skipped before reaching the end.");
        break;
      case ShowResult.Failed:
        Debug.LogError("The ad failed to be shown.");
        break;
    }
  }
}

problem fixed here : Unity Ads 2020 | Adding Rewarded Advertisement - YouTube

@ahmedaniss I appreciate the video tutorial but all that did was show me to copy and paste from unity code samples,