D
Deleted member 30048
Guest
Hello, I hope that the place of the message is here!
Well, I downloaded admob 1.40 lib but I have a problem. I use this code for smart_banners:
Adview1.Initialize2("Ad", "xxxxxxxx", 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)
and the banners show great in phones and tablets but only in portrait mode, in landscape mode does not show any ad.
The only way to show ads in phones in landscape mode that I know is setting "width = 320dip" and "height = 50dip" without smart banners, but I don't know how to do banners in tablets in landscape mode.
Please, can somebody help me?
Sorry for my english if you don't understand anything.
Thanks to everybody!
Well, I downloaded admob 1.40 lib but I have a problem. I use this code for smart_banners:
Adview1.Initialize2("Ad", "xxxxxxxx", 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)
and the banners show great in phones and tablets but only in portrait mode, in landscape mode does not show any ad.
The only way to show ads in phones in landscape mode that I know is setting "width = 320dip" and "height = 50dip" without smart banners, but I don't know how to do banners in tablets in landscape mode.
Please, can somebody help me?
Sorry for my english if you don't understand anything.
Thanks to everybody!