跳至主要內容

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

大约 1 分钟

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

参考链接:

优推ADN接入文档:

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

Taku聚合自定义广告文档:

Taku聚合提供的自定义广告平台文档:https://help.takuad.com/docs/fRMh7Copen in new window

优推Adapter适配器demo:

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

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

Taku自定义Adapter类继承类说明文档:

Android:https://help.takuad.com/docs/4M5AIaopen in new window

IOS:https://help.takuad.com/docs/iHxZQZopen 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-topon', ext: 'aar')
}

Taku 适配器地址:https://gameley.coding.net/public/youtuiadsdk/adn_network_topon_aar/git/filesopen in new window

2.1.1 广告平台-新建广告平台,选择自定义平台

img/png

2.1.2 设置应用id及广告id名称

img/png

2.1.3 设置adapter类

img/png

类名如下表

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

2.2.1 聚合管理-新增广告源-选择新建的自定义广告平台
2.2.2 在图示参数位置填写对应的参数

img/png

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

img/png

上次编辑于: