I am trying to implement Rewarded videos to my game and I’m following the Integration Guide where it shows to use “IUnityAdsListener”
so I try writting it in my class but it appears as “Not found”
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Advertisements;
public class AdManager : MonoBehaviour, IUnityAdsListener
{
What am I missing?
following the same guide I also get this redmark saying “There is no definition for ‘Listener’”
This is what I am getting in the console
“Assets\Scrips\AdScriptsbyMe\AdManager.cs(7,41): error CS0246: The type or namespace name ‘IUnityAdsListener’ could not be found (are you missing a using directive or an assembly reference?)”
Thanks in advance
Hey,
If you head over to the package manager, you will need to install the latest version of Unity Ads.
This can be done by going to your Unity window and clicking
Window > Package Manager
After that click on the dropdown next to ads. You can either select the latest version, or see all versions and select one.
Next click on the update button and you should now have no errors. Here’s a little image of the package manager window
21 Likes