Android Question admob ad restriction

Discussion in 'Android Questions' started by Almora, Jun 22, 2019.

  1. Almora

    Almora Active Member Licensed User

    application stopped serving ads.
    I don't know how to fix it.
    I am using this code. no problem in other applications that use the same code.

    BannerAd.Initialize2("BannerAd""ca-app-pub-xxxx/yyyy", BannerAd.SIZE_SMART_BANNER)
    Dim height As Int
    If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then
        If 100%x > 100%y Then height = 32dip Else height = 50dip
        height = 90dip
    End If
    Activity.AddView(BannerAd, 0dip100%y - height, 100%x, height)

    Attached Files:

  2. asales

    asales Well-Known Member Licensed User

    This code is Ok.
    Maybe the problem is how you to display the ad ("This includes resizing ad frames or hiding Google Ads to discard some of the ads").
    Put a screen of your app with the ad.
    Almora likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice