Android Question help! admob size smartbanner

pemulanih

Member
I received a violation notification from Admob ,
Modified ad code: Resizing Ad Frames :
Google AdMob ad serving has been restricted to your app

i've follow the tutorial firebaseadmob library with this code:
B4X:
Sub ads(banner As String)
    BannerAd.Initialize2("BannerAd", banner, BannerAd.SIZE_SMART_BANNER)
    Dim height As Int
    If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then
        
        If 100%x > 100%y Then height = 32dip Else height = 50dip
    Else
        height = 90dip
    End If
    Activity.AddView(BannerAd, 0dip, 100%y - height, 100%x, height)
    BannerAd.LoadAd
    
End Sub

the result on emulator works great, but in my phone show truncated like this:
1615572412-picsay.jpg

how to raise the position of the ad up a little so it is not cut off?
help me master,.. thanks before...