CiaoSDKAds

CiaoSDKAds wraps LevelPlay for interstitial, rewarded, and banner ads.

Ad Revenue is auto-reported.

CiaoSDK forwards ad revenue to MMP and Analytics automatically as soon as LevelPlay fires its impression event. You do not need to call any method to report ad revenue.

Methods

MethodDescription
IsInterstitialReadyReturns true if an interstitial ad is loaded.
IsRewardedReadyReturns true if a rewarded ad is loaded.
ShowInterstitial(string placement = null)Shows an interstitial ad. placement is optional.
ShowRewarded(string placement, Action<bool> onComplete)Shows a rewarded ad. Callback receives true if the reward was granted.
LoadBanner() / ShowBanner() / HideBanner() / DestroyBanner()Banner lifecycle. Call LoadBanner() once, then show/hide as needed.
PauseBannerRefresh() / ResumeBannerRefresh()Pause / resume banner auto-refresh (e.g. during gameplay).
SetDynamicUserId(string userId)Sets a custom user ID for ad serving.

Events

EventDescription
OnImpressionDataReadyFires with impression data. Use this to accumulate LTV. Do not use it to report ad revenue — ad revenue is auto-reported.

LevelPlay Passthrough Events

CiaoSDKAds exposes the following LevelPlay events directly. Subscribe to any of them if you need finer-grained control or telemetry.

CategoryEvents
BannerOnBannerLoaded, OnBannerLoadFailed, OnBannerDisplayed, OnBannerDisplayFailed, OnBannerClicked, OnBannerExpanded, OnBannerCollapsed, OnBannerLeftApplication
InterstitialOnInterstitialLoaded, OnInterstitialLoadFailed, OnInterstitialDisplayed, OnInterstitialDisplayFailed, OnInterstitialClicked, OnInterstitialClosed, OnInterstitialInfoChanged
RewardedOnRewardedLoaded, OnRewardedLoadFailed, OnRewardedDisplayed, OnRewardedDisplayFailed, OnRewardedClicked, OnRewardedClosed


Did this page help you?