How To Integrate Other Sdk?

Discussion in 'Buildbox General Discussion' started by Appossible, Aug 13, 2018.

  1. Appossible

    Appossible Avid Boxer

    Joined:
    Aug 14, 2017
    Messages:
    198
    Likes Received:
    56
    Hi boxers,

    Is there anyway to integrate other ads SDK (like from China, such as UC and xiaomi) on android ?
    A publisher from China wants to publish my game to China.
    But I have not figured out how to integrate those Chinese SDK.

    Is there anyone able to integrate them? or know how to make it?
     
  2. spicedbeangames

    spicedbeangames Miniboss Boxer

    Joined:
    Mar 31, 2016
    Messages:
    1,389
    Likes Received:
    596
    You may need to contact support. I know they can help if a publisher wants to throw weight behind your game
     
    Appossible likes this.
  3. Appossible

    Appossible Avid Boxer

    Joined:
    Aug 14, 2017
    Messages:
    198
    Likes Received:
    56
    But because it's built with buildbox , it's different from the normal ones. So they can't help with it.
     
  4. Appossible

    Appossible Avid Boxer

    Joined:
    Aug 14, 2017
    Messages:
    198
    Likes Received:
    56
    Dose anyone know where to insert these code in?


    public void onCreate() {
    super.onCreate();
    initSdk(this, new NGASDK.InitCallback() {
    @Override
    public void success() {
    showAd(WelcomeActivity.this);
    }
    @Override
    public void fail(Throwable throwable) {
    throwable.printStackTrace();
    }
    });
    }
    private static void initSdk(Activity activity, final NGASDK.InitCallback initCallback) {

    Log.d(TAG, AdConfig.toStringFormat());
    NGASDK ngasdk = NGASDKFactory.getNGASDK();
    Map<String, Object> args = new HashMap<>();
    args.put(NGASDK.APP_ID, AdConfig.appId);
    args.put(NGASDK.DEBUG_MODE, BuildConfig.DEBUG);
    ngasdk.init(activity, args, initCallback);
    }
     
  5. adrogdesigns

    adrogdesigns Avid Boxer

    Joined:
    Dec 5, 2016
    Messages:
    318
    Likes Received:
    233
    contact Buildbox support, they will help you,!!!!
     
  6. Appossible

    Appossible Avid Boxer

    Joined:
    Aug 14, 2017
    Messages:
    198
    Likes Received:
    56
    Ok, thanks for the advice, I have sent an email to support@buildbox.com yesterday.

    And actually I have done some of work by myself, however the game shows ads(interstitial) only one time when the game is open.
    The problem is I don't know how to show ads when the player is defeated like 3 times. I have set the interstitial freq. as 3 on buildbox Game mind map and set it as "custom", but I don't know how to control that with code.
    @Andy Hi Andy, could you please kindly help me on this? Thank you
     
  7. PLASSA

    PLASSA Boxer

    Joined:
    Jun 5, 2018
    Messages:
    24
    Likes Received:
    6
    If support pulls through and sorts out a solution for you be sure to write a guide for the rest of us! :)
     
  8. Appossible

    Appossible Avid Boxer

    Joined:
    Aug 14, 2017
    Messages:
    198
    Likes Received:
    56
    oh! you mean buildbox support, sorry I thought you were saying the publisher's support:D, and thank you
     
  9. Appossible

    Appossible Avid Boxer

    Joined:
    Aug 14, 2017
    Messages:
    198
    Likes Received:
    56
    yeah I will try to write one if I make it work
     

Share This Page