Reputation: 817
In admob management AdUnit shows in format ca-app-pub-xxxxxxxxxxxxxxxx/nnnnnnnnnn
How am i suppose to put it in xml layout?
Is this correct?
<com.google.android.gms.ads.AdView
android:id="@+id/ad1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
ads:adSize="SMART_BANNER"
ads:adUnitId="ca-app-pub-xxxxxxxxxxxxxxxx/nnnnnnnnnn"
/>
Upvotes: 0
Views: 259
Reputation: 20196
You already have the correct Ad unitId.. It should be something like "ca-app-pub-xxxxxxxxxxxxxxxx/nnnnnnnnnn"
Upvotes: 1