Hi
I have got this message > UnityAdsEditor: Initialize(1529584,> False);> UnityEditor.Advertisements.UnityAdsEditor:EditorOnLoad()
and ads not showing.
I have included unity ads assets and this script:
public class UnityAdManager : MonoBehaviour {
public static UnityAdManager instance;
// Use this for initialization
void Awake () {
DontDestroyOnLoad(this.gameObject);
if (instance == null)
{
instance = this;
}
else
{
Destroy(this.gameObject);
}
}
public void ShowAd(){
if (Advertisement.IsReady("1529584"))
{
Advertisement.Show("1529584");
}
print("Ad Showed");
}
}
Someone to help me ? PLEASE
Thank you kindly
↧