# RewardedVideoAd wx.createRewardedVideoAd(Object object)

Start from base library version 2.0.4. Please remaining backward compatible.

Creates a rewarded video ad component. Before using this API, use the object's SDKVersion returned by wx.getSystemInfoSync() to determine the base library version number (supported as of 2.0.4 for Mini Games and 2.6.0 for Mini Programs). Each rewarded video ad created by calling this method is a singleton (a global singleton in Mini Games, and an intra-page singleton in Mini Programs where singleton objects cannot be used across pages).

# Parameters

# Object object

Attribute Type Default Required Description
adUnitId string Yes Ad unit ID

# Return Values

# RewardedVideoAd

The rewarded video ad component.