If phon.SdkVersion>15 Then
AdView1.Initialize2("AdBanner", "ca-app-pub-72...", AdView1.SIZE_BANNER)
Dim AdMobHeight As Int
Dim ScreenHeightScaled As Float
ScreenHeightScaled = GetDeviceLayoutValues.Height / GetDeviceLayoutValues.Scale
If ScreenHeightScaled <= 400 Then
AdMobHeight = 32dip
Else if ScreenHeightScaled > 400 And ScreenHeightScaled <= 720 Then
AdMobHeight = 50dip
Else if ScreenHeightScaled > 720 Then
AdMobHeight = 90dip
End If
Activity.AddView(AdView1, 6%x,92%y,320dip,AdMobHeight)
AdView1.LoadAd
IAd.Initialize("iad", "ca-app-pub-7244......") ' full Screen admob
IAd.LoadAd
End If