Args Reference
This page documents the argument objects used across the CiaoSDK API.
CiaoConsent
Passed to CiaoSDK.Initialize and CiaoSDK.UpdateConsent.
| Field | Type | Description | Default |
|---|---|---|---|
gdprConsent | bool | GDPR consent granted. | true |
gdprNetworkConsents | Dictionary<string, bool> | Per-network GDPR consent. Pass null to let LevelPlay read UMP/TCF automatically. | null |
ccpaDoNotSell | bool | CCPA opt-out. | false |
isChildDirected | bool | COPPA — user is under 13. | false |
isUnderAgeOfConsent | bool | GDPR — user is under the age of digital consent (typically 16). | false |
attGranted | bool | iOS App Tracking Transparency granted. | false |
LevelCompletedArgs
Passed to CiaoSDK.SendLevelCompleted.
| Field | Type | Description |
|---|---|---|
level | int | Level ID. |
interstitialViews | int | Interstitials shown during this level. |
rewardedViews | int | Rewarded ads shown during this level. |
time | int | Time spent in level (seconds). |
session | int | Current session number. |
ltv | float | Lifetime value (USD) so far. |
playerLevel | int | Player's overall progression level. |
currencyName | string (optional) | Name of the in-game currency tracked. |
currencyBalance | int (optional) | Currency balance at end of level. |
IAPArgs
Passed to CiaoSDK.SendIAPPurchased. Supports both Unity IAP v4 and v5.
| Field | Type | Description |
|---|---|---|
order (Unity IAP v5) | Order | The Unity IAP v5 Order object. |
product (Unity IAP v4) | Product | The Unity IAP v4 Product object. |
restored | bool | true if this is a restored purchase. Default: false. |
category | string | Optional product category. Default: "". |
AdImpressionArgs
Passed to CiaoSDKAnalytics.SendAdImpression.
| Field | Type | Description |
|---|---|---|
adType | AdType | Enum: Interstitial, Rewarded, or Banner. |
adCount | int | Total impressions of this ad type so far. |
levelId | int | Current level ID. |
placement | string | Placement name. Default: null. |
CheatArgs
Passed to CiaoSDK.SendCheaterDetected.
| Field | Type | Description |
|---|---|---|
reason | CheatReason | Required. Enum: LevelJump, ThirdPartyInstall, TimeCheat, IAPFraud, MemoryEdit, SpeedHack. |
playtime | int? | Optional playtime in seconds. |
session | int? | Optional session number. |
claimedLevel | int? | Optional level claimed by client. |
lastValidLevel | int? | Optional last server-validated level. |
installSource | string | Optional install source. |
deviceTime | string | Optional device timestamp. |
serverTime | string | Optional server timestamp. |
productId | string | Optional product ID (for IAPFraud). |
Updated 2 days ago
Did this page help you?
