How can I put a banner ad at the bottom of my app (AdMob)

I have a working android app and the last thing I want to do before I publish it is have a banner ad at the bottom of the screen. I have a MainActivity class that extends Activity and Mainview class that extends View:

    public class MainActivity : Activity
    {
            protected override void OnCreate(Bundle bundle)
            {
                    base.OnCreate(bundle);
                    MainView main = new MainView(this);
                    SetContentView(main);
            }
    }

    public class MainView : View
    {
            public MainView(Context context) : base(context)
            {
                    //initialization stuff in here
            }

            protected override void OnDraw(Canvas canvas)
            {
                    //some drawing code
            }
    }

I found this stack overflow post that is similar to what I'm asking other than I don't use the XNA framwork and I have a view rather than an axml layout:
http://stackoverflow.com/questions/15961662/how-to-display-admob-ad-at-bottom-of-screen-in-android-app-with-xamarin-monogame

So first of all what do I need to do to get the banner ad to show up at the bottom of the screen (any accounts I need to create, code I need to add) and second, every guide and tutorial I've checked out refers to this "your id here" property; can anyone tell me what that means or what it should be?

Sign In or Register to comment.