unity 接入bigo ads mopub mediation ,mopub 接入第三方网络bigo

1.把这两个aar放到Plugins文件Android
图 1

2.建一个BigoNetworkConfig脚本

public class BigoNetworkConfig : MoPubNetworkConfig
{
    public override string AdapterConfigurationClassName
    {
        get { return Application.platform == RuntimePlatform.Android
                  ? "com.mopub.mobileads.BigoAdsAdapterConfiguration"
                  : "BigoAdsAdapterConfiguration"; }
    }

    [Tooltip("Enter your slot_id to be used to initialize the Bigo SDK.")]
    [Config.Optional]
    public PlatformSpecificString slot_id;

    [Tooltip("Enter your slot_id to be used to initialize the Bigo SDK.")]
    [Config.Optional]
    public PlatformSpecificString app_key;

    public bool debug;

}

3.然后接下来就是Gradle,把 1中的aar加到Gradle

    implementation (name:'bigo-ads-mopub-adapter-1.5.1.0',ext:'aar')
    implementation (name:'bigo-ads-sdk-v1.5.1',ext:'aar')
    implementation ('com.mopub:mopub-sdk:5.17.0@aar'){   transitive=true }

基本上这样就通了。如果出现Log广告加载成功,但是没有图片的情况
https://blog.csdn.net/wangxiyue0311/article/details/102897582
在AndroidMainfest.xml
< application ... android:usesCleartextTraffic="true" >
在application里面加这个就可以了

你可能感兴趣的:(unity 接入bigo ads mopub mediation ,mopub 接入第三方网络bigo)