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
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| userId | string | Yes | User identifier | |
| rewardItem | string | Yes | Reward name | |
| rewardAmount | number | Yes | Reward amount | |
| customData | string | No | Custom pass-through data |
Example
javascript
if (rewardedVideoAd.setServerSideVerificationData) {
rewardedVideoAd.setServerSideVerificationData({
userId: 'user-001',
rewardItem: 'Coins',
rewardAmount: 10,
customData: 'watch-id-001',
});
}