Implementing rewarded ads in iOS

Rewarding players for watching ads increases user engagement, resulting in higher revenue. For example, games may reward players with in-game currency, consumables, additional lives, or experience-multipliers. For more information on how to effectively design your rewarded ads, see the monetization strategy guide.

To reward players for completing a video ad, make sure the Ad Unit ID used in your show method matches the desired rewarded Ad Unit ID:

Copy
- (IBAction)showRewardedAd:(UIButton *)sender {   
    [UnityAds show:self placementId:@"Rewarded_iOS" showDelegate:self];
}

Then implement your reward functionality in the unityAdsShowComplete callback method:

Copy
#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.
    }
}

Next steps: See documentation on implementing banner ads in iOS to expand your implementation.