ad.Initialize2("adView", "my-key", ad.SIZE_SMART_BANNER)
Panel1.AddView(ad,0,Height-(getAdMobHeight+getAdMobHeight), Width, getAdMobHeight+getAdMobHeight)
ad.LoadAd
Sub getAdMobHeight As Float
Dim h As Int
If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then
'phones
If 100%x > 100%y Then h = 32dip Else h = 50dip
Else
'tablets
h = 90dip
End If
Return h
End Sub