跳至主要內容

Tradplus 自定义接入优推 ADN SDK 说明文档

大约 2 分钟

Tradplus 自定义接入优推 ADN SDK 说明文档

参考链接:

优推ADN接入文档:

优推adn接入文档:https://lemon.gameley.com/flowdocs/open in new window

Tradplus 聚合自定义广告网络文档(需要登陆后方可查看):

Tradplus聚合提供的自定义广告网络文档:https://docs.tradplusad.com/docs/tradplussdk_android_doc_v6/tradplus_sdk_overview/customnetwork/infoopen in new window

优推自定义适配器接入示例:

优推adn适配器参考Demo:优推自定义适配器接入Tradplus聚合适配器Demo-Android端open in new window

dependencies {
    implementation 'com.squareup.okhttp3:okhttp:3.12.0'
    implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0'
    implementation 'com.google.code.gson:gson:2.8.0'
    //Glide
    implementation 'com.github.bumptech.glide:glide:4.7.1'
    //优推
    implementation(name: 'adalliance_adn_sdk.${Version}', ext: 'aar')

    //commons-codec从3.11.0不再使用
    implementation 'commons-codec:commons-codec:1.15'
}

dependencies {
    implementation(name: 'yt-adapter-tradplus', ext: 'aar')
}

tradplus适配器地址:

https://gameley.coding.net/public/youtuiadsdk/adn_network_tradplus_aar/git/filesopen in new window

img/png

img/png

将下面的Adapter填入。

开屏位置填写:
com.alliance.ssp.adapter.tradplus.custom.YTCustomerSplashAdapter
激励位置填写:
com.alliance.ssp.adapter.tradplus.custom.YTCustomerRewardAdapter
插屏位置填写:
com.alliance.ssp.adapter.tradplus.custom.YTCustomerInterstitialAdapter
信息流位置填写:
com.alliance.ssp.adapter.tradplus.custom.YTCustomerFeedAdapter
横幅位置填写:
com.alliance.ssp.adapter.tradplus.custom.YTCustomerBannerAdapter

最终如下图

img/png

点击确定按钮,保存

打开添加广告源

img/png

从优推变现平台获取appId, 及对应的代码位Id(placementId)

img/png

{"app_id":"123456","unit_id":"1234567890"}

注:将app_id、unit_id更换为自己的

unit_type:渲染类型,信息流必填(如果是自渲染则传native,模板渲染传express)
width:广告宽度,信息流模板渲染必填,且必须大于0,单位是dp

{"app_id":"123456","unit_id":"1234567890","unit_type":"express","width":"340"}

img/png

点击确定保存。

上次编辑于: