Rewarded Video Ads - API Reference

Available Methods


/// <summary>
/// Asks the mediations to load an extra Rewarded Video with the given placement
/// ID <b>on top of the default one, with the default placement ID</b> 
/// </summary>
/// <param name="placementId">The placement ID of the new Rewarded Video</param>
void LoadExtraRewardedVideoAd([NotNull] string placementId);
/// <summary>
/// Loads a high value rewarded ad, will do nothing if no high value ad is configured in the manifest.
/// </summary>
void LoadHighValueRewardedVideoAd();
/// <summary>
/// Requests to show a rewarded video ad
/// </summary>
/// <param name="placementName">The ad placement name for analytics</param>
/// <param name="placementId">(optional) The ad placement</param>
void ShowRewardedVideoAd(string placementName, string placementId = null);
/// <summary>
/// Requests to show a high value rewarded video ad
/// </summary>
void ShowHighValueRewardedVideoAd(string placementName);
/// <summary>
/// Determines if a rewarded video ad is available
/// </summary>
/// <returns></returns>
bool IsRewardedVideoAdAvailable(string placementId = null);

 

Callbacks


/// <summary>
/// Invoked when the RewardedVideo ad view is about to be closed.
/// <typeparam name="AdInfo">See <see cref="AdInfo"/></typeparam>
/// </summary>
HomaGames.HomaBelly.Events.onRewardedVideoAdClosedEvent += OnRewardedVideoAdClosedEvent;
 
/// <summary>
/// Invoked when there is a change in the ad availability status.
/// <typeparam name="bool">If the video is available</typeparam>
/// <typeparam name="AdInfo">See <see cref="AdInfo"/></typeparam>
/// </summary>
HomaGames.HomaBelly.Events.onRewardedVideoAvailabilityChangedEvent += OnRewardedVideoAvailabilityChangedEvent;
 
/// <summary>
/// Invoked when the video ad has opened. 
/// <typeparam name="AdInfo">See <see cref="AdInfo"/></typeparam>
/// </summary>
HomaGames.HomaBelly.Events.onRewardedVideoAdStartedEvent += OnRewardedVideoAdStartedEvent;
 
/// <summary>
/// Invoked when the user completed the video and should be rewarded.
/// <typeparam name="VideoAdReward">See <see cref="VideoAdReward"/></typeparam>
/// <typeparam name="AdInfo">See <see cref="AdInfo"/></typeparam>
/// </summary>
HomaGames.HomaBelly.Events.onRewardedVideoAdRewardedEvent += OnRewardedVideoAdRewardedEvent;
 
/// <summary>
/// Invoked when the Rewarded Video failed to show
/// <typeparam name="AdInfo">See <see cref="AdInfo"/></typeparam>
/// </summary>
HomaGames.HomaBelly.Events.onRewardedVideoAdShowFailedEvent += OnRewardedVideoAdShowFailedEvent;
 
/// <summary>
/// Invoked when the video ad is clicked.
/// <typeparam name="AdInfo">See <see cref="AdInfo"/></typeparam>
/// </summary>
HomaGames.HomaBelly.Events.onRewardedVideoAdClickedEvent += OnRewardedVideoAdClickedEvent;