华为广告

模块引入

根目录build.gradle中修改:

buildscript {
    repositories {
       ...
        maven {url 'http://developer.huawei.com/repo/'}
       ...
    }    
}

allprojects {
    repositories {
       ...
        maven {url 'http://developer.huawei.com/repo/'}
       ...
    }
}

app目录build.gradle中修改:

  xxxxxImplementation WB.fixVersions('AD:Huawei')

注意事项

混淆过滤

集成测试

通过HuaweiAgent 和 HuaweiNativeAgent 、ADLog过滤日志查看广告状态,或者直接通过弹出的广告进行判断

最后更新于

这有帮助吗?