Android Question Chartboost Library and example

Phonegames

Member
Licensed User
Longtime User
Could anyone please provide us the chartboost ads library and example for B4A ?

Many Thanks
 

Chris_MobileApp

Member
Licensed User
Longtime User
Hi there. I am new to B4A I have followed the guide (pdf file) to integrate mopub. I want Admob banner and Chartboost Interstetial in my game. Can some please help with this? App crashes if I add ids..Below is my manifest..

AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.

'AdMob
AddApplicationText(<!-- MoPub -->
<activity android:name="com.mopub.mobileads.MoPubActivity"
android:configChanges="keyboardHidden|orientation"/>
<activity android:name="com.mopub.mobileads.MraidActivity"
android:configChanges="keyboardHidden|orientation"/>
<activity android:name="com.mopub.common.MoPubBrowser"
android:configChanges="keyboardHidden|orientation"/>
<activity android:name="com.mopub.mobileads.MraidVideoPlayerActivity"
android:configChanges="keyboardHidden|orientation"/>
<!-- Google Play Services -->
<meta-data android:name="com.google.android.gms.version"
android:value="@Integer/google_play_services_version" />
<!-- AdMob -->
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
)
'AddApplicationText(<activity android:name="com.google.ads.AdActivity")
'AddApplicationText(android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|smallestScreenSize|screenSize"/>)
'AddApplicationText(
')
'End of AdMob




And here below is my script in game.

ads.AdMob_Test
ads.InitializeMopub_Banner("banner", "mopub_banner")
ads.InitializeMopub_Interstitial("interstitial", "YOUR_MOPUB_INTERSTITIAL_ID")
Activity.AddView (ads, 0, 0, 320dip, 50dip)
ads.LoadMopub_Banner

ads.PreloadMopub_Interstitial

Where to add chartboost ids? Any help would be really appreciated.I know I have to use ads.ShowMopub_Interstitial for showing add where i want.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…