- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
因此,在尝试在 Xcode 中将图表提升加载到我的非弧形 iOS 应用程序一周之后,我将开始问一些非常愚蠢的问题。我的 appdelegate 中的代码是:
(void)applicationDidBecomeActive:(UIApplication *)application {
[[CCDirector sharedDirector] resume];
Chartboost *cb = [Chartboost sharedChartboost];
cb.appId = @"530dd707f8975c182ae2c691";
cb.appSignature = @"0d8726e69c911a182b0cefac4eca36f692355725";
// Required for use of delegate methods. See "Advanced Topics" section below.
cb.delegate = self;
// Begin a user session. Must not be dependent on user actions or any prior network requests.
// Must be called every time your app becomes active.
[cb startSession];
[cb showMoreApps];
[cb cacheInterstitial:@"Play Again"];
[cb showInterstitial:@"Play Again"];
// Show an interstitial
[cb cacheInterstitial:@"Highscores"];
[cb showInterstitial:@"Highscores"];
当我启动应用程序时,是的,我看到了测试广告,这一切都很好,但我无法让它在整个游戏中显示应用程序或让这些插页式广告发挥作用。
所以我的第一个问题:随机广告是否会出现在整个应用程序中(但仅当游戏上传到应用程序商店而不是通过测试模式时)
其次,有人可以解释一下这个节目的间隙位置吗?我已经阅读了很多文档,甚至浏览了图表提升的示例,它们只链接到按钮而不是,例如,当我在游戏中死了然后我想要一个广告出现时。所以有人可以在这里解释如何实现这些间隙外观,因为我的“再次玩”和“高分”似乎什么都不做(是的,我已经添加了一个事件逻辑,但是当玩家死亡时仍然没有广告显示屏幕进入高分页面
最佳答案
一些事情:
广告将出现在整个应用程序中,不是随机出现,而是出现在您放置它们的位置。
这些位置只是供您自己引用的名称。您仍然需要将 showInterstitial
代码放在正确的位置,以便它在您需要时显示。例如,当您的玩家死亡时,您应该调用 [cb showInterstitial:@"play again "];
当玩家导航到高分页面时,您调用 [cb showInterstitial:@"highscores"];
。
位置名称可以是任何内容:location1
、location2
或play again
、highscores
...其实并不重要。但是你应该调用[cb showInterstitial:@"play again"];
只再次播放,并且[cb showInterstitial:@"highscores"];
仅 当玩家查看高分屏幕时。在应用中完成所有设置后,您可以通过仪表板打开/关闭插页式广告。
最后,您不应该紧接着调用 cacheInterstitial
和 showInterstitial
。这可能会导致竞争条件并产生意外结果。只需在启动时调用 cacheInterstitial
,然后在应用的其他任何地方调用 showInterstitial
。
如果您有任何其他问题,请随时发送电子邮件至 support@chartboost.com
完全披露:我在 Chartboost 工作
关于ios - 将插页式广告添加到 chartboost,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22115780/
集成 chartoost SDK 进入 iPhone 游戏。 (横向游戏) #define CHARTBOOST_ID @"55c9f216f6cd4572f3975566" #define CHAR
在新版Chartboost iOS SDK中,showInterstitial会显示视频或图片Interstitial,如何让showInterstitial显示图片Interstital & sho
期望:当委托(delegate)方法调用时我想做点什么观察到:委托(delegate)方法没有成功调用广告在屏幕上的显示错误代码:Chartboost.delegate=self 错误:类型“Char
因此,在尝试在 Xcode 中将图表提升加载到我的非弧形 iOS 应用程序一周之后,我将开始问一些非常愚蠢的问题。我的 appdelegate 中的代码是: (void)applicationDidB
当我想在 iOS 的游戏结束事件上显示插页式广告时,我调用此函数: [[Chartboost sharedChartboost] showInterstitial:CBLocationGameOver
谁能解释一下如何统一使用 Chartboost sdk。我已经下载了 sdk 并在我的项目中,但我需要知道如何开始以及如何使用内置方法进行编程。我还想知道如何测试广告是否在我的设备上运行 最佳答案 C
我正在尝试将 Chartboost 工具集成到我们的游戏中。 我们使用以下工具进行开发。 Xcode 5.0.2。 最新的 ChartBoost 库。 部署目标是 iOS 6.1。 基础 SDK 为
在我的 Swift iOS 游戏中,我有一个在玩家失败后显示的按钮,该按钮显示来自 Chartboost 的奖励广告。问题是,有时我会在广告检索时收到错误(错误代码 6),即“无可用广告”。所以我所在
我在 applicationDidBecomeActive 调用 Chartboost interstitial。我的游戏使用 s Game Center,有时 GC 授权窗口会在 Chartboos
我正在使用 adobe air native 扩展程序在我的游戏中显示广告。我在主菜单上显示广告,有几个按钮,如开始游戏、关于。但在调用函数 showInterstitial 后显示广告需要一些时间。
我在 Cocos2d-X iPhone 游戏中使用了 Chartboost 广告。 当 revmob 横幅打开时,Chartboost 全屏广告有时会向上移动。无法关闭。 截图如下: 代码: [
我在 Chartboost 中为我的 iOS 应用程序添加了我的应用程序。但是错误地创建了两个应用程序。现在我找不到删除它的方法。请问有什么办法可以删除吗? 最佳答案 要从 Chartboost 删除
我有几个关于在我的 Swift 应用中使用 chartboost 的问题。我没有发现他们的文档有多大帮助,因为它主要引用了 Objective-C,当我通过电子邮件发送他们的支持时,他们只是向我发送了
我一直在尝试将 Objective C Chartboost SDK 集成到 Swift 项目中,方法是按照他们网站上的教程进行操作,并通过使用桥接头等尽我所知使其适应 swift。不幸的是,当我运行
我现在正在我的 Android 应用中集成许多广告服务,现在是使用 Chartboost 的时候了。 我刚刚集成了 AdMob、Ironsource、InMobi、MoPub、Vungle、Unity
我已经集成了来自https://answers.chartboost.com/hc/en-us/articles/201220095-iOS-Integration的所有chartboost 但我的
我正在尝试使用以下指南将 Chartboost(最新的 SDK)集成到 Mopub 中。 https://github.com/mopub/mopub-android-sdk/wiki/Integra
目前正在使用 Unity3D 并正在集成 Chartboost 插件来展示广告。在 Android 设备上(在三星平板电脑和 kindle fire 设备上测试过),广告出现了,但我似乎无法使用 X
尝试使用 Chartboost Android SDK 编译项目时出现混淆错误: [proguard] Unexpected error while editing code: [proguard
如何更改 Chartboost 委托(delegate)。看来它只能在初始化时设置一次。如果我想在 init 之后更改它怎么办?我只是再次初始化吗? [Chartboost startWithAppI
我是一名优秀的程序员,十分优秀!