Android Question Admob banner ad size

tufanv

Expert
Licensed User
Longtime User
Hello,

I use :


B4X:
If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then
        'phones
        If 100%x > 100%y Then height = 32dip Else height = 50dip
    Else
        'tablets
        height = 90dip
    end if

But some devices like samsung galaxy s9, s10 etc, I see that 50 dip is not enough for the received ad, I think it must be 90. Is this code example still valid or do we have to change something because it does not fit into the panel.

TY
 
Top