Skip to main content

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 GFPRewardedAdManagers isAdServerVerificationEnabled property. This value is set correctly after the ad has been loaded.

@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

-(void)rewardedAdManagerDidSuccessServerRewardVerification:(GFPRewardedAdManager *)manager;

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.

-(void)rewardedAdManager:(GFPRewardedAdManager *)manager didFailedServerRewardVerification:(GFPError *)error;

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.

-(void)rewardedAdManager:(GFPRewardedAdManager *)manager didReceiveErrorServerRewardVerification:(GFPError *)error;

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.

/**
S2S Server Reward Check API
*/
- (void)requestServerVerification;
/**
Close Option Provided Exclusively for S2S Ads
*/
- (void)close;