23#if LEVELPLAY_MOBILE_ADS
28#elif GOOGLE_MOBILE_ADS
33#elif YANDEX_MOBILE_ADS
43#if LEVELPLAY_MOBILE_ADS
48#elif GOOGLE_MOBILE_ADS
53#elif YANDEX_MOBILE_ADS
93 protected virtual void OnAdPaid(
object paid) { }
142 private System.IDisposable fullscreenAdAudioLease;
164 var lease = fullscreenAdAudioLease;
165 fullscreenAdAudioLease =
null;
Represents a backend-agnostic description of an ad reward.
virtual void OnAdPaid(object paid)
Raised when the AdObject is estimated to have earned money.
virtual void OnAdClosed()
Raised when the AdObject closed full screen content.
override AdType AdType
Gets the common advertising format exposed by this ad unit.
virtual void OnAdImpressionRecorded()
Raised when an impression is recorded for an AdObject.
virtual void OnAdLoadFailed(object error)
Raised when loading of the AdObject is failed.
virtual void OnAdClicked()
Raised when a click is recorded for an AdObject.
virtual void OnInternetNotAvailable()
Raised when the Internet connection isn't available. Can be overridden to handle this scenario.
string TestAndroidId
Gets the Android test ad unit identifier for the active provider.
MessageOptions MessageOptions
Options for enabling Unity SendMessage methods.
virtual void OnAdContentFailed(object error)
Raised when the AdObject failed to open full screen content.
virtual void OnAdLoaded()
Raised when the AdObject is loaded.
virtual void OnAdShown()
Raised when an AdObject opened full screen content.
virtual System.IDisposable AcquireFullscreenAdAudio()
Acquires the audio policy for a fullscreen ad show.
void ReleaseFullscreenAdAudio()
Releases the audio policy for the current fullscreen ad show.
string TestIOSId
Gets the iOS test ad unit identifier for the active provider.
virtual void OnUserEarnedReward(AdRewardBase reward)
Raised when the AdObject rewarded the user.
AdBehaviour AdBehaviour
Behavior options for displaying and showing ads.
void AcquireFullscreenAdAudioLease()
Replaces the current fullscreen audio lease with a new one.
Base class for ad units. This class defines the abstract and virtual properties and methods that are ...
void RegisterEventHandlers()
To further customize the behavior of your ad, you can hook into a number of events in the ad's lifecy...
void OnAttachToCache()
Method to be called when the object is attached to the cache. It needs to unsubscribe from events it ...
void OnLoadFromCache()
Method to be called when the object is loaded from the cache. It needs to subscribe to needed events.
Base MonoBehaviour class for ad units. This class defines the abstract and virtual properties and met...