- Home /
Question by
lazuardi100 · Aug 21, 2014 at 10:55 AM ·
admoboverload
No Overload method problem
Can anyone help me, with this script? I want make a advertisement with AdMob but... I have problem with it The message problem is error "CS1501: No overload for method CreateBanner' takes
3' arguments" but in tutorial it's not problem. This the script:
public class ads : MonoBehaviour {
private const string AD_UNIT_ID="xxxxxxxxxxxxxxxxx";
private AdMobPlugin admob;
public bool hidden = true;
// Use this for initialization
void Awake () {
}
// Update is called once per frame
void Start () {
admob = GetComponent<AdMobPlugin>();
admob.CreateBanner(AD_UNIT_ID, AdMobPlugin.AdSize.SMART_BANNER, true); //error in here
admob.RequestAd();
admob.ShowBanner();
}
}
Can you help me? Thanks
Comment
Which tutorial are you using? Can you provide a link to it? I'm not familiar with the Ad$$anonymous$$obPlugin you are using on line 3, but you may want to have a look at how the CreateBanner method is defined there.
Your answer
![](https://koobas.hobune.stream/wayback/20220613161135im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Saving problem unity project 5 Answers
How to change the color of the screen?? 3 Answers
How can i fix this error? 2 Answers