Args Reference

This page documents the argument objects used across the CiaoSDK API.

CiaoConsent

Passed to CiaoSDK.Initialize and CiaoSDK.UpdateConsent.

FieldTypeDescriptionDefault
gdprConsentboolGDPR consent granted.true
gdprNetworkConsentsDictionary<string, bool>Per-network GDPR consent. Pass null to let LevelPlay read UMP/TCF automatically.null
ccpaDoNotSellboolCCPA opt-out.false
isChildDirectedboolCOPPA — user is under 13.false
isUnderAgeOfConsentboolGDPR — user is under the age of digital consent (typically 16).false
attGrantedbooliOS App Tracking Transparency granted.false

LevelCompletedArgs

Passed to CiaoSDK.SendLevelCompleted.

FieldTypeDescription
levelintLevel ID.
interstitialViewsintInterstitials shown during this level.
rewardedViewsintRewarded ads shown during this level.
timeintTime spent in level (seconds).
sessionintCurrent session number.
ltvfloatLifetime value (USD) so far.
playerLevelintPlayer's overall progression level.
currencyNamestring (optional)Name of the in-game currency tracked.
currencyBalanceint (optional)Currency balance at end of level.

IAPArgs

Passed to CiaoSDK.SendIAPPurchased. Supports both Unity IAP v4 and v5.

FieldTypeDescription
order (Unity IAP v5)OrderThe Unity IAP v5 Order object.
product (Unity IAP v4)ProductThe Unity IAP v4 Product object.
restoredbooltrue if this is a restored purchase. Default: false.
categorystringOptional product category. Default: "".

AdImpressionArgs

Passed to CiaoSDKAnalytics.SendAdImpression.

FieldTypeDescription
adTypeAdTypeEnum: Interstitial, Rewarded, or Banner.
adCountintTotal impressions of this ad type so far.
levelIdintCurrent level ID.
placementstringPlacement name. Default: null.

CheatArgs

Passed to CiaoSDK.SendCheaterDetected.

FieldTypeDescription
reasonCheatReasonRequired. Enum: LevelJump, ThirdPartyInstall, TimeCheat, IAPFraud, MemoryEdit, SpeedHack.
playtimeint?Optional playtime in seconds.
sessionint?Optional session number.
claimedLevelint?Optional level claimed by client.
lastValidLevelint?Optional last server-validated level.
installSourcestringOptional install source.
deviceTimestringOptional device timestamp.
serverTimestringOptional server timestamp.
productIdstringOptional product ID (for IAPFraud).


Did this page help you?