- Home /
getting an error on my admob script?
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?
Comment
Best Answer
Answer by gimoj · Aug 06, 2014 at 10:57 AM
nvm, I just changed the creat banner line to this:
admob.CreateBanner(AD_UNIT_ID, AdMobPlugin.AdSize.SMART_BANNER, false, "", false);
Sorry for the hassle
Your answer
Follow this Question
Related Questions
Admob Plugin Unity IOS 4 Answers
A node in a childnode? 1 Answer
How to place Adv Vertically 1 Answer
Admob Unity plugin 0 Answers
A plugin crash on existing project, but works well on new project 0 Answers