Skip to content

sud.createRewardedVideoAd ​

Creates a rewarded video ad component. Rewarded video ads are typically used in user-initiated reward scenarios, such as an extra life, revival, or obtaining additional items.

typescript
createRewardedVideoAd(params: {
    adUnitId: string;
    /** Whether to enable multiton mode (reserved parameter, not yet in effect) */
    multiton?: boolean;
    /** Whether to disable the fallback share page (reserved parameter, not yet in effect) */
    disableFallbackSharePage?: boolean;
}): RewardedVideoAd;

load() is rate-limited (currently triggered by repeated requests within 10 seconds). When the limit is hit, onError returns the error code (errCode) and message (errMsg).

Parameters ​

Object object ​

PropertyTypeDefaultRequiredDescription
adUnitIdstringYesAd unit ID configured in the SUD OpenPaaS console
multitonbooleantrueNoWhether to enable multiton mode (reserved parameter, not yet in effect)
disableFallbackSharePagebooleanfalseNoWhether to disable the fallback share page (reserved parameter, not yet in effect)

Return Value ​

RewardedVideoAd

Rewarded video ad component.

Example Code ​

javascript
const rewardedVideoAd = sud.createRewardedVideoAd({
    adUnitId: 'adunit-xxxxxxxx',
    // Reserved parameters, not yet in effect
    multiton: true,
    disableFallbackSharePage: false,
});