Thanks much for the pluggin.
I have it working in my app displaying the 300x250 test ad, but cant seem to get it to display the 300x50 test ads.
I have them enabled in test mode in mobclix for the app.
Is there something else I have to do to display the 320x50?
Thanks for your help.
killsage, here at Unity we just wanted to make the bootup easier, so we don’t support/maintain these plugins we made.
The sources are provided, so it’s the community who should chime in and adapt these for custom needs.
It took me a while to figure out the changes for windows. Maybe no one else has tried or everyone is smarter than me.
Windows users I suggest the following steps on top of TMK’s steps:
Create a clean unity project called CleanMobclix and install the above package in there as well as in your game, and run it once to make sure you see the 320x250 ad you should see by default. (Make sure you’re connected to the internet or you won’t see anything).
In your CleanMobclix project - Open up “Plugins/Android/build.properties” and change external.libs.absolute.dir to point to something like this (wherever you installed Unity to):
Again in CleanMobclix project - Open up “Plugins/Android/local.properties” and change sdk.dir to point to something like this (wherever you installed your Android sdk)
sdk.dir=/android-sdk-windows
and then follow TMK’s steps here:
Finally copy the MobclixActivity.jar from your CleanMobclix project to your actual game and you should see the smaller ads.
I recommend the extra steps just in case anything goes wrong… as long as you keep a backup of the original MobclixActivity.jar that came with the package you can get back to a non-broken state.
…And this is all assuming you’ve installed the JDK and ANT and added them to your PATH.
Have you edited the file “local.properties” to point to where you installed the Android SDK? I don’t remember exactly what kind of error message I got when I hadn’t done that, but it was something similar to what you are getting…
I’m getting this error when I try to rebuild the package using the instructions for getting the 320x50 ads.
I’m following the Windows instructions.
BUILD FAILED
F:\SoundMaker\Assets\Plugins\Android\build.xml:46: taskdef class com.android.ant
.SetupTask cannot be found
using the classloader AntClassLoader[ ]
I’m pretty sure I’ve got everything pointed to the right place, but I can’t get it to find that class.
Got a question about this. How do we get the application id? And any other id’s we need?
As i understand it you seem to have to upload the app first and get some sort of id from google, then
add that id to mobclix as an app, do you get the id after that so you can add it to your app?
Just register on Mobclix.com and then ‘Add an Application’ fill it out and you’ll see your ID in the list. It doesn’t have anything to do with Google ID or anything. It’s a value your app sends to mobclix for revenue tracking. And can be used for iOS or Android.
READ THIS IF YOU’RE USING THIS PACKAGE!!!
READ THIS IF YOU’RE USING THIS PACKAGE!!!
Make sure you download the latest SDK and drop the mobclix.jar it comes with over the one that comes with the the unitypackage at the top of this thread.
The one in the unitypackage requests ‘root’ as mobclix was using it to do some testing. People won’t DL your game if you have that… and likely give you ‘1 star’ to warn others as it appears suspicous.