Space Ad Mobile 9.5.1
Space Ad Mobile makes ads easy to add into your mobile game: one unified workflow for LevelPlay, AdMob, Yandex.Ads across banners, interstitials and rewarded.
Loading...
Searching...
No Matches
LevelPlayAdEventsDispatcher.cs
1using Unity.Services.LevelPlay;
2using UnityEngine;
3
4namespace SCG.SpaceAdMobile
5{
9 [AddComponentMenu("SCG/SpaceAdMobile/" + nameof(AdEventsDispatcher))]
11 {
12 public override void AdLoadFailed(object error) => FailedEvent?.Invoke(((LevelPlayAdError)error).ErrorMessage);
13 public override void AdContentFailed(object error) => FailedEvent?.Invoke(((LevelPlayAdError)error).ErrorMessage);
14 }
15}
UnityEvent< string > FailedEvent
Invoked when an ad load fails or ad content fails to load, passing the error message as a string.
Serves as an abstract base class for dispatching events related to the lifecycle of advertisements,...
override void AdContentFailed(object error)
Invoked when an ad content fails, passing the error message as a string.
override void AdLoadFailed(object error)
Invoked when an ad load fails, passing the error message as a string.
Provides level play ad events dispatcher functionality.