Dim Adview1 As AdView
...
'AdMob
Adview1.Initialize2("Adunitname", "adunitid", Adview1.SIZE_SMART_BANNER)
Dim height As Int
If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then
'phones
If 100%x > 100%y Then height = 32dip Else height = 50dip
Else
'tablets
height = 90dip
End If
Activity.AddView(Adview1, 0dip, 100%y - height, 100%x, height)
'End AdMob