xcode iphone 项目中的 Chartboost / iOS 中的 Chartboost 使用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11412496/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 00:50:21  来源:igfitidea点击:

Chartboost in iphone project / Chartboost usage in iOS

iphoneiosxcodecocos2d-iphonechartboost

提问by Guru

Integrated chartoostsdk in to iPhone game. (Landscape game)

chartoostsdk集成到iPhone 游戏中。(风景游戏)

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

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

[Chartboost showInterstitial:CBLocationHomeScreen];

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

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

Notes_Warning:

Notes_Warning:

Hi All, don't use Chartboost, instead try google Admob or other ads network. Because Chartboost - a cheater! I used Chartboost in my games, game got good ranking in Cambodia - reached #1 in Racing/games. Game got good downloads too...But Chartboost said we used many device in Cambodia and downloaded game...its not true...we are not from Cambodia...I tried to send message to Chartboost many times...but they didn't respond and suspended my account. They even didn't pay my 7463$. Really its a heart attack for us. Now we removed Chartboost and used Admob and earned our development cost from Admob easily. So avoid Chartboost avoid getting cheated!!! Truth always wins...Always do good. Be a good person but don't try to prove it. Just go away from bad cheaters!!!!

大家好,不要使用 Chartboost,而是尝试谷歌 Admob 或其他广告网络。因为 Chartboost - 骗子!我在我的游戏中使用了 Chartboost,游戏在柬埔寨获得了不错的排名 - 在赛车/游戏中排名第一。游戏也有很好的下载...但 Chartboost 说我们在柬埔寨使用了很多设备并下载了游戏...这不是真的...我们不是来自柬埔寨...我多次尝试向 Chartboost 发送消息...但是他们没有回应并暂停了我的帐户。他们甚至没有支付我的 7463 美元。对我们来说真的是心脏病发作。现在我们移除了 Chartboost 并使用了 Admob,并轻松地从 Admob 中赚取了我们的开发成本。所以避免 Chartboost 避免被骗!!!真理总是胜利......永远做好事。 做一个好人,但不要试图证明这一点。远离坏骗子!!!!

回答by Guru

Notes_Warning:

Notes_Warning:

Hi All, don't use Chartboost, instead try google Admob or other ads network. Because Chartboost - a cheater! I used Chartboost in my games, game got good ranking in Cambodia - reached #1 in Racing/games. Game got good downloads too...But Chartboost said we used many device in Cambodia and downloaded game...its not true...we are not from Cambodia...I tried to send message to Chartboost many times...but they didn't respond and suspended my account. They even didn't pay my 7463$. Really its a heart attack for us. Now we removed Chartboost and used Admob and earned our development cost from Admob easily. So avoid Chartboost avoid getting cheated!!! Truth always wins...Always do good. Be a good person but don't try to prove it. Just go away from bad cheaters!!!!

大家好,不要使用 Chartboost,而是尝试谷歌 Admob 或其他广告网络。因为Chartboost - 骗子!我在我的游戏中使用了 Chartboost,游戏在柬埔寨获得了不错的排名 - 在赛车/游戏中排名第一。游戏也有很好的下载...但 Chartboost 说我们在柬埔寨使用了很多设备并下载了游戏...这不是真的...我们不是来自柬埔寨...我多次尝试向 Chartboost 发送消息...但是他们没有回应并暂停了我的帐户。他们甚至没有支付我的 7463 美元。对我们来说真的是心脏病发作。现在我们移除了 Chartboost 并使用了 Admob,并轻松地从 Admob 中赚取了我们的开发成本。所以避免 Chartboost 避免被骗!!!真理总是胜利......永远做好事。做一个好人,但不要试图证明这一点。远离坏骗子!!!!



Now its working fine. We need to add publishing campaign in our chartboost account. Here

现在它工作正常。我们需要在我们的 chartboost 帐户中添加发布活动。这里

enter image description here

在此处输入图片说明

UPDATES:

更新:

 [Chartboost startWithAppId:CHARTBOOST_APP_ID appSignature:CHARTBOOST_APP_SIGNATURE delegate:self];
 [Chartboost  showInterstitial:CBLocationHomeScreen];

Some other way to see test Ads:

查看测试广告的其他方式:

  • Add your device UDID in publishing campaign how to add your device UDID in publishing campaignhow to add your device UDID in publishing campaign

  • Enable test mode in App settings. how to enable test mode in App settings?

  • 在发布活动中添加您的设备 UDID 如何在发布活动中添加您的设备 UDID如何在发布活动中添加您的设备 UDID

  • 在应用设置中启用测试模式。 如何在应用设置中启用测试模式?

回答by coneybeare

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

也许加载它们时出现错误。我将实现文档中描述的委托方法,特别是didFail方法:

// 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;

回答by RedYeti

It may also be because the Campaign is not filling adverts and you have not added the devices as test devices to force the adverts to be filled.

也可能是因为活动没有填充广告,并且您没有添加设备作为测试设备来强制填充广告。

This is easily missed since at first adverts may be filled - only during testing they'll just stop mysteriously.

这很容易被忽略,因为一开始可能会填充广告 - 只有在测试期间它们才会神秘地停止。

There is a setting in Chartboost:

Chartboost 中有一个设置:

Edit the Campaign you are using for testing

编辑您用于测试的营销活动

  • Under "Campaign Logic" click the "Show Test Devices" button.
  • Click "Add Test Device" to add each device.
  • Enable each device and Save the Campaign.
  • 在“Campaign Logic”下,单击“Show Test Devices”按钮。
  • 单击“添加测试设备”以添加每个设备。
  • 启用每个设备并保存活动。

(Don't forget to un-tick them when live - since I assume that missing that will mean those devices keep seeing adverts but you probably want to see how the app really behaves)

(不要忘记在直播时取消勾选它们 - 因为我认为缺少这将意味着这些设备会继续看到广告,但您可能想了解该应用程序的实际行为)

回答by Shauket Sheikh

You need to set

你需要设置

cb.delegate = self;

cb.delegate = self;