IAdService

Ad Service

Interface

Service to handle ads integration

Properties

isSupported

Returns true if the platform supports ads.

Methods

RequestAd(SpatialAdType)

Request an ad to show up.

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");
}
});
}