ToBid 自定义接入优推 ADN SDK 说明文档
大约 3 分钟
ToBid 自定义接入优推 ADN SDK 说明文档
参考链接:
优推ADN接入文档:
优推adn接入文档:https://lemon.gameley.com/flowdocs/
ToBid聚合自定义广告网络文档:
Tobid聚合提供的自定义广告网络文档:自定义广告网络 | Sigmob
优推自定义适配器接入示例:
优推adn适配器参考Demo-Android:优推自定义适配器接入ToBid聚合示例Demo
优推adn适配器参考Demo-IOS:优推自定义适配器接入ToBid聚合示例Demo
ToBid自定义聚合适配器接入说明:
ToBid聚合提供的适配器接入参考文档-Android:自定义适配器接入说明 | Sigmob
ToBid聚合提供的适配器接入参考文档-IOS:自定义适配器接入说明 | Sigmob
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 {
//tobid
implementation(name: 'yt-adapter-tobid', ext: 'aar')
}
ToBid 适配器地址:https://gameley.coding.net/public/youtuiadsdk/adn_network_tobid_aar/git/files
初始化:com.alliance.ssp.adapter.tobid.custom.YCustomerProxy
激励视频:com.alliance.ssp.adapter.tobid.custom.YCustomerRewardAdapter
开屏广告:com.alliance.ssp.adapter.tobid.custom.YCustomerSplashAdapter
插屏广告:com.alliance.ssp.adapter.tobid.custom.YCustomerInterstitialAdapter
原生广告:com.alliance.ssp.adapter.tobid.custom.YCustomerFeedAdapter
横幅广告:com.alliance.ssp.adapter.tobid.custom.YCustomerBannerAdapter
在代码位ID中填写从优推变现平台获得的代码位id(placementid)
//模板渲染:
{"isExpressAd":true,"width":"360"}
isExpressAd:true代表是模板渲染,信息流必传;width是广告宽度,单位是dp,必传。
//自渲染:
{"isExpressAd":false}
isExpressAd:false代表是自渲染,信息流必传。