Android Question How to add AppBrain Banner

Discussion in 'Android Questions' started by amidgeha, Feb 26, 2019.

  1. amidgeha

    amidgeha Member Licensed User

    Last year Erel posted a way to add interstitial ad, how can I add a banner using the same method?
  2. amidgeha

    amidgeha Member Licensed User

    For the latest Appbrain SDK (appbrain-sdk-14.60.aar) @Erel code works fine if you just remove (android:enabled="@bool/appbrain_job_service_enabled") from the manifest, you don't have to remove it if you use older Appbrain SDK such as (appbrain-sdk-14.10.aar)
    AppBrainBanner= CreateBanner("DEFAULT")
    Activity.AddView(AppBrainBanner, 0100%y-50dip100%x50dip)
    Sub CreateBanner (AdUnitId As StringAs JavaObject
    Dim AdId As JavaObject
    Dim builderb As JavaObject
        builderb = builderb.InitializeNewInstance(
    Return builderb
    End Sub
  3. Feten7

    Feten7 Member Licensed User

    Thanks for the information, amidgeha.
    I have a question: Is it possible to select an ID for the Banner? I mean, Appbrains permits to create several banners, each one with one ID, and I want to show a specific one in one activity.
  4. DonManfred

    DonManfred Expert Licensed User

    Read that post, understand the code used and use one of the possible IDs (all Values are listed in the Librarythread).
  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