RequestAd

Method

Request an ad to show up.

Definition

AdRequest RequestAd(SpatialAdType adType)
AdRequest RequestAd(SpatialAdType adType)

Returns AdRequest

Parameters

ParameterDescription
SpatialAdType adType

Type of ad to show.

Examples

public void WatchAd()
{
if (!SpatialBridge.adService.isSupported)
return;

SpatialBridge.adService.RequestAd(SpatialAdType.Rewarded).SetCompletedEvent((request) => {
if (request.succeeded)
{
Debug.Log("Ad succeeded");
}
});
}
public void WatchAd()
{
if (!SpatialBridge.adService.isSupported)
return;

SpatialBridge.adService.RequestAd(SpatialAdType.Rewarded).SetCompletedEvent((request) => {
if (request.succeeded)
{
Debug.Log("Ad succeeded");
}
});
}