User Tools

Site Tools


proton:admanager_chartboost

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
proton:admanager_chartboost [2012/07/06 02:54]
seth created
proton:admanager_chartboost [2012/12/02 12:20] (current)
seth
Line 2: Line 2:
 [[http://​www.chartboost.com|Chartboost]] lets you tell your users about other games you've written by showing them big splash ads in a controlled way.  You can specify that an ad is only shown once, or every day, or whatever. ​ It's also possible to run ads for pay and track installs and bootups. [[http://​www.chartboost.com|Chartboost]] lets you tell your users about other games you've written by showing them big splash ads in a controlled way.  You can specify that an ad is only shown once, or every day, or whatever. ​ It's also possible to run ads for pay and track installs and bootups.
  
-AdManager has been tested with V3.01 and is supported on iOS and Android.+The AdManager ​Chartboost module ​has been tested with V3.01 to 3.1.1 and is supported on iOS and Android
 + 
 +Requires an [[http://​www.rtsoft.com/​wiki/​doku.php?​id=proton:​admanager|AdManager]] object to be setup to use.
  
 === Adding Chartboost to the AdManager === === Adding Chartboost to the AdManager ===
  
-  * Add add /​shared/​Ad/​AdProviderChartBoost.cpp to your project+  * Add /​shared/​Ad/​AdProviderChartBoost.cpp to your project
  
 (Yes, it should be Chartboost and not ChartBoost but don't make me change it, svn makes it a hassle and it's already used in client projects that would break with this change..) (Yes, it should be Chartboost and not ChartBoost but don't make me change it, svn makes it a hassle and it's already used in client projects that would break with this change..)
Line 89: Line 91:
  
 to enable it. to enable it.
 +
 +One last thing. ​ Edit your android/​AndroidManifest.xml and add the following somewhere for chartboost:
 +
 +<​code>​
 +<!-- CHARTBOOST START -->
 +    <​activity android:​name="​com.chartboost.sdk.CBDialogActivity"​
 +android:​configChanges="​orientation|keyboard|keyboardHidden"​
 +android:​windowSoftInputMode="​adjustResize"​
 +android:​theme="​@android:​style/​Theme.Translucent"​
 +android:​screenOrientation="​landscape"​
 +android:​launchMode="​singleTop"​ >
 +    </​activity>​
 +<!-- CHARTBOOST END -->
 +</​code>​
  
 That's it, Chartboost should work in your Android build now.  Please note though, that unless you've setup an ad and a "​campaign"​ in the Chartboost portal, nothing will show and you won't even know that it is working. That's it, Chartboost should work in your Android build now.  Please note though, that unless you've setup an ad and a "​campaign"​ in the Chartboost portal, nothing will show and you won't even know that it is working.
 +
 +=== Enabling Chartboost for your iOS xCode build ===
 +First, download the [[http://​www.chartboost.com/​support/​sdk|Chartboost iOS SDK]] and put the contents in /​shared/​iOS/​ChartBoost. (The directory will already exist)
 +
 +  * Add the file /​shared/​Ad/​AdProviderIOS_ChartBoost.mm to your xCode project
 +  * Add the file /​shared/​iOS/​ChartBoost/​libChartboost.a to your xCode project
 +  * Add the file /​shared/​iOS/​ChartBoost/​Chartboost.h to your xCode project
 +  * Make sure RT_CHARTBOOST_ENABLED is being defined somewhere (either in the xcode preprocessor macros, or App.h)
 +
 +If you compile and see an Apple Mach-O Linker error of _SCNetworkReachabilityCreateWithAddress then you need to do the following:
 +  * Add the SystemConfiguration.framework to your xCode project. ​ (One way is to click + on the Link Binary With Libraries dialog under Build Phases, then find it in there)
 +
 +If you compile and see an Apple Mach-O Linker error of _CFStreamCreatePairWithSocketToCFHost,​ then you need to do the following:
 +  * Add the CFNetwork.framework to your xCode project. ​ (One way is to click + on the Link Binary With Libraries dialog under Build Phases, then find it there) ​
 +
 +**NOTE**: ​ As of 12/2/2012, you must also "weak link" to the AdSupport and StoreKit frameworks, and be using the iOS 6.X sdk as the base sdk.  (runs on iOS 4.3 or higher) ​ If you don't, it looks like it works but it doesn'​t show ads.  The debug output will tell you that you need to link the libs though.
proton/admanager_chartboost.1341543252.txt.gz · Last modified: 2012/07/06 02:54 by seth