AdService
Show Deprecated
A service for displaying mobile video ads as a form of monetization. Use it to implement rewarded video ads in your experience.
Summary
Methods
Creates a reward to give users who watch an entire video ad.
Checks if a video ad is available to be played to the current user inside the experience.
Plays the video ad to the current user inside the experience.
Properties
Methods
CreateAdRewardFromDevProductId
AdReward
Parameters
Default Value: ""
Returns
AdReward
GetAdAvailabilityNowAsync
Variant
Parameters
Returns
Variant
Code Samples
local adAvailabilityResult = AdService:GetAdAvailabilityNow(Enum.AdAdFormat.RewardedOnDemandVideo)
ShowRewardedVideoAdAsync
Parameters
Returns
Code Samples
local reward = AdService:CreateAdRewardFromDevProductId(100)
local result = AdService:ShowRewardedVideoAdAsync(player, reward)