Appbrain is fully complaint with Google Play and has been using the advertising ID since v10.1 released on June 6Answerr from appbrain regarding publicity ID
we currently have no direct support for it. However there are developers who are using it with basic4android. for example here:
Thanks a lot ...i guess this wrapper is woking with the sdk ...from them and not inside the plug in otherwise ...would not be compatible ..Appbrain is fully complaint with Google Play and has been using the advertising ID since v10.1 released on June 6
When I call showinterstitial method i get this at run timeHi All,
I present you another monetization option, AppBrain!
AppBrain is probably more known as a web based Android Market search and analytics thingy.
They actually also provide monetization options, and the results are so far quite good too ( looks better than Admob )
AppBrain's SDK shows offerwalls or interstitials to the users to download more (I think they're all FREE) games. Everytime a user downloads and installs games, you make some revenue.
1 - Register at Android App Monetization - Advertising & App Monetization with AppBrain
2 - If you cannot access your details yet, you will either need to wait for the confirmation mail from AppBrain or you can try contacting their support.
3 - Download their SDK, it should be named appbrain-sdk-android.jar
4 - Download the attached zip file, and add all the contents plus the SDK from step 3 into your extras folder.
5 - Manifest file, add following before the application close tag:
6 - Permission required: <uses-permission android:name="android.permission.INTERNET"/>B4X:
<!-- AppBrain SDK --> <activity android:configChanges="keyboard|keyboardHidden|orientation" android:name="com.appbrain.AppBrainActivity" /> <service android:name="com.appbrain.AppBrainService" /> <receiver android:exported="true" android:name="com.appbrain.ReferrerReceiver" > <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> </intent-filter> </receiver>
7 - In your code:
You should initialise the object in your main activity, as the AppBrain's SDK actually records very valuable information which you can access from developer dashboard.B4X:
Sub Globals Dim ab As MESAppBrain End Sub Sub Activity_Create(FirstTime As Boolean) ab.initialise End Sub
8 - In your code:
And that's it.B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean 'return true if you want to consume the event If keycode = KeyCodes.KEYCODE_BACK Then Dim xa As Int xa = Msgbox2("Download more fun games from AppBrain now!", "More Games!", "Download", "", "Maybe Later", Null) If xa = DialogResponse.POSITIVE Then ab.showOfferWall 'or showInterstitial End If End If Return False End Sub
Do note that the developer dashboard is not updated real time.
Some very useful analytics that you can get include daily new installs, daily active users, search terms used to search for your game/app, active versions and a whole lot more!
AppBrain's SDK also makes your app clean looking with no in-game ads and only 1 permission, so you have this option now.
Drawback, I hope they improve the dashboard, as right now it does not show overall revenue summary.
By the way, I have been emailing the co-founder of AppBrain, Uwe Maurer, in regards to the SDK, and he has been very helpful. Hope he'll drop by to further encourage the B4A community.
**** Update 5th April 2012 ****
New version 1.1
Added a new method "alwaysShowInterstitial" which will always show the interstitial (duh! thank you mr obvious!).
This version should also be B4A V1.8 friendly, added the dependson thingy. (Can tell I am no java person eh?)
Back up your stuff before trying this one out.