Skip to content

RewardedVideoAd.setServerSideVerificationData ​

Set custom data for server-side verification. This method is used in the rewarded video server-side callback flow to pass user, reward, and business custom data to the ad verification process.

This method is optional and may not exist at runtime. Check for it before calling, otherwise the call throws in environments that do not support it.

Parameters ​

Object data ​

PropertyTypeDefaultRequiredDescription
userIdstringYesUser identifier
rewardItemstringYesReward name
rewardAmountnumberYesReward amount
customDatastringNoCustom pass-through data

Example ​

javascript
if (rewardedVideoAd.setServerSideVerificationData) {
    rewardedVideoAd.setServerSideVerificationData({
        userId: 'user-001',
        rewardItem: 'Coins',
        rewardAmount: 10,
        customData: 'watch-id-001',
    });
}