Private heightad As Int
adbox.Initialize2("Ad", "ca-app-pub-85089637014xxxxxxxxxxxxx5913" , adbox.SIZE_SMART_BANNER )
If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then
If 100%x > 100%y Then heightad = 32dip Else heightad = 50dip
Else
heightad = 90dip
End If
Activity.AddView(adbox, 0dip, 100%y - heightad, 100%x, heightad)
adbox.LoadAd
adbox.BringToFront