How to integrate admob into my Android app?
I have use this link: google code
but I think there are not all the information needed.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not too certain about the tutorial, as I just worked through the API to get it to work. Here’s my code:
This is pretty much all you need. Here
IS_DEBUGis my private variable controlling whether I’m running in test mode or live production.MY_AD_UNIT_IDis the ad unit ID you get when you register the app with AdMob.AdLayoutis a LinearLayout that would contain theAdView– it’s the first child in a vertical LinearLayout.