3 Star 1 Fork 0

杭州艾狄墨搏信息服务有限公司/GromoreAdapterTianmuDemo-Android

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

Tianmu Gromore Adatpter Android Sdk——接入文档

1. 概述

1.1 概述

尊敬的开发者朋友,欢迎您使用Tianmu广告SDK。通过本文档,您可以快速完成将天目接入Gromore。

目前已适配天目SDK广告类型 :开屏、Banner、插屏、自渲染信息、模板信息流、激励视频

注意:本SDK仅支持中国大陆地区;如需发布到Google Play,请勿引入本SDK及相关依赖文件。

2. SDK集成

2.1 添加仓库

allprojects {
    repositories {
        ...
        // 添加天目渠道仓库地址
        maven { url "https://maven.admobile.top/repository/maven-releases/" }
        ...
    }
}

2.2 添加混淆

# 天目SDK需要的混淆
-keep class com.tianmu.**{ *; }
-keep class tianmu.com.** { *; }
-keep interface tianmu.com.** { *; }

# 天目Gromore适配器需要的混淆
-keep class com.tianmu.ad.sdk.mediation.adapter.**{ *; }

2.3 添加依赖

// 天目文档https://gitee.com/admobile/tianmu-advertising-sdk-android
implementation 'cn.admobiletop.adsuyi.ad.third:tianmu:2.2.3.1'

// 天目适配gromore适配器,根据gromore自定义广告平台编写
// https://www.csjplatform.com/union/media/union/download/detail?id=142&docId=28003&osType=android
implementation project(':tianmuadapter')

2.4 架构

ndk {
    // 设置支持的SO库架构,暂不支持x86
    abiFilters 'armeabi-v7a', 'arm64-v8a'
}

3. Gromore后台设置

3.1 路径

初始化类名com.tianmu.ad.sdk.mediation.adapter.CustomerAdapterConfig
开屏com.tianmu.ad.sdk.mediation.adapter.CustomerSplashAdapter
Bannercom.tianmu.ad.sdk.mediation.adapter.CustomerBannerAdapter
插屏广告com.tianmu.ad.sdk.mediation.adapter.CustomerInterstitialAdapter
信息流com.tianmu.ad.sdk.mediation.adapter.CustomerNativeAdapter
激励视频com.tianmu.ad.sdk.mediation.adapter.CustomerRewardAdapter

3.2 其他个性化配置

请参考Gromore自定义平台接入文档:
https://www.csjplatform.com/union/media/union/download/detail?id=142&docId=28003&osType=android

4. oaid

4.1 请在初始化天目时,在TianmuCustomController中自行传入oaid,保证oaid可正常获取。oaid的填充率将会影响广告收益,请务必仔细对接。

    TianmuInitConfig initConfig = new TianmuInitConfig.Builder()
            .appId(gmCustomInitConfig.getAppId())
            .debug(BuildConfig.DEBUG)
            //【慎改】是否同意隐私政策,将禁用一切设备信息读起严重影响收益
            .agreePrivacyStrategy(true)
            .isCanUseLocation(true)
            .isCanUsePhoneState(true)
            .setTianmuCustomController(new TianmuCustomController() {
                @Override
                public String getDevOaid() {
                  // 必传:传入自己项目中的OAID值,OAID的传入与否将会影响广告收益
                    return getOaid();
                }

                @Override
                public String getDevVaid() {
                  // 选传:建议传入自己项目中的vaid值(如有)
                    return getVaid();
                }
            })
            .build();

    TianmuSDK.getInstance().init(context, initConfig, new TianmuInitListener() {
        @Override
        public void onInitFinished() {
            Log.i(TAG, "天目初始化成功" + Thread.currentThread().getName());
        }

        @Override
        public void onInitFailed(TianmuError tianmuError) {
            Log.i(TAG, "天目初始化失败" + Thread.currentThread().getName());
        }
    });

5. 注意

5.1 请提供项目签名文件正式和测试用SHA1值,保证天目初始化正常。
5.2 可通过在编译器日志过滤框中输入TianmuLog,查看天目渠道请求和异常等相关信息。

6. 关于竞价

当前版本天目Adapter,已对接Gromore竞价功能,对接请参考demo。

7. 错误码

天目错误码地址

Empty file

About

Tianmu广告SDK接入Gromore演示Demo expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/admobile/gromoreadapter-tianmu-android.git
git@gitee.com:admobile/gromoreadapter-tianmu-android.git
admobile
gromoreadapter-tianmu-android
GromoreAdapterTianmuDemo-Android
master

Search

344bd9b3 5694891 D2dac590 5694891