Chartboost Android

From POKKT DOCUMENTATION
Jump to: navigation, search

Chartboost Pokkt Mediation

Last Update: 5th October, 2017


Pokkt SDK version used: 6.2.1

Chartboost SDK version used: 7.0.0


Download Latest Version Pokkt Mediation.


  1. Common Steps for Chartboost Pokkt Mediation:This is common documentation which is useful for all plugin.
  2. Native Integration:Check the Steps Mentioned for Native.
  3. Xamarin Integration:Check the Steps Mentioned for Xamarin.
  4. AIR Integration:Check the Steps Mentioned for AIR.
  5. Marmalade Integration:Check the Steps Mentioned for Marmalade.
  6. ShiVa Integration:There is no separate documentation for this. Please follow “Common Chartboost Pokkt Mediation” page.
  7. Cocos2d-x Integration:There is no separate documentation for this. Please follow “Common Chartboost Pokkt Mediation” page.
  8. Unity3D Integration:There is no separate documentation for this. Please follow “Common Chartboost Pokkt Mediation” page.
  9. Titanium Integration:There is no separate documentation for this. Please follow “Common Chartboost Pokkt Mediation” page.

Common Steps for Chartboost Pokkt Mediation

Prerequisites


Step 1: Configure Pokkt Dashboard

  • Create Account and login at https://www.pokkt.com
  • Register your app here if not registered.
  • To use the chartboost Mediation please enter the following details on Pokkt Dashboard:
    Chartboost config.jpg

  • Class Name (required): This is the class name that you define inside your application to set up the network. Classname for the network can be set during SDK integration. If you are using Pokkt’s default adaptors for mediation which is given in PokktMediation.jar, then class name will be com.pokkt.thirdparty.ChartboostNetwork
  • App Id (required): Login to Chartboost developer dashboard and create the App and get the App Id from “APP SETTINGS->Basic Settings”.
  • App Signature (required): Get the App Signature from “APP SETTINGS->Basic Settings”.
  • Virtual Currency(required): Provide reward value which user will get after the reward ad. This is the same value which you provide in Chartboost dashboard.
  • ECPM (required): Put your expected value of ECPM which will in turn rank this network in comparison to other configured networks.
  • User Id: Put user id from your Chartboost account dashboard. To get user id Select Choose App -> Tools -> API Explorer.
  • User Signature: Put user signature from your Chartboost dashboard. To get user signature Select Choose App -> Tools -> API Explorer.
  • RewardedVideoLocation (required): Provide screen name here which will appear on Chartboost dashboard under created app and then you can do setting on basis of screen name. Please check Chartboost documentation for more details. For creating screen name, create screen name in Pokkt dashboard. Please check below screen shot.
    Screen.jpg

  • InterstitialLocation (Required): Same like RewardedVideoLocation.

Step 2: Configuration in Application (Native)

  • Download the mediation project from POKKT and it is recommended to use the same class file ChartboostNetworkin your project. And if you want to do some changes please do those changes in same file. You have the option to make changes to these classes, in-fact you can create your own custom adaptor for Chartboost using our protocol, just make sure to mention the exact name of class in the “class name” box, refer the Step 1.
  • Add the “chartboost.jar”file into your project. Make sure to update your project's dependencies accordingly.
  • Refer Chartboost integration document at https://answers.chartboost.com/hc/en-us/articles/201219545#integration
  • Add the necessary permissions for Chartboost as suggested in Chartboost integration document to your application manifest.
  • Add the recommended activitiesand meta datato your AndroidManifest.xmlas suggested in Chartboost integration guide.
  • Chartboost expects activity context so please pass activity context in PokktAds.setPokktConfig()

Xamarin Android

Follow the below steps to integrate Mediation in Xamarin android project:

  1. Add downloaded file PokktMediation.dllin your project under reference section.
  2. You need to create your own .dll extension for Chartboost as it is not been provided by Chartboost.
  3. We had created .dll extension for Chartboost for testing purpose but if you need then please let us know. We will help you on this.
  4. Follow above all process to complete integration.

AIR Android

Follow the below steps to integrate Mediation in AIR android project:

  1. Add downloaded file PokktMediation.anein your project
  2. Download Chartboost ANE from below link and add this one in your project:
    https://github.com/ChartBoost/air/tree/master/sample/ext
  3. Google play service .ane file also required and few of the AdNetwork .ane comes with google play service .ane so be careful with this. We are giving PokktMediation.ane separate GooglePlayService.ANE separate.
  4. Follow above all process to complete integration and also check our given example specially app.xml file.

Marmalade Android

Follow the below steps to integrate Mediation in Marmalade android project:

  1. Check downloaded file which has one mediation project “PokktMediationExtension” and this need to be added in your project as subproject in .mkb file.
  2. Marmalade has provided Chartboost extension but there is version mismatch with Chartboost so please create your own extension and add it as subproject. We have created dummy extension for this testing purpose. We can help you on this.
  3. Add created Chartboost extension project in your project as subproject.
  4. Follow above all process to complete integration and also check our given example specially app.xml file.