如何在android中实现中介广告

前端之家收集整理的这篇文章主要介绍了如何在android中实现中介广告前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我在Android中实现了中介广告,但它没有显示我在Ad Network Mediation中使用当前的AdMob House Ads和Hunt Mobile Ads.

我实现了xml和java编码方式,但对我来说都不起作用.

我的xml代码

 

并且日志cat错误

01-23 19:13:10.079: E/Ads(1771): Cannot find adapter class 'com.huntmads.admobadaptor.HuntMadsAdapter'. Did you link the ad network's mediation adapter? Skipping ad network.
01-23 19:13:10.079: E/Ads(1771): java.lang.ClassNotFoundException: com.huntmads.admobadaptor.HuntMadsAdapter
01-23 19:13:10.079: E/Ads(1771):    at java.lang.Class.classForName(Native Method)
01-23 19:13:10.079: E/Ads(1771):    at java.lang.Class.forName(Class.java:217)
01-23 19:13:10.079: E/Ads(1771):    at java.lang.Class.forName(Class.java:172)
01-23 19:13:10.079: E/Ads(1771):    at com.google.ads.g.a(SourceFile:133)
01-23 19:13:10.079: E/Ads(1771):    at com.google.ads.i.run(SourceFile:116)
01-23 19:13:10.079: E/Ads(1771):    at android.os.Handler.handleCallback(Handler.java:605)
01-23 19:13:10.079: E/Ads(1771):    at android.os.Handler.dispatchMessage(Handler.java:92)
01-23 19:13:10.079: E/Ads(1771):    at android.os.Looper.loop(Looper.java:137)
01-23 19:13:10.079: E/Ads(1771):    at android.app.ActivityThread.main(ActivityThread.java:4424)
01-23 19:13:10.079: E/Ads(1771):    at java.lang.reflect.Method.invokeNative(Native Method)
01-23 19:13:10.079: E/Ads(1771):    at java.lang.reflect.Method.invoke(Method.java:511)
01-23 19:13:10.079: E/Ads(1771):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
01-23 19:13:10.079: E/Ads(1771):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
01-23 19:13:10.079: E/Ads(1771):    at dalvik.system.NativeStart.main(Native Method)
01-23 19:13:10.079: E/Ads(1771): Caused by: java.lang.NoClassDefFoundError: com/huntmads/admobadaptor/HuntMadsAdapter
01-23 19:13:10.079: E/Ads(1771):    ... 14 more
01-23 19:13:10.079: E/Ads(1771): Caused by: java.lang.ClassNotFoundException: com.huntmads.admobadaptor.HuntMadsAdapter
01-23 19:13:10.079: E/Ads(1771):    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
01-23 19:13:10.079: E/Ads(1771):    at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
01-23 19:13:10.079: E/Ads(1771):    at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
01-23 19:13:10.079: E/Ads(1771):    ... 14 more
最佳答案
听起来您已经下载了Admob软件包,但您还需要下载其他类型广告的.jar文件. Google为所有中介广告提供了instructions,并为Huntmads jar提供了特定的下载链接.

猜你在找的Android相关文章