S2S Rewarded Callbacks
Guide for When Media Server Verification is Available for S2S Rewarded Ads
Check if the Ad Supports Server Verification
You can check this using GFPRewardedAdManager
s isAdServerVerificationEnabled
property.
This value is set correctly after the ad has been loaded.
- Objective-C
@property (nonatomic, readonly, assign) BOOL isAdServerVerificationEnabled;
Delegate Calls for Each Situation During Reward Server Callback
When the Server Reward Request Succeeds
If the verification from the server is successful, a response is returned via the following method of GFPRewardedAdManagerDelegate
- Objective-C
- Swift
-(void)rewardedAdManagerDidSuccessServerRewardVerification:(GFPRewardedAdManager *)manager;
func rewardedAdManagerDidSuccessServerRewardVerification(_ manager: GFPRewardedAdManager)
When Server Reward Verification Fails
If the verification from the server fails and the reward cannot be granted, a response is returned via the following method of GFPRewardedAdManagerDelegate
.
When this method is called, the verification will continue to fail even if retried, so you should handle it as a reward failure.
- Objective-C
- Swift
-(void)rewardedAdManager:(GFPRewardedAdManager *)manager didFailedServerRewardVerification:(GFPError *)error;
func rewardedAdManager(_ manager: GFPRewardedAdManager, didFailedServerRewardVerification error: NaverAdsServices.GFPError)
When an Error Occurs During Server Reward Request
If an unexpected error occurs during the reward verification request—such as a network issue or timeout—a response is returned via the following method of GFPRewardedAdManagerDelegate
.
In this case, you should retry the request to the verification server.
- Objective-C
- Swift
-(void)rewardedAdManager:(GFPRewardedAdManager *)manager didReceiveErrorServerRewardVerification:(GFPError *)error;
func rewardedAdManager(_ manager: GFPRewardedAdManager, didReceiveErrorServerRewardVerification error: NaverAdsServices.GFPError)
Reward Request Retry APIs
When a retry situation occurs or when you need to manually close the ad view upon failure, GFPRewardedAdManager
provides APIs for both retrying and closing.
You can implement a retry logic using these APIs according to the situation.
When a retry is requested, the result—whether success or failure—will be delivered through the same newly added delegate methods mentioned above.
- Objective-C
/**
S2S Server Reward Check API
*/
- (void)requestServerVerification;
/**
Close Option Provided Exclusively for S2S Ads
*/
- (void)close;