我有一个iPhone应用程序,在这个应用程序中,我成功地集成了更新 SDK和chartboost SDK,但是Playha威 SDK不起作用。
我已经下载了它的完整SDK,也参考了here on this old Stack Overflow Question 。我还是没看到申请表上的广告。有什么好的教程吗?
发布于 2013-07-22 02:59:49
我的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,并为此位置分配了间隙广告。
https://stackoverflow.com/questions/17250814
复制相似问题