Android Question Using a webview to display ads

Discussion in 'Android Questions' started by trueboss323, Jul 4, 2019.

  1. trueboss323

    trueboss323 Active Member Licensed User

    Not sure if this has been asked before , but is there a tutorial showing us how to use the webview to show ads? Both for banner and interstitial.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Why do you need WebView for this? Which ads provider are you using?
     
  3. trueboss323

    trueboss323 Active Member Licensed User

    I needed to find an alternative to Admob after they stopped serving my app. The other ad providers I found either lacked support for B4A or just wouldn't meet my needs. Plus I also wanted to find a way to monetize B4J apps.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    In most cases it should be simple to integrate ad services without any library. Example: https://www.b4x.com/android/forum/threads/90624/#content

    If an ad provider supports showing ads with WebView then they should document the required html / JavaScript code.
     
  5. hatzisn

    hatzisn Active Member Licensed User

    If you want to display an ad into the webview you can create html to display the image and load this html in the webview. This means that you will not use any ads provider but the ad provider will be yourself. Why do you want to do this in a webview and not in an imageview (since I suppose you will display only images) ?
     
  6. sorex

    sorex Expert Licensed User

    you can bet on it that they will check the referer url and other things so it probably will work untill you reach the payout values and they check things.

    and how will you solve clicks? everything will appear in that mini sized webview.
     
  7. trueboss323

    trueboss323 Active Member Licensed User

    When I did more research about it I realized I would not have any ad providers, as I was hoping for. Unless if you know such a service that will automatically retrieve from ad providers. I looked into using the AdColony SDK , but so far there’s no library for B4A.
     
Loading...
  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