I’m trying to put admob on my game but I keep getting this error:
error CS1501: No overload for method CreateBanner' takes
3’ arguments
Here’s my code:
private AdMobPlugin admob;
public bool hidden = true;
public void Awake()
{
DontDestroyOnLoad(this);
}
// Use this for initialization
void Start () {
admob = GetComponent<AdMobPlugin>();
admob.CreateBanner(AD_UNIT_ID, AdMobPlugin.AdSize.SMART_BANNER, false);
admob.RequestAd();
admob.HideBanner();
}
// Update is called once per frame
void Update () {
if(hidden)
{
admob.HideBanner();
hidden = false;
}
}
I followed this tutorial to the letter but I can’t seem to make it work. Can anyone help me?