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) | Initializes the SDK. Call once at startup, in your bootstrap scene. | All |
UpdateConsent(CiaoConsent consent) | Re-applies consent across all modules. Call from your privacy settings UI whenever the user changes their consent. | All |
SendLevelCompleted(LevelCompletedArgs args) | Reports a level completion. | 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 |
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, andCheatArgs.
Updated about 6 hours ago
Did this page help you?
