# AnyThinkLeyoAdapterDemo **Repository Path**: happytour/AnyThinkLeyoAdapterDemo ## Basic Information - **Project Name**: AnyThinkLeyoAdapterDemo - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-30 - **Last Updated**: 2026-01-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TopOn-Leyou广告平台Adapter接入文档 ## 将Leyou广告平台集成进TopOn聚合 参考官方文档[第三方广告平台接入指南](https://docs.toponad.com/#/zh-cn/android/NetworkAccess/customnetwork/customnetwork),其中Step3跟Step4需要注意如下 ### [Step3](https://docs.toponad.com/#/zh-cn/android/NetworkAccess/customnetwork/customnetwork?id=_31-%e6%b7%bb%e5%8a%a0%e8%87%aa%e5%ae%9a%e4%b9%89%e5%b9%bf%e5%91%8a%e5%b9%b3%e5%8f%b0) 填写**自定义广告平台**各个广告类型的**Adapter类名**(您需要根据TopOn提供的接入规范自行实现自定义广告平台的Adapter类。Adapter类名由您自行定义) **激励视频:LeyouRewardedVideoAdapter** **插屏:LeyouInterstitialAdapter** **开屏:LeyouSplashAdapter** **横幅:LeyouBannerAdapter** **信息流:LeyouNativeAdapter** ### [Step4](https://docs.toponad.com/#/zh-cn/android/NetworkAccess/customnetwork/customnetwork?id=step4-%e6%b7%bb%e5%8a%a0%e8%87%aa%e5%ae%9a%e4%b9%89%e5%b9%bf%e5%91%8a%e5%b9%b3%e5%8f%b0%e7%9a%84%e5%b9%bf%e5%91%8a%e6%ba%90) 广告源的**参数**必须符合**json格式** ```json {"slot_id":"从Leyou申请的代码位ID","app_id":"从Leyou申请的APPID"} ``` 信息流自渲染 ```json {"slot_id":"从Leyou申请的代码位ID","app_id":"从Leyou申请的APPID","ly_express":"0"} ``` 信息流模版 ```json {"slot_id":"从Leyou申请的代码位ID","app_id":"从Leyou申请的APPID","ly_express":"1"} ``` ## AnyThinkLeyoAdapter接入 ### pod引入 ```ruby # Uncomment the next line to define a global platform for your project source 'https://github.com/CocoaPods/Specs.git' # 添加LYSpecs私库 source 'https://gitee.com/happytour/LYSpecs.git' platform :ios, '13.0' workspace 'AnyThinkLeyoAdapterDemo' project 'AnyThinkLeyoAdapterDemo' target 'AnyThinkLeyoAdapterDemo' do pod 'AnyThinkiOS','6.5.34' pod 'AnyThinkMediationAdxSmartdigimktCNAdapter','6.5.41.0' pod 'AnyThinkLeyoAdapter', '1.7.0' pod 'Ads-Fusion-CN-Beta','6.8.1.7', :subspecs => ['BUAdSDK', 'CSJMediation'] #不与Ads-CN-Beta同时存在 # pod 'Ads-Fusion-CN-Beta', :path => 'ThirdPartySDK/Ads-Fusion-CN-Beta/7.0.0.3/', :subspecs => ['BUAdSDK', 'CSJMediation'] pod 'GDTMobSDK', '4.15.41' pod 'SigmobAd-iOS', '4.9.1' pod 'BaiduMobAdSDK', '5.394' pod 'KSAdSDK', '4.6.30.1' pod 'JADYun', '2.6.8' # KSAdSDKFull,没有提交到官方库,需要引入LYSpecs私库拉取(仅在需要引入《快手内容广告》时才需要。) # pod 'fork-KSAdSDKFull', '4.6.30.1' pod 'LYAdSDK', '3.0.58' pod 'LYAdSDKAdapterForCSJ', '3.1.1' # 穿山甲支持 pod 'LYAdSDKAdapterForGDT', '3.1.1' # 广点通支持 pod 'LYAdSDKAdapterForKS', '3.1.2' # 快手AD支持 # pod 'LYAdSDKAdapterForKSContent', '3.1.1' # 快手内容支持,需要引入支持快手内容的快手 SDK pod 'LYAdSDKAdapterForBD', '3.1.1' # 百度支持 pod 'LYAdSDKAdapterForJD', '3.1.1' # 京东支持 pod 'LYAdSDKAdapterForGromore', '3.1.1' # 穿山甲融合支持 pod 'LYAdSDKAdapterForSIG', '3.1.1' # SigMob 支持 pod 'Masonry' pod 'SDWebImage' project 'AnyThinkLeyoAdapterDemo' end ``` ### 手动引入 [**AnyThinkLeyoAdapter.framework**下载](https://gitee.com/happytour/AnyThinkLeyoAdapter.framework/repository/archive/1.7.0.zip) 需要依赖的frameworks = ["Foundation", "UIKit", "MobileCoreServices", "CoreGraphics", "Security", "SystemConfiguration", "CoreTelephony", "AdSupport", "CoreData", "StoreKit", "WebKit", "Accelerate"] ### iOS集成AnyThinkSDK 参考[AnyThinkSDK文档](https://docs.toponad.com/#/zh-cn/ios/ios_doc/ios_sdk_config_access)