Chartboost

This Guideline will instruct you step-by-step on how to set Chartboost live as an ad network on the AdTiming Mediation platform.

Before You Start

Make sure you have correctly integrated AdTiming's Rewarded Video, Interstitial Ads into your application.

Important! The ADAPTERS for ad networks are modularized, which means that you need to download Not Only the SDK of mediation networks  you choose to work with But Also the adapters for those ad networks. Be sure to follow this Guide to mediation ChartBoost's Ads.

Step 1. Create an Charboost Account

  1. Create an account with Chartboost . You can do so here.
  2. Once your account has been verified you can login at their partner login here.

Step 2. Create an Application in Chartboost

1. Once you log in, add an app by clicking on the lower left corner and select '+ APP'.

Chartboost.png

2. Define the details of your application.

Chartboost1.png

  • Platform – iOS or Android.
  • App Nickname – Enter a custom name for your application.
  • App Orientation – Select 'Landscape' or 'Portrait'.
  • Test Mode – Important: Remember to disable Test Mode before going live.

Step 3. Start a new campaign

1. Click '+ CAMPAIGN' at the bottom left of your dashboard. Select Network Publishing.

Chartboost2.png

 

2. Name your publishing campaign, select which placement type your campaign will use, select a platform, and then choose which of your games will be showing ads in this campaign.

Chartboost4.png

3. In the Simple Settings section, indicate the type of ad you wish to serve (Rewarded Video or Static Interstitial)  in the Ad Type drop-down.

Note: You must create two different campaigns if you want to serve both Rewarded Video and Interstitial Ads through the ironSource Mediation platform. Campaigns may take up to 20 minutes to go live.

 

Step 4. Configure Charboost's Parameters into AdTiming Account

1. Once you have both of these parameters, log in to your AdTiming account and go to Placement ->Edit your placement

2. Click on Instances-> Add Instance. Select Chartboost from the list of Available Ad Networks, click 'New Account'

___46.jpg

 

3. Complete the following parameters below,and click 'Save'.

___47.jpg

 


Step 5. Add the Chartboost SDK&Adapter to Your Build

Android

1.  Add the Chartboost SDK

  • Add to your project-level build.gradle file.
 ...
 allprojects {
   repositories {
       ...

       jcenter()
       maven {
           url "https://chartboostmobile.bintray.com/Chartboost"
       }
    }
 }
  • Add to your application-level build.gradle file.
dependencies {
...
implementation 'com.chartboost:chartboost-sdk:8.0.2'
implementation 'com.google.android.gms:play-services-base:17.2.1' implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0' }

2.  Add the Chartboost Adapter

     AdTiming supports both Gradle dependencies and Manual download mechanisms.

       Gradle dependencies

  • Add the following in your project-level build.gradle file.
 ...
allprojects {
repositories {
...

jcenter()
maven {
url "https://dl.adtiming.com/android-sdk"
}
}
}
  • Add the following in your application-level build.gradle file.
 implementation 'com.adtiming.adapters:chartboost:3.2.0@aar'

       Manual download

  • Download the Chartboost Adapter from here
  • Add the Chartboost Adapter to Your Project
    Move the ChartboostAdapter-x.x.x.aar to the libs folder in your Android Project.

mceclip0.png

  • Make sure you add the following to your Gradle build file under the dependencies section:
implementation (name:'ChartboostAdapter-x.x.x', ext:'aar')

3. Update AndroidManifest.xml

  • Configure Android Manifest.xml to add an activity.
 <activity
android:name="com.chartboost.sdk.CBImpressionActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:excludeFromRecents="true"
android:hardwareAccelerated="true"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />

 

4. For Proguard Users Only

If you are using ProGuard with the Chartboost adapter, you must add the following code to your ProGuard configuration (Android Studio: proguard-rules.pro or Eclipse: proguard-project.txt):

-dontwarn com.chartboost.**.*
-keep class com.chartboost.** { *; }

  

Done!
You are now all set to deliver Chartboost Ads within your application.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.