I’m trying to integrate mopub ads in my game on android. I’ve followed the instructions on the github page but no luck. specifically, I have:
-
imported the mopub-sdk project in eclipse.
-
Built and exported the mopub-sdk.jar to my newly-created android project (in the ./bin folder), project named “MoPubUnityPlugin”
-
Added class.jar and android-support-v4.jar to the ./libs folder of the MoPubUnityPlugin (from github)
-
Added MoPubUnityPlugin.java (from github) to the ./src/main/java/ folder and configured build path to ./src/main/java/
-
built the project and took the MoPubUnityPlugin.jar to Unity3D’s ./Plugins/Android folder
-
imported the MoPubAndroid.unitypackage (from github) in the project
-
called MoPubAndroid.requestInterstitalAd(“blablathekeyhere”); which calls
new AndroidJavaClass( “com.mopub.mobileads.MoPubUnityPlugin” );
logcat reports the following:
AndroidJavaException:java.lang.ClassNotFoundException: com.mopub.mobileads.MoPubUnityPlugin
If it matters, I’m also using google play services plugin for unity and prime31 In-App Purchasing plugin, both work fine. but mopub is killing me