2 Star 0 Fork 0

杭州艾狄墨搏信息服务有限公司 / ToponAdapterTianmuDemo-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 Topon Adatpter Android Sdk——接入文档

1. 概述

1.1 概述

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

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

2. SDK集成

2.1 添加仓库

allprojects {
    repositories {
        ...
        // 添加以下仓库地址
        maven { url "https://maven.admobile.top/repository/maven-releases/" }
        ...
    }
}

2.2 添加混淆

# 天目
-keep class com.tianmu.**{ *; }
-keep class tianmu.com.** { *; }
-keep interface tianmu.com.** { *; }

2.3 添加依赖

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

// 天目适配topon适配器,根据topon自定义广告平台编写
// topon自定义广告平台文档https://docs.toponad.com/#/zh-cn/android/NetworkAccess/customnetwork/customnetwork
implementation project(':tianmuadapter')

2.4 架构

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

3. topon后台设置

3.1 路径

激励视频com.tianmu.toponadaptertianmu.TianmuRewardAdapter
插屏com.tianmu.toponadaptertianmu.TianmuInterstitialAdapter
横幅com.tianmu.toponadaptertianmu.TianmuBannerAdapter
原生信息流模版):com.tianmu.toponadaptertianmu.TianmuNativeAdapter
开屏com.tianmu.toponadaptertianmu.TianmuSplashAdapter

3.1 编辑广告源参数

{"app_id":"天目appid","slot_id":"广告位"}

4. oaid

4.1 如果开发者自己有接入oaid,请在TianmuInitManager中初始化天目时自行传入oaid,保证oaid可正常获取。

TianmuSDK.getInstance().init(context, new TianmuInitConfig.Builder()
        ...
        .setTianmuCustomController(new TianmuCustomController() {
            @Override
            public String getDevOaid() {
                //TODO 补充获取oaid具体方法,否则会影响广告收益
                return getOaid();
            }

            @Override
            public String getDevVaid() {
                //TODO 补充获取vaid具体方法
                return getVaid();
            }
        })
        ...
        .build(), new TianmuInitListener() {
    @Override
    public void onInitFinished() {
        mHasInit = true;
        callbackResult(true, null, null);
    }

    @Override
    public void onInitFailed(TianmuError tianmuError) {
        callbackResult(false, tianmuError.getCode() + "", tianmuError.getError());
    }
});

5. 注意

5.1 请提供正确的正式和测试用SHA1值,保证天目初始化正常。

5.2 可通过在编译器中输入TianmuLog,查看天目渠道异常信息。

6. 关于Client Bidding

当前版本天目Adapter,已对接Topon Client Bidding功能,可以参考demo。

7. Topon版本6.2.71

Empty file

About

No description expand collapse
Java
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/admobile/toponadaptertianmudemo.git
git@gitee.com:admobile/toponadaptertianmudemo.git
admobile
toponadaptertianmudemo
ToponAdapterTianmuDemo-Android
master

Search