CiaoSDK (Main API)
The CiaoSDK facade is the main entry point. It routes calls to the appropriate modules (Ads, MMP, Analytics, Anti-Cheat).
##
Methods
| Method | Description | Reports To |
|---|---|---|
Initialize(CiaoConsent consent, bool skipAdsInit = false) | Initializes the SDK. Call once at startup, in your bootstrap scene. Set skipAdsInit to true to defer LevelPlay initialization (MMP and Analytics still initialize). | All |
UpdateConsent(CiaoConsent consent, bool skipAdsInit = false) | Updates consent flags at runtime. Can also flip skipAdsInit from true to false to initialize LevelPlay later. | All |
SendLevelCompleted(LevelCompletedArgs args) | Reports a level completion. Check LTV reporting | MMP + Analytics |
SendIAPPurchased(IAPArgs args) | Reports an in-app purchase. Supports Unity IAP v4 (Product) and v5 (Order). ! Report after you S2S validate the purchase | MMP + Analytics |
SendIAPPurchased(RevenueArgs args) | Reports a non-Unity IAP purchase (DTC, web shop, etc.). Use when the purchase does not go through Unity IAP and you have no Product / Order object. ! Report after you S2S validate the purchase | MMP + Analytics |
SendCheaterDetected(CheatArgs args) | Reports a detected cheater. | MMP + Analytics |
SendEvent(string name, Dictionary<string, string> params) | Sends a custom event. | MMP + Analytics |
StartTracking() / StopTracking() | Resumes / pauses tracking across MMP and Analytics. Use for temporary pause/resume scenarios, not consent changes — for consent changes use UpdateConsent. | MMP + Analytics |
See Args Reference for the shape of
CiaoConsent,LevelCompletedArgs,IAPArgs,RevenueArgs, andCheatArgs.
Updated about 1 month ago
Did this page help you?
