You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.
i have included your project to my gradle and all was going fine with my implementaion for medaition of MoPub with Facebook : but i got a pop with this error in my log
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.github.ayltai.mopub.adapter.FacebookNativeAd" on path: DexPathList[[zip file "/data/app/com.ezydev.phonecompare-2/base.apk"],nativeLibraryDirectories=[/data/app/com.ezydev.phonecompare-2/lib/arm, /vendor/lib, /system/lib]]
@OverRide
public void onNativeLoad(final com.mopub.nativeads.NativeAd nativeAd) {
Log.i(this.getClass().getSimpleName(), "Native ad loaded");
nativeAd.setMoPubNativeEventListener(this);
final StaticNativeAd staticNativeAd = (StaticNativeAd)nativeAd.getBaseNativeAd();
if (staticNativeAd instanceof FacebookNativeAd) {
Log.i(this.getClass().getSimpleName(), "Native ad loaded FacebookNativeAd");
}
}
The text was updated successfully, but these errors were encountered:
and is their a way i can know if the ad is of FACEBOOK or Google on onNativeLoad() fun . or is it the instance of StaticNativeAd that will help me with this separate identification ??? Please help with integration
In release build, if you use ProGuard or some other similar tools to obfuscate your app code, you have to add org.github.ayltai.mopub.* to your proguard-rules.pro filter.
To know which ad provider is the ad loaded from, yes, you can check the instance type, or log it inside the adapter (but you have to fork this repo to modify it).
i have included your project to my gradle and all was going fine with my implementaion for medaition of MoPub with Facebook : but i got a pop with this error in my log
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.github.ayltai.mopub.adapter.FacebookNativeAd" on path: DexPathList[[zip file "/data/app/com.ezydev.phonecompare-2/base.apk"],nativeLibraryDirectories=[/data/app/com.ezydev.phonecompare-2/lib/arm, /vendor/lib, /system/lib]]
The text was updated successfully, but these errors were encountered: