0

我有一个 iPhone 应用程序,在其中成功集成了revmob SDK 和chartboost SDK,但playhaven SDK 不起作用。

我已经下载了完整的 SDK,在这个旧的 Stack Overflow Question中也提到了这里。我仍然没有在我的应用程序中看到广告。有什么好的教程吗?

4

1 回答 1

1

我的 PlayHavan 工作示例:https ://app.box.com/s/lc2p8jhngn5o8hxeuw3y

代码:

#define PLAYHAVAN_TOKEN @"e1aa8bfe19d74ba3a30d9caa7f69a083"
#define PLAYHAVAN_SECRET @"e915e3ca790546b88ab252d032876b6a"  

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
   [self initPlayHavan];
   [self showPlayHavanFullScreenAds];
}


-(void) initPlayHavan
{
    [[PHPublisherContentRequest requestForApp: PLAYHAVAN_TOKEN secret: PLAYHAVAN_SECRET placement:@"game_launch" delegate:self] preload]; //level_complete

    _notificationView = [[PHNotificationView alloc] initWithApp:PLAYHAVAN_TOKEN secret:PLAYHAVAN_SECRET placement:@"game_launch"];
    _notificationView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
}


-(void)showPlayHavanFullScreenAds
{
  PHPublisherContentRequest *request = [PHPublisherContentRequest requestForApp: PLAYHAVAN_TOKEN secret: PLAYHAVAN_SECRET placement:@"game_launch" delegate:self];
    [request send];
}

确保您添加了展示位置game_launch并为此展示位置分配了插页式广告。

于 2013-07-22T02:59:49.087 回答