集成到Gromore
集成到Gromore
此章节将演示如何将ZJSDK
集成到Gromore 自定义 ADN
中
支持类型
广告类型 | 支持情况 | 客户端竞价 | 渲染类型 |
---|---|---|---|
开屏 | √ | √ | / |
激励视频 | √ | √ | / |
插全屏广告 | √ | √ | 插屏 & 全屏 |
Draw信息流 | √ | / | ADN模板渲染 |
信息流 | √ | √ | 模板渲染 |
Banner | √ | √ | 模板渲染 |
后台配置
自定义网络路径
类型 | 类名 |
---|---|
初始化类名 | ZJConfigAdapter |
开屏 | ZJSplashAdapter |
激励视频 | ZJRewardedVideoAdapter |
插屏广告 | ZJInterstitialAdapter |
全屏广告 | ZJFullScreenVideoAdapter(穿山甲目前不推荐使用,请使用插屏广告) |
draw信息流 | ZJDrawAdapter |
信息流 | ZJExpressFeedAdapter |
Banner | ZJBannerAdapter |
客户端配置
集成 SDK
联系我们获取对应版本的 SDK 包,将包内提供的CustomAdapter_ZJ
文件夹下所有 .h
和 .m
添加到工程中, 并且正确导入ZJSDK
的SDK依赖,详细使用方式请参考ZJADNAdapter
示例
初始化参数透传
/******************** 初始化 ********************/
BUAdSDKConfiguration *configuration = [BUAdSDKConfiguration configuration];
// 是否启动日志打印 0为不启动日志打印 1为启动日志打印
configuration.debugLog = @(1);
// appID为在gromore注册的id,获取appID请联系我们运营人员
configuration.appID = @"5621540";
// 设置使用聚合
configuration.useMediation = YES;
// 隐私合规配置
// 是否禁止CAID
configuration.mediation.forbiddenCAID = @(0);
// 是否限制个性化广告
configuration.mediation.limitPersonalAds = @(0);
// 是否限制程序化广告
configuration.mediation.limitProgrammaticAds = @(0);
// 主题模式
configuration.themeStatus = @(BUAdSDKThemeStatus_Normal);
// 初始化
[BUAdSDKManager startWithAsyncCompletionHandler:^(BOOL success, NSError *error) {
if (success) {
// 处理成功之后的逻辑
NSLog(@"========SDK初始化成功");
}
}];
演示代码
- 开屏广告请参考
SplashAdTestViewController
- 激励视频广告请参考
RewardVideoAdTestViewController
- 插屏广告请参考
InterstitialTestViewController
- 信息流广告请参考
ExpressFeedTestViewController
- banner广告请参考
BannerAdTestViewController
- 视频流广告请参考
VideoContentAdTestViewController