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
GoogleAdEventsDispatcher.cs
1using GoogleMobileAds.Api;
2using UnityEngine;
3
4namespace SCG.SpaceAdMobile
5{
9 [AddComponentMenu("SCG/SpaceAdMobile/" + nameof(AdEventsDispatcher))]
11 {
12 public override void AdLoadFailed(object error) => FailedEvent?.Invoke(((LoadAdError)error).GetMessage());
13 public override void AdContentFailed(object error)=> FailedEvent?.Invoke(((AdError)error).GetMessage());
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 google ad events dispatcher functionality.