Hello,
For some reason I cannot implement the AdMAnager correctly.
The line " Advertisement.AddListener(this);" is giving me an error.
The error: cannot convert from ‘AdManager’ to ‘UnityEngine.Advertisement.IUnityadsListener’
Can anybody please help me
public class AdManager : MonoBehaviour, IUnityAdsListener
{
public static AdManager instance;
private void Start()
{
if (instance == null)
{
instance = this;
DontDestroyOnLoad(gameObject);
Advertisement.AddListener(this);
Advertisement.Initialize(storeID, testMode);
}
else
{
Destroy(gameObject);
}
}
}