wuzuqing / TogetherAd

广告聚合

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TogetherAd

API

TogetherAd 是由 Kotlin 编写的 Android 广告聚合开源项目。

能够帮助 Android 开发者快速便捷灵活接入并使用 国内多家主流广告 SDK。

TogetherAd 也是一种将各个广告提供商组件化处理的解决方案。

默认提供了三家广告提供商:字节的穿山甲腾讯的优量汇百度的百青藤

如果这三家满足不了你的需求,还需要其他家广告提供商,可参考扩展文档

TogetherAd 也提供了很多自定义功能,比如:按权重分发广告失败切换超时时间自定义图片加载器热启动开屏广告解决方案等...

安装 Demo

微信扫描底部二维码,回复 apk 可下载 Demo Apk 尝鲜

Gradle 添加依赖

项目根目录下的 build.gradle 文件中添加 JitPack 仓库

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

core是必选,其他3个根据自身需求任选1 ~ 3个组合搭配

dependencies {

    //核心库( 必要 )
    implementation 'com.github.ifmvo.TogetherAd:core:5.0.6'
    
    //优量汇( 腾讯广点通 )可选
    implementation 'com.github.ifmvo.TogetherAd:gdt:5.0.6'
    
    //穿山甲( 头条 )可选
    implementation 'com.github.ifmvo.TogetherAd:csj:5.0.6'
    
    //百青藤 ( 百度 Mob ) 可选
    implementation 'com.github.ifmvo.TogetherAd:baidu:5.0.6'

}

对应版本:穿山甲3.7.0.1;优量汇4.362.1232;百度5.91

使用方法

混淆 proguard-rules.pro

资源库中已自带混淆规则,通常情况下无需手动配置。

当然你也可以点击这里查看每个资源库的混淆规则: coregdtcsjbaidu

相关文档收集

有疑问?

微信扫描下面二维码, 关注后点击联系我 可邀请进微信交流群,更多大佬为你答疑。

License

MIT License

Copyright (c) 2021 陈铭卓

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

广告聚合

License:MIT License


Languages

Language:Kotlin 91.7%Language:Java 8.3%