Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在这个 文档中它说:“缓存的插页式广告在显示后会从内存中删除。如果您计划为特定位置显示另一个插页式广告,则应再次缓存该位置”
第 3 页 / 缓存
但是在我遇到的每个示例中,缓存只有一次,即使在 chartboost示例项目中也是如此
所以问题是:我应该[cb cacheInterstitial:@"Pause screen"];在开始时只使用一次,还是应该在展示缓存广告的时候多次使用?
[cb cacheInterstitial:@"Pause screen"];
显示缓存的广告绝对是最好的用户体验,所以我建议每次都这样做!
如果您查看- (void)didDismissInterstitial:(NSString *)location示例项目中的方法,您会发现它们再次缓存。
- (void)didDismissInterstitial:(NSString *)location
每次单击或关闭插页式广告时都会触发此委托方法,因此cacheInterstitial:location在此处添加将立即为该位置重新缓存插页式广告!
cacheInterstitial:location
初始化 cb 对象后不要忘记添加cb.delegate = self;,以确保委托方法正常工作。
cb.delegate = self;
全面披露:我为 Chartboost 工作。