本文介绍了Chartboost在iPhone项目/ Chartboost在iOS中的用法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将 sdk整合到iPhone游戏中。 (风景游戏)

Integrated chartoost sdk in to iPhone game. (Landscape game)

#define CHARTBOOST_ID @"55c9f216f6cd4572f3975566"
#define CHARTBOOST_SIG @"9cc8122cfb05bfe0e171f46990180147e8b6f23c"

[Chartboost startWithAppId:CHARTBOOST_ID appSignature:CHARTBOOST_SIG delegate:self];

[Chartboost showInterstitial:CBLocationHomeScreen];

但不显示任何广告。帮助我找到Xcode中的设置或图表提升中的帐户有什么问题。

But it is not displaying any ads. Help me to find what's wrong with settings in Xcode or account in chart boost.

推荐答案

。我将实现中所述的委托方法,特别是 didFail method:

Perhaps there has been an error in loading them. I would implement the delegate methods as described in the docs, particularly the didFail method:

// Called before requesting an interstitial from the back-end
- (BOOL)shouldRequestInterstitial:(NSString *)location;

// Called when an interstitial has been received, before it is presented on screen
// Return NO if showing an interstitial is currently inappropriate, for example if the user has entered the main game mode
- (BOOL)shouldDisplayInterstitial:(NSString *)location;

// Called when the user dismisses the interstitial
- (void)didDismissInterstitial:(NSString *)location;

// Same as above, but only called when dismissed for a close
- (void)didCloseInterstitial:(NSString *)location;

// Same as above, but only called when dismissed for a click
- (void)didClickInterstitial:(NSString *)location;

// Called when an interstitial has failed to come back from the server
// This may be due to network connection or that no interstitial is available for that user
- (void)didFailToLoadInterstitial:(NSString *)location;

这篇关于Chartboost在iPhone项目/ Chartboost在iOS中的用法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 10:43