To run the example project, clone the repo, and run pod install
from the Example directory first.
OctopusSDK is available through CocoaPods. To install it, simply add the following line to your Podfile:
广告SDK安装
pod 'OctopusSDK'
百度网盘定制SDK安装
pod 'OctopusSDK/OctAdSDKNoShake'
Topon适配器SDK安装
pod 'OctopusSDK/OctToponAdapterSDK'
Topon适配器SDK配置说明
适配器名称
横幅:OctToponBannerAdapter;参数{"slot_id":"","app_id":""}
开屏:OctToponSplashAdapter;参数{"slot_id":"","app_id":"","show_bottomView":"0"}
插屏:OctToponInterstitialAdapter;参数{"slot_id":"","app_id":""}
激励视频:OctToponRewardedVideoAdapter;参数{"slot_id":"","app_id":""}
信息流模版:OctToponNativeAdapter;参数{"slot_id":"","app_id":"","is_unified":"0"}
信息流自渲染:OctToponNativeAdapter;参数{"slot_id":"","app_id":"","is_unified":"1"}
穿山甲适配器SDK安装
pod 'OctopusSDK/OctGromoreAdapterSDK'
穿山甲适配器SDK配置说明
适配器名称
参数:AppId(填写广告的appid);代码位ID(填写广告的slotid)
初始化类名:OctGromoreConfigAdapter
横幅:OctGromoreBannerAdapter
开屏:OctGromoreSplashAdapter
插屏:OctGromoreIntersititalAdapter
激励视频:OctGromoreRewardVideoAdapter
信息流模版:OctGromoreNativeAdapter
信息流自渲染:OctGromoreNativeAdapter
Amps适配器SDK安装
pod 'OctopusSDK/OctAmpsAdapterSDK'
Amps适配器SDK配置说明
Amps适配器名称
初始化类名:AMPSOCTSDKManagerAdapter
横幅:AMPSOCTBannerAdapter
开屏:AMPSOCTSplashAdapter
插屏:AMPSOCTInterstitialAdapter
激励视频:AMPSOCTRewardedVideoAdapter
信息流模版:AMPSOCTNativeExpressAdapter, AMPSOCTNativeExpressView
ToBid适配器SDK安装
pod 'OctopusSDK/OctAwmAdapterSDK'
ToBid适配器SDK配置说明
ToBid适配器名称
初始化类名:AWMOctCustomConfigAdapter
横幅:AWMOctCustomBannerAdapter
开屏:AWMOctCustomSplashAdapter
插屏:AWMOctCustomInterstitialAdapter
激励视频:AWMOctCustomRewardedVideoAdapter
信息流模版:AWMOctCustomNativeAdapter
应用id配置:key的名称是 "appID"
如果需要使用beta版SDK,可以指定git分支为main进行安装
pod 'sdk名', :git => 'https://gitee.com/zy_octopus/octopus_ios_sdk.git', :branch => 'main'
有的项目中可能会遇到类似下面的报错: -[__NSCFString Oct_方法名]: unrecognized selector sent to instance 这是由于OctCore.xcframework中的某些类别文件加载不全造成的,这里给出2种解决方案:
1。在other linker flags中,使用-force_load, 进行强制加载
-force_load
$(PROJECT_DIR)/Pods/OctopusSDK/OctopusSDK/OctCore.xcframework/ios-arm64/OctCore.framework/OctCore
2。手动将(PROJECT_DIR)/Pods/OctopusSDK/OctopusSDK/OctCore.xcframework加载到工程当中
zhaojinlong, zhaojinlong@adintl.cn
OctopusSDK is available under the MIT license. See the LICENSE file for more info.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。