Custom Ads Integration Help

Discussion in 'Buildbox General Discussion' started by Elite Games, Mar 9, 2021.

  1. Elite Games

    Elite Games Avid Boxer

    Joined:
    Dec 18, 2019
    Messages:
    184
    Likes Received:
    84
    Hi i tried to implement Unity ads using custom option in buildbox but did not got any success.
    I was successfully able to initialize the sdk but when i want to show an ad it shows nothing
    in Android Studio logcat it shows that it successfully fetched the ad and Webview started using the latest version but nothing shows i implemented the same code in sample android project and it works there.

    log:

    03-10 09:43:42.403 4939-4999/com.bb.gamejam D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524290
    03-10 09:43:42.406 4939-5014/com.bb.gamejam I/UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:84) :: mediation detection is:{"UnityEngine":false}
    03-10 09:43:42.424 4939-5014/com.bb.gamejam I/UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:84) :: Requesting configuration from https://publisher-config.unityads.u...SM-G973N&language=en_PK&test=true&first=false
    03-10 09:43:43.187 4939-5014/com.bb.gamejam I/UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:84) :: Received configuration for token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWMiOjIwMCwiYXpwIjoiNTI2NDNkMjQtZTZiYi00ZjgxLWI3NTgtOGI4YjJmOWZmZjNhIiwiY3BpIjoxMzQsImNyZWF0ZWQiOjE2MDEwODYwODgwMDAsImR0IjowLCJleHAiOjE2MTY1NjEwMjIsImlhcCI6MjQ0LCJpYXQiOjE2MTUzNTE0MjIsImlzcyI6ImFkcy1nYW1lLWNvbmZpZ3VyYXRpb24udW5pdHlhZHMudW5pdHkzZC5jb20iLCJsdHYiOjExNSwicHJvIjoxMCwic3ViIjoicTBCUnBPeVhpUDVNemZUV0NNNnRsYmNFUWVTZ0dEYzNxWjlmdXF1YWtDa0Q0WUY1ZWdtUlN2VlRjcnpubEx6RjNGd1FkQT09IiwieHByIjoxNzJ9.lzVx_mWdPFVQ336ZujDOVEao4i09HTg1NZsmBuC_2qg (A/B group 14)
    03-10 09:43:43.241 4939-4939/com.bb.gamejam D/AdIntegratorCustom: interstitial loaded
    03-10 09:43:43.291 4939-5014/com.bb.gamejam I/UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:84) :: Requesting ad plan from https://auction.unityads.unity3d.co...Height=1600&connectionType=wifi&networkType=2
    03-10 09:43:45.125 4939-5014/com.bb.gamejam I/UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:84) :: AdPlan received with 1 campaigns and refreshDelay 0
    03-10 09:43:45.233 4939-4939/com.bb.gamejam D/AdIntegratorCustom: interstitial loaded
    03-10 09:43:45.233 4939-4939/com.bb.gamejam D/AdIntegratorCustom: interstitial loaded
    03-10 09:43:45.235 4939-4939/com.bb.gamejam D/AdIntegratorCustom: interstitial loaded
    03-10 09:43:45.260 4939-5014/com.bb.gamejam I/UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:84) :: Webview started using the latest version
     
  2. Elite Games

    Elite Games Avid Boxer

    Joined:
    Dec 18, 2019
    Messages:
    184
    Likes Received:
    84
    i also get this error in logcat
    Ad network not found in map
     
  3. Elite Games

    Elite Games Avid Boxer

    Joined:
    Dec 18, 2019
    Messages:
    184
    Likes Received:
    84
    Problem Solved !!! :p
     
    Sean Buildbox likes this.
  4. Tars Tarkas

    Tars Tarkas Avid Boxer

    Joined:
    Jul 17, 2018
    Messages:
    303
    Likes Received:
    228
    it would be awesome if you share how you integrated this in android studio :)
     
  5. Elite Games

    Elite Games Avid Boxer

    Joined:
    Dec 18, 2019
    Messages:
    184
    Likes Received:
    84
    i am still testing it . I did not filled the required parameter in custom adinteger.java

    In Custom Ad Settings where it Says
    private static String adNetworkId = ""
    here you have to remove custom and enter AdNetwork name
    then just follow the integration documentation provided by the ads network to initialize the network and it will load.
     
  6. marlinaddington

    marlinaddington Boxer

    Joined:
    Jun 26, 2020
    Messages:
    6
    Likes Received:
    1
    Great info for me. Thanks! Apps by https://mlsdev.com/services/custom-software-development get popular very quickly. They reach the top of the charts and are featured on the app stores within days after being released. This is great for everyone involved, as it means more downloads and more revenue for the owners. The cost of creating an app is dependent on monetization. You can either put in your own money or purchase revenue sharing through sponsorship, advertising, and other monetization methods. This means that the potential revenue from an app will be dependent on how you monetize it.
     
    Last edited: Mar 24, 2021

Share This Page