【问题标题】:Google Interactive Media Ads for tvOS适用于 tvOS 的 Google 互动媒体广告
【发布时间】:2016-05-09 09:32:39
【问题描述】:

我在我的 iOS 应用程序中使用 Google 互动媒体广告。它运行良好,现在我想在我的 tvOS 应用程序中使用它们。当我为 Google 互动媒体广告添加代码时,我遇到了以下问题:

由于未捕获的异常而终止应用程序 'NSInvalidArgumentException',原因:'-[NSConcreteNotification imaMessage]:无法识别的选择器发送到实例 0x7fe4d9e0cb20'

我正在使用此代码播放广告:

- (void)requestAdsPre:(NSString *)url {
    self.adPlayerLayer = nil;
    //[self.contentPlayer.view removeFromSuperview];
    [self setupAdsLoader];

    [self setUpAdDisplayContainer];
    // Create an ad request with our ad tag, display container, and optional user context.
    IMAAdsRequest *request =
    [[IMAAdsRequest alloc] initWithAdTagUrl:url
                         adDisplayContainer:self.adDisplayContainer
                                userContext:nil];
    [self.adsLoader requestAdsWithRequest:request];
}

#pragma mark SDK Setup

- (void)setupAdsLoader {
    self.adsLoader = [[IMAAdsLoader alloc] initWithSettings:nil];
    self.adsLoader.delegate = self;
}

- (void)setUpAdDisplayContainer {
    self.adDisplayContainer =
    [[IMAAdDisplayContainer alloc] initWithAdContainer:self.videoView companionSlots:nil];
}

谁能告诉我如何在 tvOS 上使用 Google 互动媒体广告? Google 互动媒体广告适用于 iOS 和 tvOS 应用。

【问题讨论】:

  • 您是否尝试过使用适用于 tvOS 的 Google IMA SDK?我认为您在问题发布当天就发布了问题。

标签: objective-c tvos google-ima


【解决方案1】:

谷歌互动媒体广告do not support tvOS

目前 IMA SDK 不支持 tvOS。如果这种情况发生变化,我们将 在我们的blog 上发布公告并在发布页面上添加注释。

目前我知道的唯一 tvOS 广告框架是 AppLovin

【讨论】:

  • tvOS 版 Google 互动媒体广告的第一版已于 2016 年 5 月 9 日发布。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-10-25
  • 1970-01-01
  • 1970-01-01
  • 2011-09-11
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多