同时集成google Ima SDK和IMA DAI SDK
Integration google Ima SDK and IMA DAI SDK at the same time
我想创建一个 ios 应用程序,它将包含一个视频播放器及其显示 IMA DAI 广告和 IMA 广告。
阅读两种类型的文档后
- https://developers.google.com/interactive-media-ads/docs/sdks/ios/dai
- https://developers.google.com/interactive-media-ads/docs/sdks/ios/client-side
我可以单独玩,我想要实现的是同时显示 ADS(IMA DAI 广告和 IMA广告)在同一个播放器上。
我目前正在做的是:加载 IMA 广告,一旦广告完成,我将停止它,然后隐藏播放器并使用不同的播放器加载 DAI 广告。
但是加载需要时间,我不确定这是正确的方法,还有其他解决方案吗?
谢谢
根据documentation,两者响应不同的用例:
- IMA 客户端 SDK : 你自己处理你的播放器(它只带来广告服务器的能力)
With IMA client-side SDKs, you maintain control of content video
playback, while the SDK handles ad playback. Ads play in a separate
video player positioned on top of the app's content video player.
- IMA DAI SDK:您从 Google 寻找完整的解决方案(同时处理播放器和广告服务器)
With IMA DAI SDKs, apps make a stream request for ad and content
video—either VOD or live content. The SDK then returns a combined
video stream, so that you don't have to manage switching between ad
and content video within your app.
恐怕你将不得不做出选择。如果你寻找更广泛的需求,你可能会想要选择 DAI(再次here)。
我想创建一个 ios 应用程序,它将包含一个视频播放器及其显示 IMA DAI 广告和 IMA 广告。
阅读两种类型的文档后
- https://developers.google.com/interactive-media-ads/docs/sdks/ios/dai
- https://developers.google.com/interactive-media-ads/docs/sdks/ios/client-side
我可以单独玩,我想要实现的是同时显示 ADS(IMA DAI 广告和 IMA广告)在同一个播放器上。
我目前正在做的是:加载 IMA 广告,一旦广告完成,我将停止它,然后隐藏播放器并使用不同的播放器加载 DAI 广告。
但是加载需要时间,我不确定这是正确的方法,还有其他解决方案吗?
谢谢
根据documentation,两者响应不同的用例:
- IMA 客户端 SDK : 你自己处理你的播放器(它只带来广告服务器的能力)
With IMA client-side SDKs, you maintain control of content video playback, while the SDK handles ad playback. Ads play in a separate video player positioned on top of the app's content video player.
- IMA DAI SDK:您从 Google 寻找完整的解决方案(同时处理播放器和广告服务器)
With IMA DAI SDKs, apps make a stream request for ad and content video—either VOD or live content. The SDK then returns a combined video stream, so that you don't have to manage switching between ad and content video within your app.
恐怕你将不得不做出选择。如果你寻找更广泛的需求,你可能会想要选择 DAI(再次here)。