36 private int loadCounter;
39 protected override void OnAdPaid(
object adValue)
46 foreach (var item
in GetComponents<IAdPaidMessage>())
63 foreach (var item
in GetComponents<IAdImpressionRecordedMessage>())
65 item.AdImpressionRecorded();
81 foreach (var item
in GetComponents<IAdLoadedMessage>())
106 foreach (var item
in GetComponents<IAdLoadFailedMessage>())
108 item.AdLoadFailed(error);
127 foreach (var item
in GetComponents<IAdClickedMessage>())
144 foreach (var item
in GetComponents<IAdShownMessage>())
161 foreach (var item
in GetComponents<IAdClosedMessage>())
184 foreach (var item
in GetComponents<IAdContentFailedMessage>())
186 item.AdContentFailed(error);
207 foreach (var item
in GetComponents<IAdRewardMessage>())
209 item.AdReward(reward);
Represents a backend-agnostic description of an ad reward.
MessageOptions MessageOptions
Options for enabling Unity SendMessage methods.
void ReleaseFullscreenAdAudio()
Releases the audio policy for the current fullscreen ad show.
AdBehaviour AdBehaviour
Behavior options for displaying and showing ads.
Base class for ad units. This class defines the abstract and virtual properties and methods that are ...
void Unload()
Unloads the ad.
virtual void OnAdLoadedInternal()
override void OnAdLoadFailed(object error)
Raised when loading of the AdObject is failed.
override void OnAdClicked()
Raised when a click is recorded for an AdObject.
virtual void OnAdImpressionRecordedInternal()
Action< AdRewardBase > OnRewarded
virtual void OnAdShownInternal()
virtual void OnAdClickedInternal()
virtual void OnUserEarnedRewardInternal(AdRewardBase reward)
override void OnAdImpressionRecorded()
Raised when an impression is recorded for an AdObject.
Action< object > OnContentFailed
virtual void OnAdClosedInternal()
override void OnAdLoaded()
Raised when the AdObject is loaded.
override void OnAdPaid(object adValue)
Raised when the AdObject is estimated to have earned money.
Action OnImpressionRecorded
virtual void OnAdContentFailedInternal(object error)
Action< object > OnLoadFailed
override void OnUserEarnedReward(AdRewardBase reward)
Raised when the AdObject rewarded the user.
virtual void OnAdLoadFailedInternal(object error)
override void OnAdClosed()
Raised when the AdObject closed full screen content.
override void OnAdContentFailed(object error)
Raised when the AdObject failed to open full screen content.
override void OnAdShown()
Raised when an AdObject opened full screen content.
virtual void OnAdPaidInternal(object adValue)
override void OnDestroy()
Releases resources during Unity's destroy callback.
Serves as a base handler for ad unit operations, abstracting common functionality for different types...