issue when I put admob code

hello guys
I tried to edit project and the banner ad it doesn’t appear
so when I move to layout and put this code I’ve trouble …

what I could do?

This line :

xmlns:ads=“http://schemas.android.com/apk/res.auto

Should be inside your top layout (not below your TableLayout) like this:

<LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android
xmlns:tools=“http://schemas.android.com/tools
xmlns:ads=“http://schemas.android.com/apk/res.auto
android:layout_width=“match_parent”
android:layout_height=“match_parent”
>

Thanks mate it’s fine now but the banner doesn’t appear after all !!!

It’s hard to debug without view your code… An advice: put your ad layout at the bottom of your xml file so it appears in front of all your other views.

Check this link if you didn’t before, it should work pretty easily:

https://developers.google.com/mobile-ads-sdk/docs/admob/android/eclipse#place_an_adview_in_your_main_activity_layout