As I wrote here can we have GetDeviceLayoutValues.Height and GetDeviceLayoutValues.Scale in designer?
EDIT 1:
We already have options to check. Sorry.
If 100%y < 400dip Then
Ad.Height = 32dip
Else If 100%y > 400dip And 100%y <= 720dip Then
Ad.Height = 50dip
Else If 100%y > 720dip Then
Ad.Height = 90dip
End If