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
| Method | Description |
|---|---|
IsInterstitialReady | Returns true if an interstitial ad is loaded. |
IsRewardedReady | Returns 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
| Event | Description |
|---|---|
OnImpressionDataReady | Fires 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.
| Category | Events |
|---|---|
| Banner | OnBannerLoaded, OnBannerLoadFailed, OnBannerDisplayed, OnBannerDisplayFailed, OnBannerClicked, OnBannerExpanded, OnBannerCollapsed, OnBannerLeftApplication |
| Interstitial | OnInterstitialLoaded, OnInterstitialLoadFailed, OnInterstitialDisplayed, OnInterstitialDisplayFailed, OnInterstitialClicked, OnInterstitialClosed, OnInterstitialInfoChanged |
| Rewarded | OnRewardedLoaded, OnRewardedLoadFailed, OnRewardedDisplayed, OnRewardedDisplayFailed, OnRewardedClicked, OnRewardedClosed |
Updated 1 day ago
Did this page help you?
