在 iOS 中实现奖励广告
Implement rewarded ads in your iOS app. Load ad content, display it through Objective-C or Swift code, and use a delegate to manage ad events and reward logic.
阅读时间 1 分钟最后更新 2 days ago
对观看广告的玩家进行奖励可以增加用户参与度,从而带来更高收入。例如,游戏可以用游戏币, 消耗品, 额外生命数量或经验倍增法宝来奖励用户。如需了解如何有效设计奖励广告的更多信息,请参阅变现策略指南。 要奖励用户看完视频广告,请确保您的
show
然后在- (IBAction)showRewardedAd:(UIButton *)sender { [UnityAds show:self placementId:@"Rewarded_iOS" showDelegate:self]; }
unityAdsShowComplete
后续步骤:请参阅关于在 iOS 中实现横幅广告的文档以扩展您的实现。#pragma mark: UnityAdsShowDelegate - (void)unityAdsShowComplete:(NSString *)placementId withFinishState:(UnityAdsShowCompletionState)state { NSLog(@" - UnityAdsShowDelegate unityAdsShowComplete %@ %ld", placementId, state); if ([placementId isEqualToString:@"Rewarded_iOS"] && state == kUnityShowCompletionStateCompleted) { // Reward the user. } }