diff --git a/src/code-snippets/unity/examples/Adjust/addSessionCallbackParameter.mdx b/src/code-snippets/unity/examples/Adjust/addSessionCallbackParameter.mdx deleted file mode 100644 index 4ce7ba47a..000000000 --- a/src/code-snippets/unity/examples/Adjust/addSessionCallbackParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.addSessionCallbackParameter("key", "value"); -``` diff --git a/src/code-snippets/unity/examples/Adjust/addSessionPartnerParameter.mdx b/src/code-snippets/unity/examples/Adjust/addSessionPartnerParameter.mdx deleted file mode 100644 index a2429c90f..000000000 --- a/src/code-snippets/unity/examples/Adjust/addSessionPartnerParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.addSessionPartnerParameter("key", "value"); -``` diff --git a/src/code-snippets/unity/examples/Adjust/appTrackingAuthorizationStatus.mdx b/src/code-snippets/unity/examples/Adjust/appTrackingAuthorizationStatus.mdx deleted file mode 100644 index 17109d13c..000000000 --- a/src/code-snippets/unity/examples/Adjust/appTrackingAuthorizationStatus.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.getAppTrackingAuthorizationStatus(); -``` diff --git a/src/code-snippets/unity/examples/Adjust/checkForNewAttStatus.mdx b/src/code-snippets/unity/examples/Adjust/checkForNewAttStatus.mdx deleted file mode 100644 index 91e555d44..000000000 --- a/src/code-snippets/unity/examples/Adjust/checkForNewAttStatus.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.checkForNewAttStatus(); -``` diff --git a/src/code-snippets/unity/examples/Adjust/disableThirdPartySharing.mdx b/src/code-snippets/unity/examples/Adjust/disableThirdPartySharing.mdx deleted file mode 100644 index ee96b8406..000000000 --- a/src/code-snippets/unity/examples/Adjust/disableThirdPartySharing.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.disableThirdPartySharing(); -``` diff --git a/src/code-snippets/unity/examples/Adjust/gdprForgetMe.mdx b/src/code-snippets/unity/examples/Adjust/gdprForgetMe.mdx deleted file mode 100644 index 0c723e6bd..000000000 --- a/src/code-snippets/unity/examples/Adjust/gdprForgetMe.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.gdprForgetMe(); -``` diff --git a/src/code-snippets/unity/examples/Adjust/getAdid.mdx b/src/code-snippets/unity/examples/Adjust/getAdid.mdx deleted file mode 100644 index 624125dc1..000000000 --- a/src/code-snippets/unity/examples/Adjust/getAdid.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -string adid = Adjust.getAdid(); -``` diff --git a/src/code-snippets/unity/examples/Adjust/getAmazonAdId.mdx b/src/code-snippets/unity/examples/Adjust/getAmazonAdId.mdx deleted file mode 100644 index b473ec7b9..000000000 --- a/src/code-snippets/unity/examples/Adjust/getAmazonAdId.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -string amazonAdId = Adjust.getAmazonAdId(); -``` diff --git a/src/code-snippets/unity/examples/Adjust/getAttribution.mdx b/src/code-snippets/unity/examples/Adjust/getAttribution.mdx deleted file mode 100644 index 14892335c..000000000 --- a/src/code-snippets/unity/examples/Adjust/getAttribution.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -var attribution = Adjust.getAttribution(); -``` diff --git a/src/code-snippets/unity/examples/Adjust/getGoogleAdId.mdx b/src/code-snippets/unity/examples/Adjust/getGoogleAdId.mdx deleted file mode 100644 index b5c5e34a5..000000000 --- a/src/code-snippets/unity/examples/Adjust/getGoogleAdId.mdx +++ /dev/null @@ -1,5 +0,0 @@ -```c# -Adjust.getGoogleAdId((string googleAdId) => { - //... -}}; -``` diff --git a/src/code-snippets/unity/examples/Adjust/getIdfa.mdx b/src/code-snippets/unity/examples/Adjust/getIdfa.mdx deleted file mode 100644 index c52dcb653..000000000 --- a/src/code-snippets/unity/examples/Adjust/getIdfa.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -string idfa = Adjust.getIdfa(); -``` diff --git a/src/code-snippets/unity/examples/Adjust/isEnabled.mdx b/src/code-snippets/unity/examples/Adjust/isEnabled.mdx deleted file mode 100644 index d3ac69d25..000000000 --- a/src/code-snippets/unity/examples/Adjust/isEnabled.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.isEnabled(); -``` diff --git a/src/code-snippets/unity/examples/Adjust/removeSessionCallbackParameter.mdx b/src/code-snippets/unity/examples/Adjust/removeSessionCallbackParameter.mdx deleted file mode 100644 index a0792de77..000000000 --- a/src/code-snippets/unity/examples/Adjust/removeSessionCallbackParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.removeSessionCallbackParameter("key"); -``` diff --git a/src/code-snippets/unity/examples/Adjust/removeSessionPartnerParameter.mdx b/src/code-snippets/unity/examples/Adjust/removeSessionPartnerParameter.mdx deleted file mode 100644 index bef1bca16..000000000 --- a/src/code-snippets/unity/examples/Adjust/removeSessionPartnerParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.removeSessionPartnerParameter("key"); -``` diff --git a/src/code-snippets/unity/examples/Adjust/requestTrackingAuthorization.mdx b/src/code-snippets/unity/examples/Adjust/requestTrackingAuthorization.mdx deleted file mode 100644 index 6a62ecea0..000000000 --- a/src/code-snippets/unity/examples/Adjust/requestTrackingAuthorization.mdx +++ /dev/null @@ -1,20 +0,0 @@ -```c# -Adjust.requestTrackingAuthorizationWithCompletionHandler((status) => -{ - switch (status) - { - case 0: - // ATTrackingManagerAuthorizationStatusNotDetermined case - break; - case 1: - // ATTrackingManagerAuthorizationStatusRestricted case - break; - case 2: - // ATTrackingManagerAuthorizationStatusDenied case - break; - case 3: - // ATTrackingManagerAuthorizationStatusAuthorized case - break; - } -}); -``` diff --git a/src/code-snippets/unity/examples/Adjust/resetSessionCallbackParameters.mdx b/src/code-snippets/unity/examples/Adjust/resetSessionCallbackParameters.mdx deleted file mode 100644 index 4a8d95126..000000000 --- a/src/code-snippets/unity/examples/Adjust/resetSessionCallbackParameters.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.resetSessionCallbackParameters(); -``` diff --git a/src/code-snippets/unity/examples/Adjust/resetSessionPartnerParameters.mdx b/src/code-snippets/unity/examples/Adjust/resetSessionPartnerParameters.mdx deleted file mode 100644 index 4730c5bd4..000000000 --- a/src/code-snippets/unity/examples/Adjust/resetSessionPartnerParameters.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.resetSessionPartnerParameters(); -``` diff --git a/src/code-snippets/unity/examples/Adjust/sendFirstPackages.mdx b/src/code-snippets/unity/examples/Adjust/sendFirstPackages.mdx deleted file mode 100644 index 4ffeefa9e..000000000 --- a/src/code-snippets/unity/examples/Adjust/sendFirstPackages.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.sendFirstPackages(); -``` diff --git a/src/code-snippets/unity/examples/Adjust/setDeviceToken.mdx b/src/code-snippets/unity/examples/Adjust/setDeviceToken.mdx deleted file mode 100644 index ec733f447..000000000 --- a/src/code-snippets/unity/examples/Adjust/setDeviceToken.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.setDeviceToken("{YourDeviceToken}"); -``` diff --git a/src/code-snippets/unity/examples/Adjust/setEnabled.mdx b/src/code-snippets/unity/examples/Adjust/setEnabled.mdx deleted file mode 100644 index ca7d5e0f1..000000000 --- a/src/code-snippets/unity/examples/Adjust/setEnabled.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.setEnabled(false); -``` diff --git a/src/code-snippets/unity/examples/Adjust/setOfflineMode.mdx b/src/code-snippets/unity/examples/Adjust/setOfflineMode.mdx deleted file mode 100644 index 4df413eca..000000000 --- a/src/code-snippets/unity/examples/Adjust/setOfflineMode.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.setOfflineMode(true); -``` diff --git a/src/code-snippets/unity/examples/Adjust/trackAdRevenue.mdx b/src/code-snippets/unity/examples/Adjust/trackAdRevenue.mdx deleted file mode 100644 index ae0af9ac8..000000000 --- a/src/code-snippets/unity/examples/Adjust/trackAdRevenue.mdx +++ /dev/null @@ -1,5 +0,0 @@ -```c# -AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); -//... -Adjust.trackAdRevenue(adjustAdRevenue); -``` diff --git a/src/code-snippets/unity/examples/Adjust/trackAppStoreSubscription.mdx b/src/code-snippets/unity/examples/Adjust/trackAppStoreSubscription.mdx deleted file mode 100644 index 1175ca54b..000000000 --- a/src/code-snippets/unity/examples/Adjust/trackAppStoreSubscription.mdx +++ /dev/null @@ -1,15 +0,0 @@ -```c# -AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( - price, - currency, - transactionId, - receipt); -subscription.setTransactionDate(transactionDate); -subscription.setSalesRegion(salesRegion); -subscription.addCallbackParameter("key1", "value1"); -subscription.addCallbackParameter("key2", "value2"); -subscription.addPartnerParameter("key1", "value1"); -subscription.addPartnerParameter("key2", "value2"); - -Adjust.trackAppStoreSubscription(subscription); -``` diff --git a/src/code-snippets/unity/examples/Adjust/trackEvent.mdx b/src/code-snippets/unity/examples/Adjust/trackEvent.mdx deleted file mode 100644 index a1536d606..000000000 --- a/src/code-snippets/unity/examples/Adjust/trackEvent.mdx +++ /dev/null @@ -1,5 +0,0 @@ -```c# -AdjustEvent adjustEvent = new AdjustEvent("abc123"); -//... -Adjust.trackEvent(adjustEvent); -``` diff --git a/src/code-snippets/unity/examples/Adjust/trackMeasurementConsent.mdx b/src/code-snippets/unity/examples/Adjust/trackMeasurementConsent.mdx deleted file mode 100644 index f7721986e..000000000 --- a/src/code-snippets/unity/examples/Adjust/trackMeasurementConsent.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.trackMeasurementConsent(true); -``` diff --git a/src/code-snippets/unity/examples/Adjust/trackPlayStoreSubscription.mdx b/src/code-snippets/unity/examples/Adjust/trackPlayStoreSubscription.mdx deleted file mode 100644 index 742759020..000000000 --- a/src/code-snippets/unity/examples/Adjust/trackPlayStoreSubscription.mdx +++ /dev/null @@ -1,16 +0,0 @@ -```c# -AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription( - price, - currency, - sku, - orderId, - signature, - purchaseToken); -subscription.setPurchaseTime(purchaseTime); -subscription.addCallbackParameter("key1", "value1"); -subscription.addCallbackParameter("key2", "value2"); -subscription.addPartnerParameter("key1", "value1"); -subscription.addPartnerParameter("key2", "value2"); - -Adjust.trackPlayStoreSubscription(subscription); -``` diff --git a/src/code-snippets/unity/examples/Adjust/trackThirdPartySharing.mdx b/src/code-snippets/unity/examples/Adjust/trackThirdPartySharing.mdx deleted file mode 100644 index 715e4b6bc..000000000 --- a/src/code-snippets/unity/examples/Adjust/trackThirdPartySharing.mdx +++ /dev/null @@ -1,5 +0,0 @@ -```c# -AdjustThirdPartySharing adjustThirdPartySharing = new AdjustThirdPartySharing(true); -//... -Adjust.trackThirdPartySharing(adjustThirdPartySharing); -``` diff --git a/src/code-snippets/unity/examples/Adjust/updateConversionValue.mdx b/src/code-snippets/unity/examples/Adjust/updateConversionValue.mdx deleted file mode 100644 index f74862d03..000000000 --- a/src/code-snippets/unity/examples/Adjust/updateConversionValue.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.updateConversionValue(6); -``` diff --git a/src/code-snippets/unity/examples/AdjustAdRevenue/addCallbackParameter.mdx b/src/code-snippets/unity/examples/AdjustAdRevenue/addCallbackParameter.mdx deleted file mode 100644 index 5c18215ec..000000000 --- a/src/code-snippets/unity/examples/AdjustAdRevenue/addCallbackParameter.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); -//... -adjustAdRevenue.addCallbackParameter("key", "value"); -//... -Adjust.trackAdRevenue(adjustAdRevenue); -``` diff --git a/src/code-snippets/unity/examples/AdjustAdRevenue/addPartnerParameter.mdx b/src/code-snippets/unity/examples/AdjustAdRevenue/addPartnerParameter.mdx deleted file mode 100644 index fe7fe1736..000000000 --- a/src/code-snippets/unity/examples/AdjustAdRevenue/addPartnerParameter.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); -//... -adjustAdRevenue.addPartnerParameter("key", "value"); -//... -Adjust.trackAdRevenue(adjustAdRevenue); -``` diff --git a/src/code-snippets/unity/examples/AdjustAdRevenue/constructor.mdx b/src/code-snippets/unity/examples/AdjustAdRevenue/constructor.mdx deleted file mode 100644 index 472becf77..000000000 --- a/src/code-snippets/unity/examples/AdjustAdRevenue/constructor.mdx +++ /dev/null @@ -1,4 +0,0 @@ -```c# -AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); -Adjust.trackAdRevenue(adjustAdRevenue); -``` diff --git a/src/code-snippets/unity/examples/AdjustAdRevenue/setAdImpressionsCount.mdx b/src/code-snippets/unity/examples/AdjustAdRevenue/setAdImpressionsCount.mdx deleted file mode 100644 index d23154e33..000000000 --- a/src/code-snippets/unity/examples/AdjustAdRevenue/setAdImpressionsCount.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); -//... -adjustAdRevenue.setAdImpressionsCount(10); -//... -Adjust.trackAdRevenue(adjustAdRevenue); -``` diff --git a/src/code-snippets/unity/examples/AdjustAdRevenue/setAdRevenueNetwork.mdx b/src/code-snippets/unity/examples/AdjustAdRevenue/setAdRevenueNetwork.mdx deleted file mode 100644 index 8993672a4..000000000 --- a/src/code-snippets/unity/examples/AdjustAdRevenue/setAdRevenueNetwork.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); -//... -adjustAdRevenue.setAdRevenueNetwork("network1"); -//... -Adjust.trackAdRevenue(adjustAdRevenue); -``` diff --git a/src/code-snippets/unity/examples/AdjustAdRevenue/setAdRevenuePlacement.mdx b/src/code-snippets/unity/examples/AdjustAdRevenue/setAdRevenuePlacement.mdx deleted file mode 100644 index b6cf49523..000000000 --- a/src/code-snippets/unity/examples/AdjustAdRevenue/setAdRevenuePlacement.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); -//... -adjustAdRevenue.setAdRevenuePlacement("banner"); -//... -Adjust.trackAdRevenue(adjustAdRevenue); -``` diff --git a/src/code-snippets/unity/examples/AdjustAdRevenue/setAdRevenueUnit.mdx b/src/code-snippets/unity/examples/AdjustAdRevenue/setAdRevenueUnit.mdx deleted file mode 100644 index 487187f93..000000000 --- a/src/code-snippets/unity/examples/AdjustAdRevenue/setAdRevenueUnit.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); -//... -adjustAdRevenue.setAdRevenueUnit("unit1"); -//... -Adjust.trackAdRevenue(adjustAdRevenue); -``` diff --git a/src/code-snippets/unity/examples/AdjustAdRevenue/setRevenue.mdx b/src/code-snippets/unity/examples/AdjustAdRevenue/setRevenue.mdx deleted file mode 100644 index b0a7508f7..000000000 --- a/src/code-snippets/unity/examples/AdjustAdRevenue/setRevenue.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); -//... -adjustAdRevenue.setRevenue(1.00, "EUR"); -//... -Adjust.trackAdRevenue(adjustAdRevenue); -``` diff --git a/src/code-snippets/unity/examples/AdjustAppStoreSubscription/addCallbackParameter.mdx b/src/code-snippets/unity/examples/AdjustAppStoreSubscription/addCallbackParameter.mdx deleted file mode 100644 index 7ae40b07f..000000000 --- a/src/code-snippets/unity/examples/AdjustAppStoreSubscription/addCallbackParameter.mdx +++ /dev/null @@ -1,10 +0,0 @@ -```c# -AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( - price, - currency, - transactionId, - receipt); -//... -subscription.addCallbackParameter("key1", "value1"); -subscription.addCallbackParameter("key2", "value2"); -``` diff --git a/src/code-snippets/unity/examples/AdjustAppStoreSubscription/addPartnerParameter.mdx b/src/code-snippets/unity/examples/AdjustAppStoreSubscription/addPartnerParameter.mdx deleted file mode 100644 index a917120cb..000000000 --- a/src/code-snippets/unity/examples/AdjustAppStoreSubscription/addPartnerParameter.mdx +++ /dev/null @@ -1,10 +0,0 @@ -```c# -AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( - price, - currency, - transactionId, - receipt); -//... -subscription.addPartnerParameter("key1", "value1"); -subscription.addPartnerParameter("key2", "value2"); -``` diff --git a/src/code-snippets/unity/examples/AdjustAppStoreSubscription/adjustAppStoreSubscription.mdx b/src/code-snippets/unity/examples/AdjustAppStoreSubscription/adjustAppStoreSubscription.mdx deleted file mode 100644 index 2d6042969..000000000 --- a/src/code-snippets/unity/examples/AdjustAppStoreSubscription/adjustAppStoreSubscription.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( - price, - currency, - transactionId, - receipt); -``` diff --git a/src/code-snippets/unity/examples/AdjustAppStoreSubscription/setSalesRegion.mdx b/src/code-snippets/unity/examples/AdjustAppStoreSubscription/setSalesRegion.mdx deleted file mode 100644 index 83ec3a28e..000000000 --- a/src/code-snippets/unity/examples/AdjustAppStoreSubscription/setSalesRegion.mdx +++ /dev/null @@ -1,9 +0,0 @@ -```c# -AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( - price, - currency, - transactionId, - receipt); -//... -subscription.setSalesRegion(salesRegion); -``` diff --git a/src/code-snippets/unity/examples/AdjustAppStoreSubscription/setTransactionDate.mdx b/src/code-snippets/unity/examples/AdjustAppStoreSubscription/setTransactionDate.mdx deleted file mode 100644 index 155514f2a..000000000 --- a/src/code-snippets/unity/examples/AdjustAppStoreSubscription/setTransactionDate.mdx +++ /dev/null @@ -1,9 +0,0 @@ -```c# -AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( - price, - currency, - transactionId, - receipt); -//... -subscription.setTransactionDate(transactionDate); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/constructor.mdx b/src/code-snippets/unity/examples/AdjustConfig/constructor.mdx deleted file mode 100644 index b91a6aa14..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/constructor.mdx +++ /dev/null @@ -1,5 +0,0 @@ -```c# -AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); -// ... -Adjust.start(adjustConfig); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/deactivateSKAdNetworkHandling.mdx b/src/code-snippets/unity/examples/AdjustConfig/deactivateSKAdNetworkHandling.mdx deleted file mode 100644 index f776f1ba5..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/deactivateSKAdNetworkHandling.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); -//... -adjustConfig.deactivateSKAdNetworkHandling(); -//... -Adjust.start(adjustConfig); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/sendInBackground.mdx b/src/code-snippets/unity/examples/AdjustConfig/sendInBackground.mdx deleted file mode 100644 index fddcb32bc..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/sendInBackground.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); -//... -adjustConfig.setSendInBackground(true); -//... -Adjust.start(adjustConfig); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setAttributionChangedDelegate.mdx b/src/code-snippets/unity/examples/AdjustConfig/setAttributionChangedDelegate.mdx deleted file mode 100644 index 23d873ec7..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setAttributionChangedDelegate.mdx +++ /dev/null @@ -1,19 +0,0 @@ -```c# {8, 13-16} -using com.adjust.sdk; - -public class ExampleGUI : MonoBehaviour { - void OnGUI() { - if (GUI.Button(new Rect(0, 0, Screen.width, Screen.height), "callback")) { - AdjustConfig adjustConfig = new AdjustConfig("{Your App Token}", AdjustEnvironmentSandbox); - adjustConfig.setLogLevel(AdjustLogLevel.Verbose); - adjustConfig.setAttributionChangedDelegate(this.attributionChangedDelegate); - Adjust.start(adjustConfig); - } - } - - public void attributionChangedDelegate(AdjustAttribution attribution) { - Debug.Log("Attribution changed"); - // ... - } -} -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setConversionValueUpdatedDelegate.mdx b/src/code-snippets/unity/examples/AdjustConfig/setConversionValueUpdatedDelegate.mdx deleted file mode 100644 index 162e003bc..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setConversionValueUpdatedDelegate.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); -//... -adjustConfig.setConversionValueUpdatedDelegate(ConversionValueUpdatedCallback); -//... -Adjust.start(adjustConfig); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setCoppaCompliantEnabled.mdx b/src/code-snippets/unity/examples/AdjustConfig/setCoppaCompliantEnabled.mdx deleted file mode 100644 index e80c043a8..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setCoppaCompliantEnabled.mdx +++ /dev/null @@ -1,5 +0,0 @@ -```c# -AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); -adjustConfig.setCoppaCompliantEnabled(true); -Adjust.start(adjustConfig); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setDefaultTracker.mdx b/src/code-snippets/unity/examples/AdjustConfig/setDefaultTracker.mdx deleted file mode 100644 index 1e1ada7c5..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setDefaultTracker.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); -//... -adjustConfig.setDefaultTracker("{TrackerToken}"); -//... -Adjust.start(adjustConfig); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setDelayStart.mdx b/src/code-snippets/unity/examples/AdjustConfig/setDelayStart.mdx deleted file mode 100644 index 81f803e01..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setDelayStart.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); -//... -adjustConfig.setDelayStart(5.5); -//... -Adjust.start(adjustConfig); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setEventBufferingEnabled.mdx b/src/code-snippets/unity/examples/AdjustConfig/setEventBufferingEnabled.mdx deleted file mode 100644 index 099ea87fd..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setEventBufferingEnabled.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); -//... -adjustConfig.setEventBufferingEnabled(true); -//... -Adjust.start(adjustConfig); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setEventFailureDelegate.mdx b/src/code-snippets/unity/examples/AdjustConfig/setEventFailureDelegate.mdx deleted file mode 100644 index 14a26068f..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setEventFailureDelegate.mdx +++ /dev/null @@ -1,11 +0,0 @@ -```c# {3, 7-9} -AdjustConfig adjustConfig = new AdjustConfig("{Your App Token}", AdjustEnvironment.Sandbox); -adjustConfig.setLogLevel(AdjustLogLevel.Verbose); -adjustConfig.setEventFailureDelegate(EventFailureCallback); -//... -Adjust.start(adjustConfig); -//... -public void EventFailureCallback(AdjustEventFailure eventFailureData) { - //... -} -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setEventSuccessDelegate.mdx b/src/code-snippets/unity/examples/AdjustConfig/setEventSuccessDelegate.mdx deleted file mode 100644 index 2a79b334a..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setEventSuccessDelegate.mdx +++ /dev/null @@ -1,11 +0,0 @@ -```c# {3, 7-9} -AdjustConfig adjustConfig = new AdjustConfig("{Your App Token}", AdjustEnvironment.Sandbox); -adjustConfig.setLogLevel(AdjustLogLevel.Verbose); -adjustConfig.setEventSuccessDelegate(EventSuccessCallback); -//... -Adjust.start(adjustConfig); -//... -public void EventSuccessCallback(AdjustEventSuccess eventSuccessData) { - //... -} -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setExternalDeviceId.mdx b/src/code-snippets/unity/examples/AdjustConfig/setExternalDeviceId.mdx deleted file mode 100644 index a80c99128..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setExternalDeviceId.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); -//... -adjustConfig.setExternalDeviceId("{Your-External-Device-Id}"); -//... -Adjust.start(adjustConfig); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setLaunchDeferredDeeplink.mdx b/src/code-snippets/unity/examples/AdjustConfig/setLaunchDeferredDeeplink.mdx deleted file mode 100644 index da78d60ef..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setLaunchDeferredDeeplink.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); -//... -adjustConfig.setLaunchDeferredDeeplink(true); -//... -Adjust.start(adjustConfig); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setLinkMeEnabled.mdx b/src/code-snippets/unity/examples/AdjustConfig/setLinkMeEnabled.mdx deleted file mode 100644 index 2b7f86158..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setLinkMeEnabled.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); -//... -adjustConfig.setLinkMeEnabled(true); -//... -Adjust.start(adjustConfig); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setLogDelegate.mdx b/src/code-snippets/unity/examples/AdjustConfig/setLogDelegate.mdx deleted file mode 100644 index e8dfb2c2f..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setLogDelegate.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); -//... -adjustConfig.setLogDelegate(msg => Debug.Log(msg)); -//... -Adjust.start(adjustConfig); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setLogLevel.mdx b/src/code-snippets/unity/examples/AdjustConfig/setLogLevel.mdx deleted file mode 100644 index 0a4dcdbdb..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setLogLevel.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustConfig config = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); -//... -config.setLogLevel(AdjustLogLevel.Error); -//... -Adjust.start(config); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setNeedsCost.mdx b/src/code-snippets/unity/examples/AdjustConfig/setNeedsCost.mdx deleted file mode 100644 index 153eb03a5..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setNeedsCost.mdx +++ /dev/null @@ -1,5 +0,0 @@ -```c# -AdjustConfig adjustConfig = new AdjustConfig("{Your App Token}", AdjustEnvironment.Sandbox); -adjustConfig.setLogLevel(AdjustLogLevel.Verbose); -adjustConfig.setNeedsCost(true); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setPreinstallFilePath.mdx b/src/code-snippets/unity/examples/AdjustConfig/setPreinstallFilePath.mdx deleted file mode 100644 index 6e95113f4..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setPreinstallFilePath.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); -//... -adjustConfig.setPreinstallFilePath("../EngagementFile.xml"); -//... -Adjust.start(adjustConfig); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setPreinstallTrackingEnabled.mdx b/src/code-snippets/unity/examples/AdjustConfig/setPreinstallTrackingEnabled.mdx deleted file mode 100644 index 2e5010c8f..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setPreinstallTrackingEnabled.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); -//... -adjustConfig.setPreinstallTrackingEnabled(true); -//... -Adjust.start(adjustConfig); -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setSessionFailureDelegate.mdx b/src/code-snippets/unity/examples/AdjustConfig/setSessionFailureDelegate.mdx deleted file mode 100644 index 5ae76fbd5..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setSessionFailureDelegate.mdx +++ /dev/null @@ -1,11 +0,0 @@ -```c# {3, 7-9} -AdjustConfig adjustConfig = new AdjustConfig("{Your App Token}", AdjustEnvironment.Sandbox); -adjustConfig.setLogLevel(AdjustLogLevel.Verbose); -adjustConfig.setSessionFailureDelegate(SessionFailureCallback); -//... -Adjust.start(adjustConfig); -//... -public void SessionFailureCallback (AdjustSessionFailure sessionFailureData) { - //... -} -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setSessionSuccessDelegate.mdx b/src/code-snippets/unity/examples/AdjustConfig/setSessionSuccessDelegate.mdx deleted file mode 100644 index 1a81f6c30..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setSessionSuccessDelegate.mdx +++ /dev/null @@ -1,11 +0,0 @@ -```c# {3, 7-9} -AdjustConfig adjustConfig = new AdjustConfig("{Your App Token}", AdjustEnvironment.Sandbox); -adjustConfig.setLogLevel(AdjustLogLevel.Verbose); -adjustConfig.setSessionSuccessDelegate(SessionSuccessCallback); -//... -Adjust.start(adjustConfig); -//... -public void SessionSuccessCallback (AdjustSessionSuccess sessionSuccessData) { - //... -} -``` diff --git a/src/code-snippets/unity/examples/AdjustConfig/setUrlStrategy.mdx b/src/code-snippets/unity/examples/AdjustConfig/setUrlStrategy.mdx deleted file mode 100644 index 790883c64..000000000 --- a/src/code-snippets/unity/examples/AdjustConfig/setUrlStrategy.mdx +++ /dev/null @@ -1,5 +0,0 @@ -```c# "AdjustConfig.AdjustDataResidencyEU" -AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); -adjustConfig.setUrlStrategy(AdjustConfig.AdjustDataResidencyEU); -Adjust.start(adjustConfig); -``` diff --git a/src/code-snippets/unity/examples/AdjustEvent/addCallbackParameter.mdx b/src/code-snippets/unity/examples/AdjustEvent/addCallbackParameter.mdx deleted file mode 100644 index 7b306dbfa..000000000 --- a/src/code-snippets/unity/examples/AdjustEvent/addCallbackParameter.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustEvent adjustEvent = new AdjustEvent("abc123"); -//... -adjustEvent.addCallbackParameter("key", "value"); -//... -Adjust.trackEvent(adjustEvent); -``` diff --git a/src/code-snippets/unity/examples/AdjustEvent/addPartnerParameter.mdx b/src/code-snippets/unity/examples/AdjustEvent/addPartnerParameter.mdx deleted file mode 100644 index fa2107ca0..000000000 --- a/src/code-snippets/unity/examples/AdjustEvent/addPartnerParameter.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustEvent adjustEvent = new AdjustEvent("abc123"); -//... -adjustEvent.addPartnerParameter("key", "value"); -//... -Adjust.trackEvent(adjustEvent); -``` diff --git a/src/code-snippets/unity/examples/AdjustEvent/constructor.mdx b/src/code-snippets/unity/examples/AdjustEvent/constructor.mdx deleted file mode 100644 index a1536d606..000000000 --- a/src/code-snippets/unity/examples/AdjustEvent/constructor.mdx +++ /dev/null @@ -1,5 +0,0 @@ -```c# -AdjustEvent adjustEvent = new AdjustEvent("abc123"); -//... -Adjust.trackEvent(adjustEvent); -``` diff --git a/src/code-snippets/unity/examples/AdjustEvent/setCallbackId.mdx b/src/code-snippets/unity/examples/AdjustEvent/setCallbackId.mdx deleted file mode 100644 index 106c61192..000000000 --- a/src/code-snippets/unity/examples/AdjustEvent/setCallbackId.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustEvent adjustEvent = new AdjustEvent("abc123"); -//... -adjustEvent.setCallbackId("{your_callback_id}"); -//... -Adjust.trackEvent(adjustEvent); -``` diff --git a/src/code-snippets/unity/examples/AdjustEvent/setRevenue.mdx b/src/code-snippets/unity/examples/AdjustEvent/setRevenue.mdx deleted file mode 100644 index ae8a4fcfa..000000000 --- a/src/code-snippets/unity/examples/AdjustEvent/setRevenue.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustEvent adjustEvent = new AdjustEvent("abc123"); -//... -adjustEvent.setRevenue(0.01, "EUR"); -//... -Adjust.trackEvent(adjustEvent); -``` diff --git a/src/code-snippets/unity/examples/AdjustEvent/setTransactionId.mdx b/src/code-snippets/unity/examples/AdjustEvent/setTransactionId.mdx deleted file mode 100644 index 7e8de00de..000000000 --- a/src/code-snippets/unity/examples/AdjustEvent/setTransactionId.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustEvent adjustEvent = new AdjustEvent("abc123"); -//... -adjustEvent.setTransactionId("transactionId"); -//... -Adjust.trackEvent(adjustEvent); -``` diff --git a/src/code-snippets/unity/examples/AdjustPlayStoreSubscription/addCallbackParameter.mdx b/src/code-snippets/unity/examples/AdjustPlayStoreSubscription/addCallbackParameter.mdx deleted file mode 100644 index 4c8f2a9bd..000000000 --- a/src/code-snippets/unity/examples/AdjustPlayStoreSubscription/addCallbackParameter.mdx +++ /dev/null @@ -1,12 +0,0 @@ -```c# -AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription( - price, - currency, - sku, - orderId, - signature, - purchaseToken); -//... -subscription.addCallbackParameter("key1", "value1"); -subscription.addCallbackParameter("key2", "value2"); -``` diff --git a/src/code-snippets/unity/examples/AdjustPlayStoreSubscription/addPartnerParameter.mdx b/src/code-snippets/unity/examples/AdjustPlayStoreSubscription/addPartnerParameter.mdx deleted file mode 100644 index 7259953e5..000000000 --- a/src/code-snippets/unity/examples/AdjustPlayStoreSubscription/addPartnerParameter.mdx +++ /dev/null @@ -1,12 +0,0 @@ -```c# -AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription( - price, - currency, - sku, - orderId, - signature, - purchaseToken); -//... -subscription.addPartnerParameter("key1", "value1"); -subscription.addPartnerParameter("key2", "value2"); -``` diff --git a/src/code-snippets/unity/examples/AdjustPlayStoreSubscription/adjustPlayStoreSubscription.mdx b/src/code-snippets/unity/examples/AdjustPlayStoreSubscription/adjustPlayStoreSubscription.mdx deleted file mode 100644 index b16341a43..000000000 --- a/src/code-snippets/unity/examples/AdjustPlayStoreSubscription/adjustPlayStoreSubscription.mdx +++ /dev/null @@ -1,9 +0,0 @@ -```c# -AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription( - price, - currency, - sku, - orderId, - signature, - purchaseToken); -``` diff --git a/src/code-snippets/unity/examples/AdjustPlayStoreSubscription/setPurchaseTime.mdx b/src/code-snippets/unity/examples/AdjustPlayStoreSubscription/setPurchaseTime.mdx deleted file mode 100644 index ec54b151b..000000000 --- a/src/code-snippets/unity/examples/AdjustPlayStoreSubscription/setPurchaseTime.mdx +++ /dev/null @@ -1,10 +0,0 @@ -```c# -AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription( - price, - currency, - sku, - orderId, - signature, - purchaseToken); -subscription.setPurchaseTime(purchaseTime); -``` diff --git a/src/code-snippets/unity/examples/AdjustThirdPartySharing/addGranularOption.mdx b/src/code-snippets/unity/examples/AdjustThirdPartySharing/addGranularOption.mdx deleted file mode 100644 index 6a9556eab..000000000 --- a/src/code-snippets/unity/examples/AdjustThirdPartySharing/addGranularOption.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -AdjustThirdPartySharing adjustThirdPartySharing = new AdjustThirdPartySharing(null); -//... -adjustThirdPartySharing.addGranularOption("PartnerA", "key", "value"); -//... -Adjust.trackThirdPartySharing(adjustThirdPartySharing); -``` diff --git a/src/code-snippets/unity/examples/AdjustThirdPartySharing/addGranularOptionFacebook.mdx b/src/code-snippets/unity/examples/AdjustThirdPartySharing/addGranularOptionFacebook.mdx deleted file mode 100644 index 2d55b7ac0..000000000 --- a/src/code-snippets/unity/examples/AdjustThirdPartySharing/addGranularOptionFacebook.mdx +++ /dev/null @@ -1,8 +0,0 @@ -```c# -AdjustThirdPartySharing adjustThirdPartySharing = new AdjustThirdPartySharing(null); -//... -adjustThirdPartySharing.addGranularOption("facebook", "data_processing_options_country", "1"); -adjustThirdPartySharing.addGranularOption("facebook", "data_processing_options_state", "1000"); -//... -Adjust.trackThirdPartySharing(adjustThirdPartySharing); -``` diff --git a/src/code-snippets/unity/examples/AdjustThirdPartySharing/addPartnerSharingSetting.mdx b/src/code-snippets/unity/examples/AdjustThirdPartySharing/addPartnerSharingSetting.mdx deleted file mode 100644 index 339e613aa..000000000 --- a/src/code-snippets/unity/examples/AdjustThirdPartySharing/addPartnerSharingSetting.mdx +++ /dev/null @@ -1,6 +0,0 @@ -```c# -AdjustThirdPartySharing adjustThirdPartySharing = new AdjustThirdPartySharing(null); -//... -adjustThirdPartySharing.addPartnerSharingSetting("PartnerA", "foo", false); -Adjust.trackThirdPartySharing(adjustThirdPartySharing); -``` diff --git a/src/code-snippets/unity/examples/AdjustThirdPartySharing/initFalse.mdx b/src/code-snippets/unity/examples/AdjustThirdPartySharing/initFalse.mdx deleted file mode 100644 index 600b3b712..000000000 --- a/src/code-snippets/unity/examples/AdjustThirdPartySharing/initFalse.mdx +++ /dev/null @@ -1,5 +0,0 @@ -```c# "false" -AdjustThirdPartySharing adjustThirdPartySharing = new AdjustThirdPartySharing(false); -//... -Adjust.trackThirdPartySharing(adjustThirdPartySharing); -``` diff --git a/src/code-snippets/unity/examples/AdjustThirdPartySharing/initTrue.mdx b/src/code-snippets/unity/examples/AdjustThirdPartySharing/initTrue.mdx deleted file mode 100644 index 505d5ac8f..000000000 --- a/src/code-snippets/unity/examples/AdjustThirdPartySharing/initTrue.mdx +++ /dev/null @@ -1,5 +0,0 @@ -```c# "true" -AdjustThirdPartySharing adjustThirdPartySharing = new AdjustThirdPartySharing(true); -//... -Adjust.trackThirdPartySharing(adjustThirdPartySharing); -``` diff --git a/src/code-snippets/unity/signatures/Adjust/addSessionCallbackParameter.mdx b/src/code-snippets/unity/signatures/Adjust/addSessionCallbackParameter.mdx deleted file mode 100644 index 3094a3df1..000000000 --- a/src/code-snippets/unity/signatures/Adjust/addSessionCallbackParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void addSessionCallbackParameter(string key, string value) -``` diff --git a/src/code-snippets/unity/signatures/Adjust/addSessionPartnerParameter.mdx b/src/code-snippets/unity/signatures/Adjust/addSessionPartnerParameter.mdx deleted file mode 100644 index 0c3c37b5f..000000000 --- a/src/code-snippets/unity/signatures/Adjust/addSessionPartnerParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void addSessionPartnerParameter(string key, string value) -``` diff --git a/src/code-snippets/unity/signatures/Adjust/appTrackingAuthorizationStatus.mdx b/src/code-snippets/unity/signatures/Adjust/appTrackingAuthorizationStatus.mdx deleted file mode 100644 index 784292643..000000000 --- a/src/code-snippets/unity/signatures/Adjust/appTrackingAuthorizationStatus.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static int getAppTrackingAuthorizationStatus() -``` diff --git a/src/code-snippets/unity/signatures/Adjust/checkForNewAttStatus.mdx b/src/code-snippets/unity/signatures/Adjust/checkForNewAttStatus.mdx deleted file mode 100644 index 138cc4745..000000000 --- a/src/code-snippets/unity/signatures/Adjust/checkForNewAttStatus.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void checkForNewAttStatus() -``` diff --git a/src/code-snippets/unity/signatures/Adjust/disableThirdPartySharing.mdx b/src/code-snippets/unity/signatures/Adjust/disableThirdPartySharing.mdx deleted file mode 100644 index c4c9b5444..000000000 --- a/src/code-snippets/unity/signatures/Adjust/disableThirdPartySharing.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void disableThirdPartySharing() -``` diff --git a/src/code-snippets/unity/signatures/Adjust/gdprForgetMe.mdx b/src/code-snippets/unity/signatures/Adjust/gdprForgetMe.mdx deleted file mode 100644 index 314bf1888..000000000 --- a/src/code-snippets/unity/signatures/Adjust/gdprForgetMe.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void gdprForgetMe() -``` diff --git a/src/code-snippets/unity/signatures/Adjust/getAdid.mdx b/src/code-snippets/unity/signatures/Adjust/getAdid.mdx deleted file mode 100644 index d0391c287..000000000 --- a/src/code-snippets/unity/signatures/Adjust/getAdid.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static string getAdid() -``` diff --git a/src/code-snippets/unity/signatures/Adjust/getAmazonAdId.mdx b/src/code-snippets/unity/signatures/Adjust/getAmazonAdId.mdx deleted file mode 100644 index 68a3f041d..000000000 --- a/src/code-snippets/unity/signatures/Adjust/getAmazonAdId.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static string getAmazonAdId() -``` diff --git a/src/code-snippets/unity/signatures/Adjust/getAttribution.mdx b/src/code-snippets/unity/signatures/Adjust/getAttribution.mdx deleted file mode 100644 index 27473e5f1..000000000 --- a/src/code-snippets/unity/signatures/Adjust/getAttribution.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static AdjustAttribution getAttribution() -``` diff --git a/src/code-snippets/unity/signatures/Adjust/getGoogleAdId.mdx b/src/code-snippets/unity/signatures/Adjust/getGoogleAdId.mdx deleted file mode 100644 index b5b91625b..000000000 --- a/src/code-snippets/unity/signatures/Adjust/getGoogleAdId.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void getGoogleAdId(Action onDeviceIdsRead) -``` diff --git a/src/code-snippets/unity/signatures/Adjust/getIdfa.mdx b/src/code-snippets/unity/signatures/Adjust/getIdfa.mdx deleted file mode 100644 index e67114c78..000000000 --- a/src/code-snippets/unity/signatures/Adjust/getIdfa.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static string getIdfa() -``` diff --git a/src/code-snippets/unity/signatures/Adjust/isEnabled.mdx b/src/code-snippets/unity/signatures/Adjust/isEnabled.mdx deleted file mode 100644 index 868adf4de..000000000 --- a/src/code-snippets/unity/signatures/Adjust/isEnabled.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static bool isEnabled() -``` diff --git a/src/code-snippets/unity/signatures/Adjust/removeSessionCallbackParameter.mdx b/src/code-snippets/unity/signatures/Adjust/removeSessionCallbackParameter.mdx deleted file mode 100644 index 3391d7d7e..000000000 --- a/src/code-snippets/unity/signatures/Adjust/removeSessionCallbackParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void removeSessionCallbackParameter(string key) -``` diff --git a/src/code-snippets/unity/signatures/Adjust/removeSessionPartnerParameter.mdx b/src/code-snippets/unity/signatures/Adjust/removeSessionPartnerParameter.mdx deleted file mode 100644 index 0d522315c..000000000 --- a/src/code-snippets/unity/signatures/Adjust/removeSessionPartnerParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void removeSessionPartnerParameter(string key) -``` diff --git a/src/code-snippets/unity/signatures/Adjust/requestTrackingAuthorization.mdx b/src/code-snippets/unity/signatures/Adjust/requestTrackingAuthorization.mdx deleted file mode 100644 index 678a581a2..000000000 --- a/src/code-snippets/unity/signatures/Adjust/requestTrackingAuthorization.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void requestTrackingAuthorizationWithCompletionHandler(Action statusCallback, string sceneName = "Adjust") -``` diff --git a/src/code-snippets/unity/signatures/Adjust/resetSessionCallbackParameters.mdx b/src/code-snippets/unity/signatures/Adjust/resetSessionCallbackParameters.mdx deleted file mode 100644 index a470b5398..000000000 --- a/src/code-snippets/unity/signatures/Adjust/resetSessionCallbackParameters.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void resetSessionCallbackParameters() -``` diff --git a/src/code-snippets/unity/signatures/Adjust/resetSessionPartnerParameters.mdx b/src/code-snippets/unity/signatures/Adjust/resetSessionPartnerParameters.mdx deleted file mode 100644 index 78d76d7da..000000000 --- a/src/code-snippets/unity/signatures/Adjust/resetSessionPartnerParameters.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void resetSessionPartnerParameters() -``` diff --git a/src/code-snippets/unity/signatures/Adjust/sendFirstPackages.mdx b/src/code-snippets/unity/signatures/Adjust/sendFirstPackages.mdx deleted file mode 100644 index 9b4ddba21..000000000 --- a/src/code-snippets/unity/signatures/Adjust/sendFirstPackages.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void sendFirstPackages() -``` diff --git a/src/code-snippets/unity/signatures/Adjust/setDeviceToken.mdx b/src/code-snippets/unity/signatures/Adjust/setDeviceToken.mdx deleted file mode 100644 index 7f1d207a6..000000000 --- a/src/code-snippets/unity/signatures/Adjust/setDeviceToken.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void setDeviceToken(string deviceToken) -``` diff --git a/src/code-snippets/unity/signatures/Adjust/setEnabled.mdx b/src/code-snippets/unity/signatures/Adjust/setEnabled.mdx deleted file mode 100644 index 16f599188..000000000 --- a/src/code-snippets/unity/signatures/Adjust/setEnabled.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void setEnabled(bool enabled) -``` diff --git a/src/code-snippets/unity/signatures/Adjust/setOfflineMode.mdx b/src/code-snippets/unity/signatures/Adjust/setOfflineMode.mdx deleted file mode 100644 index 3f4efc850..000000000 --- a/src/code-snippets/unity/signatures/Adjust/setOfflineMode.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void setOfflineMode(bool enabled) -``` diff --git a/src/code-snippets/unity/signatures/Adjust/trackAdRevenue.mdx b/src/code-snippets/unity/signatures/Adjust/trackAdRevenue.mdx deleted file mode 100644 index cfc0e0fd6..000000000 --- a/src/code-snippets/unity/signatures/Adjust/trackAdRevenue.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void trackAdRevenue(string source, string payload) -``` diff --git a/src/code-snippets/unity/signatures/Adjust/trackAppStoreSubscription.mdx b/src/code-snippets/unity/signatures/Adjust/trackAppStoreSubscription.mdx deleted file mode 100644 index caab47c88..000000000 --- a/src/code-snippets/unity/signatures/Adjust/trackAppStoreSubscription.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void trackAppStoreSubscription(AdjustAppStoreSubscription subscription) -``` diff --git a/src/code-snippets/unity/signatures/Adjust/trackEvent.mdx b/src/code-snippets/unity/signatures/Adjust/trackEvent.mdx deleted file mode 100644 index 266c09eb2..000000000 --- a/src/code-snippets/unity/signatures/Adjust/trackEvent.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void trackEvent(AdjustEvent adjustEvent) -``` diff --git a/src/code-snippets/unity/signatures/Adjust/trackMeasurementConsent.mdx b/src/code-snippets/unity/signatures/Adjust/trackMeasurementConsent.mdx deleted file mode 100644 index 49b92e454..000000000 --- a/src/code-snippets/unity/signatures/Adjust/trackMeasurementConsent.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void trackMeasurementConsent(bool measurementConsent) -``` diff --git a/src/code-snippets/unity/signatures/Adjust/trackPlayStoreSubscription.mdx b/src/code-snippets/unity/signatures/Adjust/trackPlayStoreSubscription.mdx deleted file mode 100644 index 3acdd3a99..000000000 --- a/src/code-snippets/unity/signatures/Adjust/trackPlayStoreSubscription.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void trackPlayStoreSubscription(AdjustPlayStoreSubscription subscription) -``` diff --git a/src/code-snippets/unity/signatures/Adjust/trackThirdPartySharing.mdx b/src/code-snippets/unity/signatures/Adjust/trackThirdPartySharing.mdx deleted file mode 100644 index 4b63a5e0a..000000000 --- a/src/code-snippets/unity/signatures/Adjust/trackThirdPartySharing.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void trackThirdPartySharing(AdjustThirdPartySharing thirdPartySharing) -``` diff --git a/src/code-snippets/unity/signatures/Adjust/updateConversionValue.mdx b/src/code-snippets/unity/signatures/Adjust/updateConversionValue.mdx deleted file mode 100644 index fa61dc8d0..000000000 --- a/src/code-snippets/unity/signatures/Adjust/updateConversionValue.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void updateConversionValue(int conversionValue) -``` diff --git a/src/code-snippets/unity/signatures/AdjustAdRevenue/addCallbackParameter.mdx b/src/code-snippets/unity/signatures/AdjustAdRevenue/addCallbackParameter.mdx deleted file mode 100644 index ce33a7eb2..000000000 --- a/src/code-snippets/unity/signatures/AdjustAdRevenue/addCallbackParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void addCallbackParameter(string key, string value) -``` diff --git a/src/code-snippets/unity/signatures/AdjustAdRevenue/addPartnerParameter.mdx b/src/code-snippets/unity/signatures/AdjustAdRevenue/addPartnerParameter.mdx deleted file mode 100644 index 73d65a444..000000000 --- a/src/code-snippets/unity/signatures/AdjustAdRevenue/addPartnerParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void addPartnerParameter(string key, string value) -``` diff --git a/src/code-snippets/unity/signatures/AdjustAdRevenue/constructor.mdx b/src/code-snippets/unity/signatures/AdjustAdRevenue/constructor.mdx deleted file mode 100644 index f7a319253..000000000 --- a/src/code-snippets/unity/signatures/AdjustAdRevenue/constructor.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public AdjustAdRevenue(string source) -``` diff --git a/src/code-snippets/unity/signatures/AdjustAdRevenue/setAdImpressionsCount.mdx b/src/code-snippets/unity/signatures/AdjustAdRevenue/setAdImpressionsCount.mdx deleted file mode 100644 index f0aa1250d..000000000 --- a/src/code-snippets/unity/signatures/AdjustAdRevenue/setAdImpressionsCount.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setAdImpressionsCount(int adImpressionsCount) -``` diff --git a/src/code-snippets/unity/signatures/AdjustAdRevenue/setAdRevenueNetwork.mdx b/src/code-snippets/unity/signatures/AdjustAdRevenue/setAdRevenueNetwork.mdx deleted file mode 100644 index 576e715e0..000000000 --- a/src/code-snippets/unity/signatures/AdjustAdRevenue/setAdRevenueNetwork.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setAdRevenueNetwork(string adRevenueNetwork) -``` diff --git a/src/code-snippets/unity/signatures/AdjustAdRevenue/setAdRevenuePlacement.mdx b/src/code-snippets/unity/signatures/AdjustAdRevenue/setAdRevenuePlacement.mdx deleted file mode 100644 index f58233079..000000000 --- a/src/code-snippets/unity/signatures/AdjustAdRevenue/setAdRevenuePlacement.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setAdRevenuePlacement(string adRevenuePlacement) -``` diff --git a/src/code-snippets/unity/signatures/AdjustAdRevenue/setAdRevenueUnit.mdx b/src/code-snippets/unity/signatures/AdjustAdRevenue/setAdRevenueUnit.mdx deleted file mode 100644 index c08dc52d2..000000000 --- a/src/code-snippets/unity/signatures/AdjustAdRevenue/setAdRevenueUnit.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setAdRevenueUnit(string adRevenueUnit) -``` diff --git a/src/code-snippets/unity/signatures/AdjustAdRevenue/setRevenue.mdx b/src/code-snippets/unity/signatures/AdjustAdRevenue/setRevenue.mdx deleted file mode 100644 index 7dbb3d754..000000000 --- a/src/code-snippets/unity/signatures/AdjustAdRevenue/setRevenue.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setRevenue(double amount, string currency) -``` diff --git a/src/code-snippets/unity/signatures/AdjustAppStoreSubscription/addCallbackParameter.mdx b/src/code-snippets/unity/signatures/AdjustAppStoreSubscription/addCallbackParameter.mdx deleted file mode 100644 index ce33a7eb2..000000000 --- a/src/code-snippets/unity/signatures/AdjustAppStoreSubscription/addCallbackParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void addCallbackParameter(string key, string value) -``` diff --git a/src/code-snippets/unity/signatures/AdjustAppStoreSubscription/addPartnerParameter.mdx b/src/code-snippets/unity/signatures/AdjustAppStoreSubscription/addPartnerParameter.mdx deleted file mode 100644 index 73d65a444..000000000 --- a/src/code-snippets/unity/signatures/AdjustAppStoreSubscription/addPartnerParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void addPartnerParameter(string key, string value) -``` diff --git a/src/code-snippets/unity/signatures/AdjustAppStoreSubscription/constructor.mdx b/src/code-snippets/unity/signatures/AdjustAppStoreSubscription/constructor.mdx deleted file mode 100644 index b11097f28..000000000 --- a/src/code-snippets/unity/signatures/AdjustAppStoreSubscription/constructor.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public AdjustAppStoreSubscription(string price, string currency, string transactionId, string receipt) -``` diff --git a/src/code-snippets/unity/signatures/AdjustAppStoreSubscription/setSalesRegion.mdx b/src/code-snippets/unity/signatures/AdjustAppStoreSubscription/setSalesRegion.mdx deleted file mode 100644 index 19be9eda9..000000000 --- a/src/code-snippets/unity/signatures/AdjustAppStoreSubscription/setSalesRegion.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setSalesRegion(string salesRegion) -``` diff --git a/src/code-snippets/unity/signatures/AdjustAppStoreSubscription/setTransactionDate.mdx b/src/code-snippets/unity/signatures/AdjustAppStoreSubscription/setTransactionDate.mdx deleted file mode 100644 index d43fb6bdf..000000000 --- a/src/code-snippets/unity/signatures/AdjustAppStoreSubscription/setTransactionDate.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setTransactionDate(string transactionDate) -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/constructor.mdx b/src/code-snippets/unity/signatures/AdjustConfig/constructor.mdx deleted file mode 100644 index cc397e686..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/constructor.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public AdjustConfig(string appToken, AdjustEnvironment environment, bool allowSuppressLogLevel) -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/deactivateSKAdNetworkHandling.mdx b/src/code-snippets/unity/signatures/AdjustConfig/deactivateSKAdNetworkHandling.mdx deleted file mode 100644 index 5e14858fe..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/deactivateSKAdNetworkHandling.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void deactivateSKAdNetworkHandling() -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/sendInBackground.mdx b/src/code-snippets/unity/signatures/AdjustConfig/sendInBackground.mdx deleted file mode 100644 index 10f2ecb20..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/sendInBackground.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setSendInBackground(bool sendInBackground) -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setAttributionChangedDelegate.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setAttributionChangedDelegate.mdx deleted file mode 100644 index 2db819a58..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setAttributionChangedDelegate.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setAttributionChangedDelegate(Action attributionChangedDelegate, string sceneName = "Adjust") -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setConversionValueUpdatedDelegate.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setConversionValueUpdatedDelegate.mdx deleted file mode 100644 index 0cda53822..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setConversionValueUpdatedDelegate.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setConversionValueUpdatedDelegate(Action conversionValueUpdatedDelegate, string sceneName = "Adjust") -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setCoppaCompliantEnabled.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setCoppaCompliantEnabled.mdx deleted file mode 100644 index b106504a9..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setCoppaCompliantEnabled.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setCoppaCompliantEnabled(bool coppaCompliantEnabled) -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setDefaultTracker.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setDefaultTracker.mdx deleted file mode 100644 index 28422d520..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setDefaultTracker.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setDefaultTracker(string defaultTracker) -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setDelayStart.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setDelayStart.mdx deleted file mode 100644 index bffea4a62..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setDelayStart.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setDelayStart(double delayStart) -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setEventBufferingEnabled.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setEventBufferingEnabled.mdx deleted file mode 100644 index 4612b66ff..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setEventBufferingEnabled.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setEventBufferingEnabled(bool eventBufferingEnabled) -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setEventFailureDelegate.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setEventFailureDelegate.mdx deleted file mode 100644 index 782013127..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setEventFailureDelegate.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setEventFailureDelegate(Action eventFailureDelegate, string sceneName = "Adjust") -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setEventSuccessDelegate.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setEventSuccessDelegate.mdx deleted file mode 100644 index 503e92307..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setEventSuccessDelegate.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setEventSuccessDelegate(Action eventSuccessDelegate, string sceneName = "Adjust") -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setExternalDeviceId.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setExternalDeviceId.mdx deleted file mode 100644 index 41c8f3be5..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setExternalDeviceId.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setExternalDeviceId(string externalDeviceId) -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setLaunchDeferredDeeplink.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setLaunchDeferredDeeplink.mdx deleted file mode 100644 index cceb7b3b4..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setLaunchDeferredDeeplink.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setLaunchDeferredDeeplink(bool launchDeferredDeeplink) -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setLinkMeEnabled.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setLinkMeEnabled.mdx deleted file mode 100644 index 489e1863e..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setLinkMeEnabled.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setLinkMeEnabled(bool linkMeEnabled) -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setLogDelegate.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setLogDelegate.mdx deleted file mode 100644 index 658b8febf..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setLogDelegate.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setLogDelegate(Action logDelegate) -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setLogLevel.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setLogLevel.mdx deleted file mode 100644 index aa3f3266f..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setLogLevel.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setLogLevel(AdjustLogLevel logLevel) -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setNeedsCost.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setNeedsCost.mdx deleted file mode 100644 index 51a08d212..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setNeedsCost.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setNeedsCost(bool needsCost) -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setPreinstallFilePath.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setPreinstallFilePath.mdx deleted file mode 100644 index d06bb3a6b..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setPreinstallFilePath.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setPreinstallFilePath(string preinstallFilePath) -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setPreinstallTrackingEnabled.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setPreinstallTrackingEnabled.mdx deleted file mode 100644 index f2ab7230e..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setPreinstallTrackingEnabled.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setPreinstallTrackingEnabled(bool preinstallTrackingEnabled) -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setSessionFailureDelegate.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setSessionFailureDelegate.mdx deleted file mode 100644 index f6f7db8a7..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setSessionFailureDelegate.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setSessionFailureDelegate(Action sessionFailureDelegate, string sceneName = "Adjust") -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setSessionSuccessDelegate.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setSessionSuccessDelegate.mdx deleted file mode 100644 index 1a629c140..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setSessionSuccessDelegate.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setSessionSuccessDelegate(Action sessionSuccessDelegate, string sceneName = "Adjust") -``` diff --git a/src/code-snippets/unity/signatures/AdjustConfig/setUrlStrategy.mdx b/src/code-snippets/unity/signatures/AdjustConfig/setUrlStrategy.mdx deleted file mode 100644 index 98c7552f5..000000000 --- a/src/code-snippets/unity/signatures/AdjustConfig/setUrlStrategy.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setUrlStrategy(String urlStrategy) -``` diff --git a/src/code-snippets/unity/signatures/AdjustEvent/addCallbackParameter.mdx b/src/code-snippets/unity/signatures/AdjustEvent/addCallbackParameter.mdx deleted file mode 100644 index ce33a7eb2..000000000 --- a/src/code-snippets/unity/signatures/AdjustEvent/addCallbackParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void addCallbackParameter(string key, string value) -``` diff --git a/src/code-snippets/unity/signatures/AdjustEvent/addPartnerParameter.mdx b/src/code-snippets/unity/signatures/AdjustEvent/addPartnerParameter.mdx deleted file mode 100644 index 73d65a444..000000000 --- a/src/code-snippets/unity/signatures/AdjustEvent/addPartnerParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void addPartnerParameter(string key, string value) -``` diff --git a/src/code-snippets/unity/signatures/AdjustEvent/constructor.mdx b/src/code-snippets/unity/signatures/AdjustEvent/constructor.mdx deleted file mode 100644 index 98fce8b2b..000000000 --- a/src/code-snippets/unity/signatures/AdjustEvent/constructor.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -public AdjustEvent(string eventToken) -{ - this.eventToken = eventToken; - this.isReceiptSet = false; -} -``` diff --git a/src/code-snippets/unity/signatures/AdjustEvent/setCallbackId.mdx b/src/code-snippets/unity/signatures/AdjustEvent/setCallbackId.mdx deleted file mode 100644 index 2bef45b39..000000000 --- a/src/code-snippets/unity/signatures/AdjustEvent/setCallbackId.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setCallbackId(string callbackId) -``` diff --git a/src/code-snippets/unity/signatures/AdjustEvent/setRevenue.mdx b/src/code-snippets/unity/signatures/AdjustEvent/setRevenue.mdx deleted file mode 100644 index 7dbb3d754..000000000 --- a/src/code-snippets/unity/signatures/AdjustEvent/setRevenue.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setRevenue(double amount, string currency) -``` diff --git a/src/code-snippets/unity/signatures/AdjustEvent/setTransactionId.mdx b/src/code-snippets/unity/signatures/AdjustEvent/setTransactionId.mdx deleted file mode 100644 index 26dbc9ffd..000000000 --- a/src/code-snippets/unity/signatures/AdjustEvent/setTransactionId.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setTransactionId(string transactionId) -``` diff --git a/src/code-snippets/unity/signatures/AdjustPlayStoreSubscription/addCallbackParameter.mdx b/src/code-snippets/unity/signatures/AdjustPlayStoreSubscription/addCallbackParameter.mdx deleted file mode 100644 index ce33a7eb2..000000000 --- a/src/code-snippets/unity/signatures/AdjustPlayStoreSubscription/addCallbackParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void addCallbackParameter(string key, string value) -``` diff --git a/src/code-snippets/unity/signatures/AdjustPlayStoreSubscription/addPartnerParameter.mdx b/src/code-snippets/unity/signatures/AdjustPlayStoreSubscription/addPartnerParameter.mdx deleted file mode 100644 index 73d65a444..000000000 --- a/src/code-snippets/unity/signatures/AdjustPlayStoreSubscription/addPartnerParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void addPartnerParameter(string key, string value) -``` diff --git a/src/code-snippets/unity/signatures/AdjustPlayStoreSubscription/constructor.mdx b/src/code-snippets/unity/signatures/AdjustPlayStoreSubscription/constructor.mdx deleted file mode 100644 index 36e9e148b..000000000 --- a/src/code-snippets/unity/signatures/AdjustPlayStoreSubscription/constructor.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public AdjustPlayStoreSubscription(string price, string currency, string sku, string orderId, string signature, string purchaseToken) -``` diff --git a/src/code-snippets/unity/signatures/AdjustPlayStoreSubscription/setPurchaseTime.mdx b/src/code-snippets/unity/signatures/AdjustPlayStoreSubscription/setPurchaseTime.mdx deleted file mode 100644 index cf6574f65..000000000 --- a/src/code-snippets/unity/signatures/AdjustPlayStoreSubscription/setPurchaseTime.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setPurchaseTime(string purchaseTime) -``` diff --git a/src/code-snippets/unity/signatures/AdjustThirdPartySharing/addGranularOption.mdx b/src/code-snippets/unity/signatures/AdjustThirdPartySharing/addGranularOption.mdx deleted file mode 100644 index 3c25882d7..000000000 --- a/src/code-snippets/unity/signatures/AdjustThirdPartySharing/addGranularOption.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void addGranularOption(string partnerName, string key, string value) -``` diff --git a/src/code-snippets/unity/signatures/AdjustThirdPartySharing/addPartnerSharingSetting.mdx b/src/code-snippets/unity/signatures/AdjustThirdPartySharing/addPartnerSharingSetting.mdx deleted file mode 100644 index 20125aa3d..000000000 --- a/src/code-snippets/unity/signatures/AdjustThirdPartySharing/addPartnerSharingSetting.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void addPartnerSharingSetting(string partnerName, string key, bool value) -``` diff --git a/src/code-snippets/unity/signatures/AdjustThirdPartySharing/constructor.mdx b/src/code-snippets/unity/signatures/AdjustThirdPartySharing/constructor.mdx deleted file mode 100644 index f12bf33bf..000000000 --- a/src/code-snippets/unity/signatures/AdjustThirdPartySharing/constructor.mdx +++ /dev/null @@ -1,8 +0,0 @@ -```c# -public AdjustThirdPartySharing(bool? isEnabled) -{ - this.isEnabled = isEnabled; - this.granularOptions = new Dictionary>(); - this.partnerSharingSettings = new Dictionary>(); -} -``` diff --git a/src/content/docs/sdk/android/setup/preinstalled.mdx b/src/content/docs/sdk/android/setup/preinstalled.mdx index afae9e5b2..77f10195c 100644 --- a/src/content/docs/sdk/android/setup/preinstalled.mdx +++ b/src/content/docs/sdk/android/setup/preinstalled.mdx @@ -50,11 +50,11 @@ The Adjust SDK provides 5 methods for measuring preinstalled apps: - [Content provider](#content-provider) - [System installer receiver](#system-installer-receiver) - [World-readable directory](#world-readable-directory) -- [Default campaign token](#default-campaign-token) +- [Default link token](#default-link-token) ## System properties -Original Equipment Manufacturer (OEM) partners can leverage Android system properties to attribute preinstalled apps. The OEM (Original Equipment Manufacturer) writes attribution information to a file and adds its path to the system properties. The Adjust SDK reads this file on initialization to attribute the install. +Original Equipment Manufacturer (OEM) partners can leverage Android system properties to attribute preinstalled apps. The OEM (Original Equipment Manufacturer) writes attribution information to a file and adds its path to the system properties. The Adjust SDK reads this file on initialization to attribute the install. ## Content provider diff --git a/src/content/docs/sdk/unity/configuration.mdx b/src/content/docs/sdk/unity/configuration.mdx new file mode 100644 index 000000000..537b42f36 --- /dev/null +++ b/src/content/docs/sdk/unity/configuration.mdx @@ -0,0 +1,266 @@ +--- +title: Configuration +description: Follow the guides in this section to configure the Adjust SDK. +slug: en/sdk/unity/configuration +sidebar-position: 1 +--- + +Use the methods in this document to configure the behavior of the Adjust SDK. + +## Instantiate your config object + +```cs title="Method signature" +public AdjustConfig(string appToken, AdjustEnvironment environment, bool allowSuppressLogLevel) +``` + +To configure the Adjust SDK, you need to instantiate an `AdjustConfig` object. This object contains the **read-only** configuration options that you need to pass to the Adjust SDK. + +To instantiate your config object, create a new `AdjustConfig` instance and pass the following parameters: + +- `appToken` (**String**): Your [Adjust app token](https://help.adjust.com/en/article/app-token-and-reporting-currency#view-your-app-details). +- `environment` (**AdjustEnvironment**): The environment you want to run the SDK in. Pass `AdjustEnvironment.sandbox` to run the SDK in sandbox mode for testing. Pass `AdjustEnvironment.production` to run the SDK in production mode for release. +- `allowSuppressLogLevel` (Boolean): Whether to suppress all logging. Set to `true` to suppress logging or `false` to enable logging. + +```cs {1} +AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); +// ... +Adjust.start(adjustConfig); +``` + +## Read-only configuration + +**Read-only** configuration options are set in your `AdjustConfig` instance **before** the initialization of the SDK. They can't be changed while the SDK is running. You MUST configure any options you want to use before running `Adjust.start()`. + +### Set your logging level + +```cs title="Method signature" +public void setLogLevel(AdjustLogLevel logLevel); +``` + +The Adjust SDK provides configurable log levels to return different amounts of information. The following log levels are available: + + + +| Log level | Description | +| ------------------------- | ------------------------------------------ | +| `AdjustLogLevel.Verbose` | Enable all logging | +| `AdjustLogLevel.Debug` | Enable debug logging | +| `AdjustLogLevel.Info` | Only show info level logs (default option) | +| `AdjustLogLevel.Warn` | Disable info logging | +| `AdjustLogLevel.Error` | Disable warning level logging and below | +| `AdjustLogLevel.Assert` | Disable error level logging and below | +| `AdjustLogLevel.Suppress` | Suppress all logging | + +
+ +You can set your log level by calling the `setLogLevel` method on your `AdjustConfig` instance with the following parameter: + +- `logLevel` (**LogLevel**): The log level you want to use. + +```cs {3} +AdjustConfig config = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); +//... +config.setLogLevel(AdjustLogLevel.Error); +//... +Adjust.start(config); +``` + +### Set external device identifier + +```cs title="Method signature" +public void setExternalDeviceId(string externalDeviceId); +``` + +An external device identifier is a custom value that you can assign to a device or user. They help you recognize users across sessions and platforms. They can also help you deduplicate installs by user so that a user isn't counted as duplicate new installs. Contact your Adjust representative to get started with external device IDs. + +You can use an external device ID as a custom identifier for a device. This helps you keep continuity with your other systems. You can set property calling the `setExternalDeviceId` method with the following parameter: + +- `externalDeviceId` (**String**): Your external device identifier. This value is **case sensitive**. If you have imported external device IDs, make sure the value you pass matches the imported value. + + + +See the [External device identifiers article](https://help.adjust.com/en/article/external-device-identifiers) in the Adjust help center for more information. + + + +```cs {3} +AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); +//... +adjustConfig.setExternalDeviceId("{Your-External-Device-Id}"); +//... +Adjust.start(adjustConfig); +``` + +If you want to use the external device ID in your business analytics, you can pass it as a [session callback parameter](/en/sdk/flutter/features/session-parameters). + +You can import existing external device IDs into Adjust. This ensures that the Adjust servers match future data to your existing device records. Contact your Adjust representative for more information. + +### Set default link token + +```cs title="Method signature" +public void setDefaultTracker(string defaultTracker); +``` + +You can configure a default link token if your app is preinstalled on a device. When a user opens the preinstalled app for the first time, the install is attributed to the default link token. To set your default link token, call the `setDefaultTracker` method with the following argument: + +- `defaultTracker` (**String**): The [Adjust link token](https://help.adjust.com/en/article/links#adjust-link-token) you want to record preinstalled installs against. + +```cs {3} +AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); +//... +adjustConfig.setDefaultTracker("{TrackerToken}"); +//... +Adjust.start(adjustConfig); +``` + +### Enable cost data sending + +```cs title="Method signature" +public void setNeedsCost(bool needsCost); +``` + +By default, the Adjust SDK doesn't send cost data as part of a user's attribution. You can configure the SDK to send this data by enabling cost data sending. To enable cost data sending, call the `setNeedsCost` method on your config instance with the following parameter: + +- `needsCost` (**Boolean**): set to `true` to enable cost data sending or `false` to disable cost data sending. + +Cost data is accessible in the user's [attribution information](/en/sdk/unity/features/attribution). + +```cs {3} +AdjustConfig adjustConfig = new AdjustConfig("{Your App Token}", AdjustEnvironment.Sandbox); +adjustConfig.setLogLevel(AdjustLogLevel.Verbose); +adjustConfig.setNeedsCost(true); +``` + +### Enable background recording + +```cs title="Method signature" +public void setSendInBackground(bool sendInBackground); +``` + +By default, the Adjust SDK pauses the sending of requests when your app is running in the background. You can configure the SDK to send requests in the background by enabling the background recording. To enable background recording, call the `setSendInBackground` method on your config instance with the following parameter: + +- `sendInBackground` (**Boolean**): Set to `true` to enable background sending or `false` to disable background sending. + +```cs {3} +AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); +//... +adjustConfig.setSendInBackground(true); +//... +Adjust.start(adjustConfig); +``` + +### Enable event buffering + +```cs title="Method" +public void setEventBufferingEnabled(bool eventBufferingEnabled); +``` + +The Adjust SDK sends event information as soon as a user triggers an event in your app. You can send event information on a schedule by enabling event buffering. Event buffering stores events in a local buffer on the device and sends all requests once per minute. + +Your config object contains a boolean `eventBufferingEnabled` property that controls this behavior. You can set this property by calling the `setEventBufferingEnabled` method on your config object with the following parameter: + +- `eventBufferingEnabled` (**Boolean**): Set to `true` to enable event buffering or `false` to disable event buffering. + +```cs {3} +AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); +//... +adjustConfig.setEventBufferingEnabled(true); +//... +Adjust.start(adjustConfig); +``` + +### Delay the start of the SDK + +```cs title="Method signature" +public void setDelayStart(double delayStart); +``` + +By default, the Adjust SDK starts as soon as your app opens. If you want to send data that is not available at launch in [session parameters](/en/sdk/android/features/session-parameters), you can delay the start of the SDK. This can be helpful if you are sending information such as unique identifiers. + +To configure a startup delay, call the `setDelayStart` method with the following argument: + +- `delayStart` (**double**): The time (in seconds) by which to delay the start of the SDK. You can delay the start of the SDK by up to **10 seconds**. + +```cs {3} +AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); +//... +adjustConfig.setDelayStart(5.5); +//... +Adjust.start(adjustConfig); +``` + +## Dynamic configuration + +**Dynamic** configuration options may be changed during the SDK's lifecycle in response to events or actions taken by the user. + +### Toggle offline mode + +```cs title="Method signature" +public static void setEnabled(bool enabled); +``` + + + +The offline mode setting isn't remembered between sessions. Offline mode is disabled at the start of each new session. + + + +The Adjust SDK sends event and session data to Adjust's servers in real time. You can pause the sending of information by putting the SDK in offline mode. In offline mode the SDK stores all data in a local file on the device. The SDK sends this information to Adjust's servers when you disable offline mode. + +You can toggle offline mode at any time by calling the `setOfflineMode` method with the following argument: + +- `enabled` (Boolean): Set to `true` to enable offline mode or `false` to disable offline mode. + +```cs +Adjust.setEnabled(false); +``` + +### Set push tokens + +```cs title="Method signature" +public static void setDeviceToken(string deviceToken); +``` + +Push tokens are used for [Audience Builder](https://help.adjust.com/en/article/audience-builder) and client callbacks. They're also required for [Uninstall and reinstall tracking](https://help.adjust.com/en/article/uninstalls-reinstalls). + +Your config object contains a string `deviceToken` property that you can use to store your push token. You can update this property at any time by calling the `setDeviceToken` method and passing the following arguments: + +- `deviceToken` (**String**): Your push token. + +```cs +Adjust.setDeviceToken("{YourDeviceToken}"); +``` + +### Disable or enable the SDK + + + +You can only call this method after the first session. This setting persists between sessions. + + + +```cs title="Method signature" +public static void setEnabled(bool enabled); +``` + +The Adjust SDK runs by default when your app is open. You can disable and re-enable the Adjust SDK to pause and resume recording. When you disable the Adjust SDK, it doesn't send any data to Adjust's servers. + +You can enable or disable the SDK at any time by calling the `setEnabled` method with the following argument: + +- `enabled` (Boolean): Set to `true` to enable the SDK or `false` to disable the SDK. + +```cs +Adjust.setEnabled(false); +``` + +#### Check enabled status + +```cs title="Method signature" +public static bool isEnabled(); +``` + +You can check if the Adjust SDK is enabled at any time by calling the `isEnabled` method. This method returns a **boolean** value indicating if the SDK is **enabled** (`true`) or **disabled** (`false`). + +```cs +Adjust.isEnabled(); +``` diff --git a/src/content/docs/sdk/unity/configuration/background.mdx b/src/content/docs/sdk/unity/configuration/background.mdx deleted file mode 100644 index 629f95ad4..000000000 --- a/src/content/docs/sdk/unity/configuration/background.mdx +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: Record activity in the background -description: Configure the SDK to send requests in the background. -slug: en/sdk/unity/configuration/background ---- - -import SetSendInBackground from "@unity-examples/AdjustConfig/sendInBackground.mdx" -import SetSendInBackgroundSig from "@unity-signatures/AdjustConfig/sendInBackground.mdx" - -By default, the Adjust SDK pauses the sending of requests when your app is running in the background. You can configure the SDK to send requests in the background by enabling the background recording feature. - -Your config object contains a boolean `sendInBackground` property that controls this behavior. You can set this property by calling the `setSendInBackground` method on your config instance with a boolean value. - - - -You must set the `sendInBackground` property *before* you initialize the Adjust SDK. - - - - diff --git a/src/content/docs/sdk/unity/configuration/delay.mdx b/src/content/docs/sdk/unity/configuration/delay.mdx deleted file mode 100644 index 84d9285cb..000000000 --- a/src/content/docs/sdk/unity/configuration/delay.mdx +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: Delay recording -description: Configure the SDK to delay the sending of information to Adjust's servers. -slug: en/sdk/unity/configuration/delay ---- - -import SetOfflineMode from "@unity-examples/Adjust/setOfflineMode.mdx" -import SetOfflineModeSig from "@unity-signatures/Adjust/setOfflineMode.mdx" -import SetEventBufferingEnabled from "@unity-examples/AdjustConfig/setEventBufferingEnabled.mdx" -import SetEventBufferingEnabledSig from "@unity-signatures/AdjustConfig/setEventBufferingEnabled.mdx" - - - -The offline mode setting isn't remembered between sessions. Offline mode is disabled at the start of each new session. - - - -The Adjust SDK sends event and session data to Adjust's servers in real time. You can pause the sending of information by putting the SDK in offline mode. In offline mode the SDK stores all data in a local file on the device. The SDK sends this information to Adjust's servers when you disable offline mode. - -Your config object contains a boolean `isOffline` property that controls this behavior. You can update this property at any time by calling the `setOfflineMode` method with a boolean argument. The SDK sends all saved information to Adjust's servers when you deactivate offline mode. - - - -## Event buffering - -The Adjust SDK sends event information as soon as a user triggers an event in your app. You can send event information on a schedule by enabling event buffering. Event buffering stores events in a local buffer on the device and sends all requests once per minute. - -Your config object contains a boolean `eventBufferingEnabled` property that controls this behavior. You can set this property by calling the `setEventBufferingEnabled` method on your config object with a boolean argument. - - diff --git a/src/content/docs/sdk/unity/configuration/disable.mdx b/src/content/docs/sdk/unity/configuration/disable.mdx deleted file mode 100644 index 38a2d7d73..000000000 --- a/src/content/docs/sdk/unity/configuration/disable.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: Disable the Adjust SDK -description: Disable the Adjust SDK to pause recording. -slug: en/sdk/unity/configuration/disable ---- - -import SetEnabled from "@unity-examples/Adjust/setEnabled.mdx" -import SetEnabledSig from "@unity-signatures/Adjust/setEnabled.mdx" -import IsEnabled from "@unity-examples/Adjust/isEnabled.mdx" -import IsEnabledSig from "@unity-signatures/Adjust/isEnabled.mdx" - -The Adjust SDK runs by default when your app is open. You can disable and re-enable the Adjust SDK to pause and resume recording. When you disable the Adjust SDK, it doesn't send any data to Adjust's servers. - -You can enable or disable the SDK at any time by calling the `setEnabled` method with a boolean argument. - - - -You can only call this method after the first session. This setting persists between sessions. - - - - - -## Check enabled status - -You can check if the Adjust SDK is enabled at any time by calling the `isEnabled` method. This method returns a boolean value. - - - -## Example - -This example shows how to generate a button to enable or disable the Adjust SDK. The button displays the correct action based on the value of the txtSetEnabled variable. - -* When `txtSetEnabled` = `"Disable SDK"`, the button disables the SDK and sets `txtSetEnabled` to `"Enable SDK"`. -* When `txtSetEnabled` = `"Enable SDK"`, the button enables the SDK and sets `txtSetEnabled` to `"Disable SDK"`. - -```c# -private string txtSetEnabled = "Disable SDK"; - -if (GUI.Button(new Rect(0, Screen.height * 6 / numberOfButtons, Screen.width, Screen.height / numberOfButtons), txtSetEnabled)) { - if (string.Equals(txtSetEnabled, "Disable SDK", StringComparison.OrdinalIgnoreCase)) { - Adjust.setEnabled(false); - txtSetEnabled = "Enable SDK"; - } - else { - Adjust.setEnabled(true); - txtSetEnabled = "Disable SDK"; - } -} -``` diff --git a/src/content/docs/sdk/unity/configuration/external-device-id.mdx b/src/content/docs/sdk/unity/configuration/external-device-id.mdx deleted file mode 100644 index fe2352ffd..000000000 --- a/src/content/docs/sdk/unity/configuration/external-device-id.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: Set external device identifiers -description: Configure an external device ID as a custom identifier for a device. -slug: en/sdk/unity/configuration/external-device-id ---- - -import SetExternalDeviceId from "@unity-examples/AdjustConfig/setExternalDeviceId.mdx" -import SetExternalDeviceIdSig from "@unity-signatures/AdjustConfig/setExternalDeviceId.mdx" - -An external device identifier is a custom value that you can assign to a device or user. They help you recognize users across sessions and platforms. They can also help you deduplicate installs by user so that a user isn't counted as duplicate new installs. Contact your Adjust representative to get started with external device IDs. - -You can use an external device ID as a custom identifier for a device. This helps you keep continuity with your other systems. - - - -See the [External device identifiers article](https://help.adjust.com/en/article/external-device-identifiers) in the Adjust help center for more information. - - - -Your config object contains a **string** `externalDeviceId` property that you can use to store your external device ID. You can set property calling the `setExternalDeviceId` method with your ID as an argument. - - - -You must set your external device ID **before** initializing the Adjust SDK. - - - -The external device ID is case-sensitive. If you have imported external device IDs, make sure the value you pass matches the imported value. - - - -If you want to use the external device ID in your business analytics, you can pass it as a session callback parameter. - - - -See [Session parameters](/en/sdk/unity/features/session-parameters) for more information. - - - -You can import existing external device IDs into Adjust. This ensures that the Adjust servers match future data to your existing device records. Contact your Adjust representative for more information. diff --git a/src/content/docs/sdk/unity/configuration/index.mdx b/src/content/docs/sdk/unity/configuration/index.mdx deleted file mode 100644 index ae927950c..000000000 --- a/src/content/docs/sdk/unity/configuration/index.mdx +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: Configuration -description: Follow the guides in this section to configure the Adjust SDK. -category-title: Configuration -slug: en/sdk/unity/configuration -type: category ---- - -Follow the guides in this section to configure the Adjust SDK. diff --git a/src/content/docs/sdk/unity/configuration/log-level.mdx b/src/content/docs/sdk/unity/configuration/log-level.mdx deleted file mode 100644 index e06c43921..000000000 --- a/src/content/docs/sdk/unity/configuration/log-level.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Set log level -description: Configure the Adjust SDK's logging verbosity. -slug: en/sdk/unity/configuration/log-level ---- - -import SetLogLevel from "@unity-examples/AdjustConfig/setLogLevel.mdx"; -import SetLogLevelSig from "@unity-signatures/AdjustConfig/setLogLevel.mdx"; -import SetLogDelegate from "@unity-examples/AdjustConfig/setLogDelegate.mdx"; -import SetLogDelegateSig from "@unity-signatures/AdjustConfig/setLogDelegate.mdx"; - -The Adjust SDK provides configurable log levels to return different amounts of information. The following log levels are available: - - - -| Log level | Description | -| ------------------------- | ------------------------------------------ | -| `AdjustLogLevel.Verbose` | Enable all logging | -| `AdjustLogLevel.Debug` | Enable debug logging | -| `AdjustLogLevel.Info` | Only show info level logs (default option) | -| `AdjustLogLevel.Warn` | Disable info logging | -| `AdjustLogLevel.Error` | Disable warning level logging and below | -| `AdjustLogLevel.Assert` | Disable error level logging and below | -| `AdjustLogLevel.Suppress` | Suppress all logging | - -
- -You can set your log level by calling the `setLogLevel` method on your `AdjustConfig` instance. - - - -## Disable all logging - -To disable all log output when initializing the SDK manually, call `setLogLevel(AdjustLogLevel.Suppress)` on your config instance. You need to set `allowSuppressLogLevel` by passing a `true` value as the third argument in your `AdjustConfig` declaration. - -```c# {3} -AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); -//... -adjustConfig.setLogLevel(AdjustLogLevel.Suppress); -//... -Adjust.start(adjustConfig); -``` - -## View compiled logs on Windows - -If your target is Windows-based and you want to see the compiled logs from the SDK in **Production** mode, redirect the log output to your app while testing it in **Sandbox** mode. - -To register a log delegate, call the `setLogDelegate` method on your `AdjustConfig` instance. - - - -You must call the `setLogDelegate` method **before** you initialize the Adjust SDK. - - - - diff --git a/src/content/docs/sdk/unity/configuration/push-tokens.mdx b/src/content/docs/sdk/unity/configuration/push-tokens.mdx deleted file mode 100644 index 267167a1b..000000000 --- a/src/content/docs/sdk/unity/configuration/push-tokens.mdx +++ /dev/null @@ -1,22 +0,0 @@ ---- -title: Set up push tokens -description: Configure push tokens for your app. -slug: en/sdk/unity/configuration/push-tokens ---- - -import SetDeviceToken from "@unity-examples/Adjust/setDeviceToken.mdx" -import SetDeviceTokenSig from "@unity-signatures/Adjust/setDeviceToken.mdx" - -Push tokens are used for [Audience Builder](https://help.adjust.com/en/article/audience-builder) and client callbacks. They're also required for [Uninstall and reinstall tracking](https://help.adjust.com/en/article/uninstalls-reinstalls). - -Your config object contains a string `pushToken` property that you can use to store your push token. You can update this property at any time by calling the `setDeviceToken` method and passing your token as an argument. - - - -## Example - -This example shows how to set a new push token with the value _`HrFmrcq96tj723aWFfrw`_ to track your app's retention rates. You can update this value at any time by passing a new token to the `setDeviceToken` method as an argument: - -```c# '"HrFmrcq96tj723aWFfrw"' -Adjust.setDeviceToken("HrFmrcq96tj723aWFfrw"); -``` diff --git a/src/content/docs/sdk/unity/features/ad-revenue.mdx b/src/content/docs/sdk/unity/features/ad-revenue.mdx index 198339fb6..61088f3c1 100644 --- a/src/content/docs/sdk/unity/features/ad-revenue.mdx +++ b/src/content/docs/sdk/unity/features/ad-revenue.mdx @@ -4,23 +4,6 @@ description: Record ad revenue information for supported network partners using slug: en/sdk/unity/features/ad-revenue --- -import TrackAdRevenue from "@unity-examples/Adjust/trackAdRevenue.mdx"; -import TrackAdRevenueSig from "@unity-signatures/Adjust/trackAdRevenue.mdx"; -import SetRevenue from "@unity-examples/AdjustAdRevenue/setRevenue.mdx"; -import SetRevenueSig from "@unity-signatures/AdjustAdRevenue/setRevenue.mdx"; -import SetAdImpressionsCount from "@unity-examples/AdjustAdRevenue/setAdImpressionsCount.mdx"; -import SetAdImpressionsCountSig from "@unity-signatures/AdjustAdRevenue/setAdImpressionsCount.mdx"; -import SetAdRevenueNetwork from "@unity-examples/AdjustAdRevenue/setAdRevenueNetwork.mdx"; -import SetAdRevenueNetworkSig from "@unity-signatures/AdjustAdRevenue/setAdRevenueNetwork.mdx"; -import SetAdRevenueUnit from "@unity-examples/AdjustAdRevenue/setAdRevenueUnit.mdx"; -import SetAdRevenueUnitSig from "@unity-signatures/AdjustAdRevenue/setAdRevenueUnit.mdx"; -import SetAdRevenuePlacement from "@unity-examples/AdjustAdRevenue/setAdRevenuePlacement.mdx"; -import SetAdRevenuePlacementSig from "@unity-signatures/AdjustAdRevenue/setAdRevenuePlacement.mdx"; -import AddCallbackParameter from "@unity-examples/AdjustAdRevenue/addCallbackParameter.mdx"; -import AddCallbackParameterSig from "@unity-signatures/AdjustAdRevenue/addCallbackParameter.mdx"; -import AddPartnerParameter from "@unity-examples/AdjustAdRevenue/addPartnerParameter.mdx"; -import AddPartnerParameterSig from "@unity-signatures/AdjustAdRevenue/addPartnerParameter.mdx"; - You can record ad revenue for [supported network partners](https://help.adjust.com/en/article/ad-revenue) using the Adjust SDK. @@ -29,14 +12,17 @@ You need to perform some extra setup steps in your Adjust dashboard to measure a -To send ad revenue to Adjust: +## Instantiate an AdjustAdRevenue object + +```cs title="Method signature" +public AdjustAdRevenue(string source) +``` -1. Create a new Adjust ad revenue instance and pass your ad revenue source as an argument. -2. Call the `trackAdRevenue` method with your ad revenue instance as an argument. +To send ad revenue information with the Adjust SDK, you need to instantiate an `AdjustAdRevenue` object. This object contains variables that are sent to Adjust when ad revenue is recorded in your app. - +To instantiate an ad revenue object, create a new `AdjustAdRevenue` instance and pass the following parameters: -## Sources +- `source` (**String**): The source of the ad revenue. See the table below for available sources @@ -54,15 +40,35 @@ To send ad revenue to Adjust:
-## Record ad revenue amount +```cs {1} +AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); +Adjust.trackAdRevenue(adjustAdRevenue); +``` -You can record ad revenue by setting the `revenue` and `currency` properties on your ad revenue instance. +## Send ad revenue -To set these properties, call the `setRevenue` method and pass the following arguments: +```cs title="Method signature" +public static void trackAdRevenue(AdjustAdRevenue adRevenue); +``` -`revenue` **number**: The amount of revenue +To send ad revenue to Adjust, call the `trackAdRevenue` method with your ad revenue instance as an argument. -`currency` **string**: The 3 character [ISO 4217 code](https://www.iban.com/currency-codes) of your reporting currency +```cs {3} +AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); +//... +Adjust.trackAdRevenue(adjustAdRevenue); +``` + +## Record ad revenue amount + +```cs title="Method signature" +public void setRevenue(double amount, string currency); +``` + +To send the ad revenue amount, call the `setRevenue` method and pass the following arguments: + +- `revenue` (**Double**): The amount of revenue +- `currency` (**String**): The 3 character [ISO 4217 code](https://www.iban.com/currency-codes) of your reporting currency @@ -70,38 +76,96 @@ Check the [guide to tracking purchases in different currencies](https://help.adj - +```cs {3} +AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); +//... +adjustAdRevenue.setRevenue(1.00, "EUR"); +//... +Adjust.trackAdRevenue(adjustAdRevenue); +``` ## Record ad campaign details -The ad revenue object contains properties you can use to report on your ad campaigns. +The `AdjustAdRevenue` class contains properties you can use to report on your ad campaigns. ### Ad impressions -Record the number of ad impressions by passing an **integer** value to the `setAdImpressionsCount` method. +```cs title="Method signature" +public void setAdImpressionsCount(int adImpressionsCount); +``` + +To send the number of recorded ad impressions, call the `setAdImpressionsCount` method and pass the following arguments: + +- `adImpressionsCount` (**Integer**): The number of ad impressions. - +```cs {3} +AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); +//... +adjustAdRevenue.setAdImpressionsCount(10); +//... +Adjust.trackAdRevenue(adjustAdRevenue); +``` ### Ad revenue network -Record which network generated the revenue by passing a **string** value to the `setAdRevenueNetwork` method. +```cs title="Method signature" +public void setAdRevenueNetwork(string adRevenueNetwork); +``` + +To send the ad revenue network, call the `setAdRevenueNetwork` method and pass the following arguments: - +- `adRevenueNetwork` (**String**): The network name. + +```cs {3} +AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); +//... +adjustAdRevenue.setAdRevenueNetwork("network1"); +//... +Adjust.trackAdRevenue(adjustAdRevenue); +``` ### Ad revenue unit -Record which ad revenue unit generated the revenue by passing a **string** value to the `setAdRevenueUnit` method. +```cs title="Method signature" +public void setAdRevenueUnit(string adRevenueUnit); +``` + +To send the ad revenue unit, call the `setAdRevenueUnit` method and pass the following arguments: - +- `adRevenueUnit` (**String**): The ad unit. + +```cs {3} +AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); +//... +adjustAdRevenue.setAdRevenueUnit("unit1"); +//... +Adjust.trackAdRevenue(adjustAdRevenue); +``` ### Ad revenue placement -Record the placement of your ad by passing a **string** value to the `setAdRevenuePlacement` method. +```cs title="Method signature" +public void setAdRevenuePlacement(string adRevenuePlacement); +``` + +To send the ad revenue placement, call the `setAdRevenuePlacement` method and pass the following arguments: - +- `adRevenuePlacement` (**String**): The ad placement. + +```cs {3} +AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); +//... +adjustAdRevenue.setAdRevenuePlacement("banner"); +//... +Adjust.trackAdRevenue(adjustAdRevenue); +``` ## Add callback parameters +```cs +public void addCallbackParameter(string key, string value); +``` + If you [register a callback URL](https://help.adjust.com/en/article/recommended-placeholders-callbacks) in the Adjust dashboard, the SDK sends a GET request to your callback URL when it records an event. You can configure callback parameters to your servers. Once you configure parameters on an event, the SDK appends them to your [callback URL](https://help.adjust.com/en/article/raw-data-exports). You can use this information to analyze your users' in-app behavior with your BI system. @@ -110,7 +174,7 @@ Add callback parameters to your event by calling the `addCallbackParameter` meth The Adjust SDK measures the event and sends a request to your URL with the callback parameters. For example, if you register the URL `https://www.mydomain.com/callback`, your callback looks like this: -```http +```http "key=value" "foo=bar" https://www.mydomain.com/callback?key=value&foo=bar ``` @@ -130,10 +194,20 @@ You can read more about using URL callbacks, including a full list of available - +```cs {3} +AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); +//... +adjustAdRevenue.addCallbackParameter("key", "value"); +//... +Adjust.trackAdRevenue(adjustAdRevenue); +``` ## Add partner parameters +```cs +public void addPartnerParameter(string key, string value); +``` + You can send extra information to your network partners by adding [partner parameters](https://help.adjust.com/en/article/data-sharing-ad-network#map-parameters). Adjust sends partner parameters to [external partners](https://help.adjust.com/en/article/integrated-partners) you have set up. This information is useful for more granular analysis and retargeting purposes. Adjust's servers forward these parameters once you have set them up and enabled them for a partner. @@ -146,7 +220,13 @@ Partner parameters don't appear in raw data by default. You can add the `{partne Add partner parameters to your event by calling the `addPartnerParameter` method with **string** key-value arguments. You can add multiple parameters by calling this method multiple times. - +```cs {3} +AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("source"); +//... +adjustAdRevenue.addPartnerParameter("key", "value"); +//... +Adjust.trackAdRevenue(adjustAdRevenue); +``` ## Example @@ -161,7 +241,7 @@ This example shows how to set up and record an ad revenue object with the follow - A callback parameter: `"key1" = "value1"` - A partner parameter: `"key2" = "value2"` -```c# +```cs AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue(AdjustConfig.AdjustAdRevenueSourceAppLovinMAX); adjustAdRevenue.setRevenue(1.00, "EUR"); adjustAdRevenue.setAdImpressionsCount(10); diff --git a/src/content/docs/sdk/unity/configuration/att.mdx b/src/content/docs/sdk/unity/features/att.mdx similarity index 75% rename from src/content/docs/sdk/unity/configuration/att.mdx rename to src/content/docs/sdk/unity/features/att.mdx index 760ac0d0d..b0aca23ff 100644 --- a/src/content/docs/sdk/unity/configuration/att.mdx +++ b/src/content/docs/sdk/unity/features/att.mdx @@ -1,16 +1,10 @@ --- title: Set up App Tracking Transparency description: Configure your app to use Apple's App Tracking Transparency framework -slug: en/sdk/unity/configuration/att +slug: en/sdk/unity/features/att --- -import RequestTrackingAuthorization from "@unity-examples/Adjust/requestTrackingAuthorization.mdx" -import AppTrackingAuthorizationStatus from "@unity-examples/Adjust/appTrackingAuthorizationStatus.mdx" -import AppTrackingAuthorizationStatusSig from "@unity-signatures/Adjust/appTrackingAuthorizationStatus.mdx" -import CheckForNewAttStatus from "@unity-examples/Adjust/checkForNewAttStatus.mdx" -import CheckForNewAttStatusSig from "@unity-signatures/Adjust/checkForNewAttStatus.mdx" - -If you want to record the device's IDFA (ID for Advertisers), you must display a prompt to get your user's authorization. To do this, you need to include Apple's ATT (App Tracking Transparency) framework in your app. The Adjust SDK stores the user's authorization status and sends it to Adjust's servers with each request. +If you want to record the device's ID for Advertisers (IDFA), you must display a prompt to get your user's authorization. To do this, you need to include Apple's App Tracking Transparency (ATT) framework in your app. The Adjust SDK stores the user's authorization status and sends it to Adjust's servers with each request. ## Authorization statuses @@ -33,6 +27,10 @@ You might receive a status code of `-1` if the SDK is unable to retrieve the ATT ## App-tracking authorization wrapper +```cs title="Method signature" +public static void requestTrackingAuthorizationWithCompletionHandler(Action statusCallback, string sceneName = "Adjust"); +``` + The Adjust SDK contains a wrapper around [Apple's `requestTrackingAuthorizationWithCompletionHandler` method](https://developer.apple.com/documentation/apptrackingtransparency/attrackingmanager/3547037-requesttrackingauthorizationwith). You can use this wrapper if you don't want to customize the ATT prompt. The callback method triggers when your user responds to the consent dialog. This method sends the user's consent status code to Adjust's servers. You can define responses to each status code within the callback function. @@ -45,13 +43,32 @@ The Adjust SDK also records the consent status if you use a custom prompt. If yo - +```cs +Adjust.requestTrackingAuthorizationWithCompletionHandler((status) => +{ + switch (status) + { + case 0: + // ATTrackingManagerAuthorizationStatusNotDetermined case + break; + case 1: + // ATTrackingManagerAuthorizationStatusRestricted case + break; + case 2: + // ATTrackingManagerAuthorizationStatusDenied case + break; + case 3: + // ATTrackingManagerAuthorizationStatusAuthorized case + break; + } +}); +``` ### Example This example shows how to log a human-readable description of the user's authorization status when they interact with a prompt. -```c# +```cs Adjust.requestTrackingAuthorizationWithCompletionHandler((status) => { switch (status) @@ -74,21 +91,33 @@ Adjust.requestTrackingAuthorizationWithCompletionHandler((status) => ## Get current authorization status -You can retrieve a user's current authorization status at any time. Call the `appTrackingAuthorizationStatus` method to return the authorization status code as an **integer**. +```cs title="Method signature" +public static int getAppTrackingAuthorizationStatus(); +``` + +You can retrieve a user's current authorization status at any time. Call the `getAppTrackingAuthorizationStatus` method to return the authorization status code as an **integer**. - +```cs +Adjust.getAppTrackingAuthorizationStatus(); +``` ### Example This example shows how to collect the user's authorization status and convert it to a `String`. This information is assigned to a variable called `authorizationStatus` and passed as a session partner parameter with the key `"status"`. -```c# +```cs string authorizationStatus = Convert.ToString(Adjust.getAppTrackingAuthorizationStatus()); Adjust.addSessionPartnerParameter("status", authorizationStatus); ``` ## Check for authorization status changes +```cs title="Method signature" +public static void checkForNewAttStatus(); +``` + If you use a custom ATT prompt, you need to inform the Adjust SDK of changes to the user's authorization status. Call the `checkForNewAttStatus` method to send the authorization status to Adjust's servers. - +```cs +Adjust.checkForNewAttStatus(); +``` diff --git a/src/content/docs/sdk/unity/features/attribution.mdx b/src/content/docs/sdk/unity/features/attribution.mdx index 2ff3521f2..8c57894c1 100644 --- a/src/content/docs/sdk/unity/features/attribution.mdx +++ b/src/content/docs/sdk/unity/features/attribution.mdx @@ -4,14 +4,48 @@ description: Listen for attribution changes using the Adjust SDK slug: en/sdk/unity/features/attribution --- -import SetAttributionChangedDelegate from "@unity-examples/AdjustConfig/setAttributionChangedDelegate.mdx"; -import SetAttributionChangedDelegateSig from "@unity-signatures/AdjustConfig/setAttributionChangedDelegate.mdx"; -import Attribution from "@unity-examples/Adjust/getAttribution.mdx"; -import AttributionSig from "@unity-signatures/Adjust/getAttribution.mdx"; +When a user interacts with an Adjust link, their attribution information updates. This can happen if the user interacts with a [deep link](https://help.adjust.com/en/article/deep-links). Information about a user's attribution is represented in the `AdjustAttribution` class. -When a user interacts with a campaign link, their attribution information updates. This can happen if the user interacts with a [deep link](https://help.adjust.com/en/article/deep-links). The SDK can listen for attribution changes and call a function when it detects an update. +## AdjustAttribution class properties -To configure your callback function, call the `setAttributionChangedDelegate` method with your function name as an argument. +The `AdjustAttribution` class contains details about the current attribution status of the device. Any values that aren't populated for the user are returned as a `null` value. + + + +The following values can only be accessed if the [`needsCost` property on your `AdjustConfig` instance](/en/sdk/android/configuration#enable-cost-data-sending) is `true`: + +- `costType` +- `costAmount` +- `costCurrency` + + + + + +| Values | Data type | Description | +| ------------------- | --------- | ---------------------------------------------------------------------------------------------------------------- | +| `trackerToken` | String | The token of the tracker to which the device is currently attributed | +| `trackerName` | String | The name of the tracker to which the device is currently attributed | +| `network` | String | The name of the network to which the device is currently attributed | +| `campaign` | String | The name of the campaign to which the device is currently attributed | +| `adgroup` | String | The name of the adgroup to which the device is currently attributed | +| `creative` | String | The name of the creative to which the device is currently attributed | +| `clickLabel` | String | The [click label](https://help.adjust.com/en/article/user-rewards) that the install is tagged with | +| `adid` | String | The unique Adjust ID assigned to the device | +| `costType` | String | The campaign pricing model (for example cpi) | +| `costAmount` | Number | The cost of the install. | +| `costCurrency` | String | The [3 character ISO 4217 code](https://www.iban.com/currency-codes) of the currency associated with the cost. | +| `fbInstallReferrer` | String | The [Facebook install referrer](https://developers.facebook.com/docs/app-ads/install-referrer/). _Android only_. | + +
+ +## Trigger a function when attribution changes + +```cs title="Method signature" +public void setAttributionChangedDelegate(Action attributionChangedDelegate, string sceneName = "Adjust"); +``` + +The SDK can listen for attribution changes and call a function when it detects an update. To configure your callback function, call the `setAttributionChangedDelegate` method with your function name as an argument. @@ -19,14 +53,34 @@ You must call the `setAttributionChangedDelegate` method **before** initializing - +```cs {8, 13-16} +using com.adjust.sdk; + +public class ExampleGUI : MonoBehaviour { + void OnGUI() { + if (GUI.Button(new Rect(0, 0, Screen.width, Screen.height), "callback")) { + AdjustConfig adjustConfig = new AdjustConfig("{Your App Token}", AdjustEnvironmentSandbox); + adjustConfig.setLogLevel(AdjustLogLevel.Verbose); + adjustConfig.setAttributionChangedDelegate(this.attributionChangedDelegate); + Adjust.start(adjustConfig); + } + } -Within your delegate function, you have access to the user's `Attribution` information. See the [`AdjustAttribution` class reference](/en/sdk/unity/reference/adjustattribution) for a list of available properties. + public void attributionChangedDelegate(AdjustAttribution attribution) { + Debug.Log("Attribution changed"); + // ... + } +} +``` ## Get current attribution information -When a user installs your app, Adjust attributes the install to a campaign. The Adjust SDK gives you access to campaign attribution details for your install. To return this information, call the `getAttribution` method. +```cs title="Method signature" +public static AdjustAttribution getAttribution(); +``` -This method returns an Attribution object. See the [`AdjustAttribution` class reference](/en/sdk/unity/reference/adjustattribution) for a list of available properties. +When a user installs your app, Adjust attributes the install to a campaign. The Adjust SDK gives you access to campaign attribution details for your install. To return this information, call the `getAttribution` method to return the attribution information as an `AdjustAttribution` object. - +```cs +var attribution = Adjust.getAttribution(); +``` diff --git a/src/content/docs/sdk/unity/features/callbacks.mdx b/src/content/docs/sdk/unity/features/callbacks.mdx index 850903051..7efaec448 100644 --- a/src/content/docs/sdk/unity/features/callbacks.mdx +++ b/src/content/docs/sdk/unity/features/callbacks.mdx @@ -4,12 +4,7 @@ description: Set up callbacks to trigger functions when the SDK sends informatio slug: en/sdk/unity/features/callbacks --- -import SetSessionSuccessDelegate from "@unity-examples/AdjustConfig/setSessionSuccessDelegate.mdx"; -import SetEventSuccessDelegate from "@unity-examples/AdjustConfig/setEventSuccessDelegate.mdx"; -import SetSessionFailureDelegate from "@unity-examples/AdjustConfig/setSessionFailureDelegate.mdx"; -import SetEventFailureDelegate from "@unity-examples/AdjustConfig/setEventFailureDelegate.mdx"; - -Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for sessions and events. +Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events**. @@ -30,22 +25,36 @@ Session callbacks have access to a response data object. You can use its propert | `Message` | String | The message from the server or the error logged by the SDK. | | `Timestamp` | String | The timestamp from Adjust's servers. | | `Adid` | String | A unique device identifier provided by Adjust. | -| `JsonResponse` | Dictionary \ | The JSON object with the response from the server. | +| `JsonResponse` | Dictionary `` | The JSON object with the response from the server. | | `WillRetry` | Boolean | Indicates whether there will be an attempt to resend a failed package. | ### Success callbacks +```cs title="Method signature" +public void setSessionSuccessDelegate(Action sessionSuccessDelegate, string sceneName = "Adjust"); +``` + Set up success callbacks to trigger functions when the SDK records a session. - +```cs {3, 7-9} +AdjustConfig adjustConfig = new AdjustConfig("{Your App Token}", AdjustEnvironment.Sandbox); +adjustConfig.setLogLevel(AdjustLogLevel.Verbose); +adjustConfig.setSessionSuccessDelegate(SessionSuccessCallback); +//... +Adjust.start(adjustConfig); +//... +public void SessionSuccessCallback (AdjustSessionSuccess sessionSuccessData) { + //... +} +``` ### Example This example shows how to created a callback function `sessionSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the session. -```c# +```cs AdjustConfig adjustConfig = new AdjustConfig("{Your App Token}", AdjustEnvironment.Sandbox); adjustConfig.setLogLevel(AdjustLogLevel.Verbose); adjustConfig.setSessionSuccessDelegate(sessionSuccess); @@ -59,15 +68,29 @@ public void sessionSuccess (AdjustSessionSuccess sessionSuccessData) { ### Failure callbacks +```cs title="Method signature" +public void setSessionFailureDelegate(Action sessionFailureDelegate, string sceneName = "Adjust"); +``` + Set up failure callbacks to trigger functions when the SDK fails to record a session. - +```cs {3, 7-9} +AdjustConfig adjustConfig = new AdjustConfig("{Your App Token}", AdjustEnvironment.Sandbox); +adjustConfig.setLogLevel(AdjustLogLevel.Verbose); +adjustConfig.setSessionFailureDelegate(SessionFailureCallback); +//... +Adjust.start(adjustConfig); +//... +public void SessionFailureCallback (AdjustSessionFailure sessionFailureData) { + //... +} +``` ### Example This example shows how to created a callback function `sessionFailure` and register it as a **failure** callback. The function logs the session failure message. -```c# +```cs AdjustConfig adjustConfig = new AdjustConfig("{Your App Token}", AdjustEnvironment.Sandbox); adjustConfig.setLogLevel(AdjustLogLevel.Verbose); adjustConfig.setSessionFailureDelegate(sessionFailure); @@ -101,15 +124,29 @@ Event callbacks have access to a response data object. You can use its propertie ### Success callbacks +```cs title="Method signature" +public void setEventSuccessDelegate(Action eventSuccessDelegate, string sceneName = "Adjust"); +``` + Set up success callbacks to trigger functions when the SDK records an event. - +```cs {3, 7-9} +AdjustConfig adjustConfig = new AdjustConfig("{Your App Token}", AdjustEnvironment.Sandbox); +adjustConfig.setLogLevel(AdjustLogLevel.Verbose); +adjustConfig.setEventSuccessDelegate(EventSuccessCallback); +//... +Adjust.start(adjustConfig); +//... +public void EventSuccessCallback(AdjustEventSuccess eventSuccessData) { + //... +} +``` ### Example This example shows how to created a callback function `eventSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the event. -```c# +```cs AdjustConfig adjustConfig = new AdjustConfig("{Your App Token}", AdjustEnvironment.Sandbox); adjustConfig.setLogLevel(AdjustLogLevel.Verbose); adjustConfig.setEventSuccessDelegate(eventSuccess); @@ -123,15 +160,29 @@ public void eventSuccess (AdjustEventSuccess eventSuccessData) { ### Failure callbacks +```cs title="Method signature" +public void setEventFailureDelegate(Action eventFailureDelegate, string sceneName = "Adjust"); +``` + Set up failure callbacks to trigger functions when the SDK fails to record an event. - +```cs {3, 7-9} +AdjustConfig adjustConfig = new AdjustConfig("{Your App Token}", AdjustEnvironment.Sandbox); +adjustConfig.setLogLevel(AdjustLogLevel.Verbose); +adjustConfig.setEventFailureDelegate(EventFailureCallback); +//... +Adjust.start(adjustConfig); +//... +public void EventFailureCallback(AdjustEventFailure eventFailureData) { + //... +} +``` ### Example This example shows how to created a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message. -```c# +```cs AdjustConfig adjustConfig = new AdjustConfig("{Your App Token}", AdjustEnvironment.Sandbox); adjustConfig.setLogLevel(AdjustLogLevel.Verbose); adjustConfig.setEventFailureDelegate(eventFailure); diff --git a/src/content/docs/sdk/unity/configuration/deep-links.mdx b/src/content/docs/sdk/unity/features/deep-links.mdx similarity index 76% rename from src/content/docs/sdk/unity/configuration/deep-links.mdx rename to src/content/docs/sdk/unity/features/deep-links.mdx index 5ca6c8618..deddb9b57 100644 --- a/src/content/docs/sdk/unity/configuration/deep-links.mdx +++ b/src/content/docs/sdk/unity/features/deep-links.mdx @@ -2,23 +2,15 @@ title: Deep linking description: Follow the guides in this section to set up deep linking. category-title: Deep linking -slug: en/sdk/unity/configuration/deep-links +slug: en/sdk/unity/features/deep-links --- -import SetLinkMeEnabled from "@unity-examples/AdjustConfig/setLinkMeEnabled.mdx" -import SetLinkMeEnabledSig from "@unity-signatures/AdjustConfig/setLinkMeEnabled.mdx" -import SetLaunchDeferredDeeplink from "@unity-examples/AdjustConfig/setLaunchDeferredDeeplink.mdx" -import SetLaunchDeferredDeeplinkSig from "@unity-signatures/AdjustConfig/setLaunchDeferredDeeplink.mdx" +You can create deep links to take users to specific pages in your app. The Adjust SDK uses different logic depending on if the user already has your app installed on their device: -Deep links are URIs (Uniform Resource Identifiers) that direct users to a specific page in your app without any additional navigation. You can use them throughout your marketing funnel to improve user acquisition, engagement, and retention. +- Direct deep linking: occurs if the user already has your app installed. The link takes the user to the page specified in the link +- Deferred deep linking: occurs if the user doesn't have your app installed. The link takes the user to a storefront to install your app first. After the user installs the app, it opens to the page specified in the link. -The Adjust SDK uses different logic depending on whether the user already has your app installed on their device: - -Direct deep linking: Occurs if the user already has your app installed. The link takes the user to the page specified in the link - -Deferred deep linking: Occurs if the user doesn't have your app installed. The link takes the user to a storefront to install your app first. After the user installs the app, it opens to the page specified in the link. - -To get started, follow these steps. +The SDK can read deep link data after a user opens your app from a link. ## Set up deep linking @@ -64,15 +56,29 @@ Android devices use a unique URI scheme to handle deep links. To set up deep lin ### Disable deferred deep linking +```cs title="Method signature" +public void setLaunchDeferredDeeplink(bool launchDeferredDeeplink); +``` + The SDK opens deferred deep links by default. You can configure this by passing a **boolean** argument to the `setLaunchDeferredDeeplink` method. - +```cs {3} +AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); +//... +adjustConfig.setLaunchDeferredDeeplink(true); +//... +Adjust.start(adjustConfig); +``` ### Set up a deferred deep link delegate +```cs title="Method signature" +public void setDeferredDeeplinkDelegate(Action deferredDeeplinkDelegate, string sceneName = "Adjust"); +``` + You can configure the Adjust SDK to call a delegate function when it receives a deferred deep link. This delegate function receives the deep link as a **string** argument. -```c# {1-3, 6} +```cs {1-3, 6} private void DeferredDeeplinkCallback(string deeplinkURL) { //... } @@ -86,7 +92,7 @@ Adjust.start(adjustConfig); This example shows how to log a deep link address when the user opens a deferred deep link. -```c# +```cs private void LogDeepLink(string deepLinkURL) { Debug.Log("Deeplink URL: " + deeplinkURL); } @@ -99,6 +105,10 @@ Adjust.start(adjustConfig); ### Enable LinkMe +```cs title="Method signature" +public void setLinkMeEnabled(bool linkMeEnabled); +``` + The Adjust SDK lets you copy deep link information from the device pasteboard. When combined with Adjust’s LinkMe solution, this feature enables deferred deep linking on devices running iOS 15 and above. @@ -111,4 +121,10 @@ When a user clicks on a LinkMe URL they have the option to copy the link informa To enable pasteboard checking in your app, pass a true value to the `setLinkMeEnabled` method on your config object: - +```cs {3} +AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); +//... +adjustConfig.setLinkMeEnabled(true); +//... +Adjust.start(adjustConfig); +``` diff --git a/src/content/docs/sdk/unity/features/device-info.mdx b/src/content/docs/sdk/unity/features/device-info.mdx index 1cbfbbbb8..241d8f734 100644 --- a/src/content/docs/sdk/unity/features/device-info.mdx +++ b/src/content/docs/sdk/unity/features/device-info.mdx @@ -4,41 +4,58 @@ description: Use these methods to add details to your callbacks and improve your slug: en/sdk/unity/features/device-info --- -import GetIdfa from "@unity-examples/Adjust/getIdfa.mdx" -import GetIdfaSig from "@unity-signatures/Adjust/getIdfa.mdx" -import GetAdid from "@unity-examples/Adjust/getAdid.mdx" -import GetAdidSig from "@unity-signatures/Adjust/getAdid.mdx" -import GetAmazonAdId from "@unity-examples/Adjust/getAmazonAdId.mdx" -import GetAmazonAdIdSig from "@unity-signatures/Adjust/getAmazonAdId.mdx" -import GetGoogleAdId from "@unity-examples/Adjust/getGoogleAdId.mdx" -import GetGoogleAdIdSig from "@unity-signatures/Adjust/getGoogleAdId.mdx" - The Adjust SDK contains helper methods that return device information. Use these methods to add details to your callbacks and improve your reporting. ## Adjust device identifier -Adjust generates a unique ADID (Adjust Device ID) for each device. Call the `getAdid` method to return this ID as a **string**. +```cs +public static string getAdid(); +``` + +Adjust generates a unique Adjust Device ID (ADID) for each device. Call the `getAdid` method to return this ID as a **string**. - +```cs +string adid = Adjust.getAdid(); +``` ## ID For Advertisers -The IDFA (ID for Advertisers) is a device-specific identifier for Apple devices. Call the `getIdfa` method to return this ID as a **string**. +```cs title="Method signature" +public static string getIdfa(); +``` + +The ID for Advertisers (IDFA) is a device-specific identifier for Apple devices. Call the `getIdfa` method to return this ID as a **string**. - +```cs +string idfa = Adjust.getIdfa(); +``` ## Google Play Services Advertising ID -The GPS ADID (Google Play Services Advertising ID) is a device-specific identifier for Android devices. +```cs title="Method signature" +public static void getGoogleAdId(Action onDeviceIdsRead); +``` + +The Google Play Services Advertising ID (GPS ADID) is a device-specific identifier for Android devices. Users can opt out of sharing their GPS ADID by toggling the "Opt out of Ads Personalization" setting on their device. When a user enables this setting, the Adjust SDK returns a string of zeros when trying to read the GPS ADID. You can access this value by calling the `getGoogleAdId` method in a background thread. Assign a delegate function to access the GPS ADID value. - +```cs +Adjust.getGoogleAdId((string googleAdId) => { + //... +}); +``` ## Amazon Advertiser ID -The Amazon Ad ID (Amazon Advertising ID) is a device-specific identifier for Android devices. Call the `getAmazonAdId` method to return this ID as a **string**. +```cs title="Method signature" +public static string getAmazonAdId(); +``` + +The Amazon Advertising ID (Amazon Ad ID) is a device-specific identifier for Android devices. Call the `getAmazonAdId` method to return this ID as a **string**. - +```cs +string amazonAdId = Adjust.getAmazonAdId(); +``` diff --git a/src/content/docs/sdk/unity/features/events.mdx b/src/content/docs/sdk/unity/features/events.mdx index 53ac2161d..c08703487 100644 --- a/src/content/docs/sdk/unity/features/events.mdx +++ b/src/content/docs/sdk/unity/features/events.mdx @@ -4,31 +4,52 @@ description: Use these methods send event information to Adjust. slug: en/sdk/unity/features/events --- -import TrackEvent from "@unity-examples/Adjust/trackEvent.mdx" -import TrackEventSig from "@unity-signatures/Adjust/trackEvent.mdx" -import SetRevenue from "@unity-examples/AdjustEvent/setRevenue.mdx" -import SetRevenueSig from "@unity-signatures/AdjustEvent/setRevenue.mdx" -import SetTransactionId from "@unity-examples/AdjustEvent/setTransactionId.mdx" -import SetTransactionIdSig from "@unity-signatures/AdjustEvent/setTransactionId.mdx" -import SetCallbackId from "@unity-examples/AdjustEvent/setCallbackId.mdx" -import SetCallbackIdSig from "@unity-signatures/AdjustEvent/setCallbackId.mdx" -import AddCallbackParameter from "@unity-examples/AdjustEvent/addCallbackParameter.mdx" -import AddCallbackParameterSig from "@unity-signatures/AdjustEvent/addCallbackParameter.mdx" -import AddPartnerParameter from "@unity-examples/AdjustEvent/addPartnerParameter.mdx" -import AddPartnerParameterSig from "@unity-signatures/AdjustEvent/addPartnerParameter.mdx" +The Adjust SDK provides an `AdjustEvent` object which can be used to structure and send event information from your app to Adjust's servers. + +## Instantiate an AdjustEvent object + +```cs title="Method signature" +public AdjustEvent(string eventToken) +{ + this.eventToken = eventToken; + this.isReceiptSet = false; +} +``` + +To send event information with the Adjust SDK, you need to instantiate an `AdjustEvent` object. This object contains variables that are sent to Adjust when an event occurs in your app. + +To instantiate an event object, create a new `AdjustEvent` instance and pass the following parameters: + +- `eventToken` (**String**): Your Adjust [event token](https://help.adjust.com/en/article/add-events#manage-your-events). + +```cs {1} +AdjustEvent adjustEvent = new AdjustEvent("abc123"); +//... +Adjust.trackEvent(adjustEvent); +``` + +## Send an event + +```cs title="Method signature" +public static void trackEvent(AdjustEvent adjustEvent); +``` You can associate your [Adjust event tokens](https://help.adjust.com/en/article/add-events#add-event) to actions in your app to record them. To record an event: * Create a new Adjust event instance and pass your event token as a string argument. * Call the `trackEvent` method with your event instance as an argument. - +```cs {3} +AdjustEvent adjustEvent = new AdjustEvent("abc123"); +//... +Adjust.trackEvent(adjustEvent); +``` ### Example This example shows how to record an event with the token `g3mfiw` whenever a user interacts with a button. -```c# +```cs if (GUI.Button(new Rect(0, Screen.height * 1 / numberOfButtons, Screen.width, Screen.height / numberOfButtons), "Track Simple Event")) { AdjustEvent adjustEvent = new AdjustEvent("g3mfiw"); Adjust.trackEvent(adjustEvent); @@ -86,13 +107,16 @@ Parameters: ## Record event revenue +```cs title="Method signature" +public void setRevenue(double amount, string currency); +``` + You can record revenue associated with an event by setting the revenue and currency properties on your event instance. Use this feature to record revenue-generating actions in your app. To set these properties, call the `setRevenue` method and pass the following arguments: -`revenue` (**number**): The amount of revenue generated by the event - -`currency` (**string**): The [ISO 4217 code](https://www.iban.com/currency-codes) of the event currency. +- `revenue` (**number**): The amount of revenue generated by the event +- `currency` (**string**): The [ISO 4217 code](https://www.iban.com/currency-codes) of the event currency. @@ -100,13 +124,19 @@ Check the guide to [tracking purchases in different currencies](https://help.adj - +```cs {3} +AdjustEvent adjustEvent = new AdjustEvent("abc123"); +//... +adjustEvent.setRevenue(0.01, "EUR"); +//... +Adjust.trackEvent(adjustEvent); +``` ### Example This example shows how to record an event with the token `g3mfiw` whenever a user interacts with a button. The function sets the `revenue` property of this event to _`0.25`_ and the `currency` property to _`EUR`_. -```c# +```cs if (GUI.Button(new Rect(0, Screen.height * 2 / numberOfButtons, Screen.width, Screen.height / numberOfButtons), "Track Revenue Event")) { AdjustEvent adjustEvent = new AdjustEvent("g3mfiw"); adjustEvent.setRevenue(0.25, "EUR"); @@ -127,19 +157,20 @@ Parameters: ### Purchase verification - + -If you've enabled [purchase verification](https://help.adjust.com/en/article/purchase-verification), you must send additional information with your purchase events to verify them. When Adjust's servers receive this information in an event object, they forward it to Apple to verify the purchase. +Purchase verification is an **optional** feature. These settings have no effect unless purchase verification is enabled. - + -`productId` (String): The product identifier of the item that was successfully purchased + -`transactionId` (NSString): The [`transactionIdentifier` value](https://developer.apple.com/documentation/storekit/skpaymenttransaction/1411288-transactionidentifier) of the successfully completed purchase. iOS only +If you've enabled [purchase verification](https://help.adjust.com/en/article/purchase-verification), you must send additional information with your purchase events to verify them. When Adjust's servers receive this information in an event object, they forward it to Apple to verify the purchase. -`receipt` (String): The signed receipt containing the information about the successfully completed purchase. iOS only + -`purchaseToken` (String): The purchase token generated for your successfully completed in-app purchase. Android only +- `productId` (**String**): The product identifier of the item that was successfully purchased +- `purchaseToken` (**String**): The purchase token generated for your successfully completed in-app purchase ```cs AdjustEvent adjustEvent = new AdjustEvent("abc123"); @@ -153,17 +184,27 @@ Adjust.trackEvent(adjustEvent); ## Unique events +```cs title="Method signature" +public void setTransactionId(string transactionId); +``` + You can pass an optional identifier to avoid recording duplicate events. The SDK stores the last ten identifiers and skips revenue events with duplicate transaction IDs. To set the identifier, call the `setTransactionId` method and pass your transaction ID as a **string** argument. - +```cs {3} +AdjustEvent adjustEvent = new AdjustEvent("abc123"); +//... +adjustEvent.setTransactionId("transactionId"); +//... +Adjust.trackEvent(adjustEvent); +``` ### Example This example shows how to record an event with the token `g3mfiw` whenever a user interacts with a button. The function sets the `uniqueId` to `5e85484b-1ebc-4141-aab7-25b869e54c49` using the `setTransactionId` method. -```c# +```cs if (GUI.Button(new Rect(0, Screen.height * 2 / numberOfButtons, Screen.width, Screen.height / numberOfButtons), "Track Unique Event")) { AdjustEvent adjustEvent = new AdjustEvent("g3mfiw"); string uniqueId = "5e85484b-1ebc-4141-aab7-25b869e54c49" @@ -184,13 +225,23 @@ Parameters: ## Add callback parameters +```cs title="Method signature" +public void addCallbackParameter(string key, string value); +``` + If you [register a callback URL](https://help.adjust.com/en/article/set-up-callbacks) in the Adjust dashboard, the SDK sends a GET request to your callback URL when it records an event. You can configure callback parameters to send to your servers. Once you configure parameters on an event, the SDK appends them to your [callback URL](https://help.adjust.com/en/article/raw-data-exports). You can use this information to analyze your users' in-app behavior with your BI system. Add callback parameters to your event by calling the `addCallbackParameter` method with **string** key-value arguments. You can add multiple parameters by calling this method multiple times. - +```cs {3} +AdjustEvent adjustEvent = new AdjustEvent("abc123"); +//... +adjustEvent.addCallbackParameter("key", "value"); +//... +Adjust.trackEvent(adjustEvent); +``` The Adjust SDK measures the event and sends a request to your URL with the callback parameters. For example, if you register the URL `https://www.mydomain.com/callback`, your callback looks like this: @@ -227,7 +278,7 @@ The resulting callback URL looks like this: http://www.mydomain.com/callback?event_token=g3mfiw&revenue_amount=0.05 ``` -```c# +```cs if (GUI.Button(new Rect(0, Screen.height * 2 / numberOfButtons, Screen.width, Screen.height / numberOfButtons), "Track Callback Event")) { AdjustEvent adjustEvent = new AdjustEvent("g3mfiw"); adjustEvent.addCallbackParameter("event_token", "g3mfiw"); @@ -248,6 +299,10 @@ Parameters: ## Add partner parameters +```cs title="Method signature" +public void addPartnerParameter(string key, string value); +``` + You can send extra information to your network partners by adding [partner parameters](https://help.adjust.com/en/article/data-sharing-ad-network#map-parameters). Adjust sends partner parameters to [external partners](https://help.adjust.com/en/article/integrated-partners) you have set up. This information is useful for more granular analysis and retargeting purposes. Adjust's servers forward these parameters once you have set them up and enabled them for a partner. @@ -260,7 +315,13 @@ Partner parameters don't appear in raw data by default. You can add the `{partne Add partner parameters to your event by calling the `addPartnerParameter` method with **string** key-value arguments. You can add multiple parameters by calling this method multiple times. - +```cs {3} +AdjustEvent adjustEvent = new AdjustEvent("abc123"); +//... +adjustEvent.addPartnerParameter("key", "value"); +//... +Adjust.trackEvent(adjustEvent); +``` ### Example @@ -269,7 +330,7 @@ This example shows how to record an event with the token `g3mfiw` whenever a use * The `product_id` of the associated product * The `user_id` of the user who triggered the event -```c# +```cs if (GUI.Button(new Rect(0, Screen.height * 2 / numberOfButtons, Screen.width, Screen.height / numberOfButtons), "Track Partner Event")) { AdjustEvent adjustEvent = new AdjustEvent("g3mfiw"); adjustEvent.addPartnerParameter("product_id", "29"); @@ -290,17 +351,27 @@ Parameters: ## Add a callback identifier +```cs title="Method signature" +public void setCallbackId(string callbackId) +``` + You can add a custom string identifier to each event you want to measure. Adjust's servers can report on this identifier in event callbacks. This enables you to keep track of which events have been successfully measured. Set up this identifier by calling the `setCallbackId` method with your ID as a **string** argument. - +```cs +AdjustEvent adjustEvent = new AdjustEvent("abc123"); +//... +adjustEvent.setCallbackId("{your_callback_id}"); +//... +Adjust.trackEvent(adjustEvent); +``` ### Example This example shows how to record an event with the token `g3mfiw` whenever a user interacts with a button. In this example, the `callbackId` is set to `f2e728d8-271b-49ab-80ea-27830a215147`. -```c# +```cs if (GUI.Button(new Rect(0, Screen.height * 2 / numberOfButtons, Screen.width, Screen.height / numberOfButtons), "Track Unique Callback Event")) { AdjustEvent adjustEvent = new AdjustEvent("g3mfiw"); string callbackId = "f2e728d8-271b-49ab-80ea-27830a215147" diff --git a/src/content/docs/sdk/unity/features/index.mdx b/src/content/docs/sdk/unity/features/index.mdx index 838edb706..d2f28d070 100644 --- a/src/content/docs/sdk/unity/features/index.mdx +++ b/src/content/docs/sdk/unity/features/index.mdx @@ -4,6 +4,7 @@ description: Use the Adjust SDK to send in-app information to Adjust's servers. category-title: Features slug: en/sdk/unity/features type: category +sidebar-position: 2 --- Use the Adjust SDK to send in-app information to Adjust's servers. diff --git a/src/content/docs/sdk/unity/configuration/preinstalled.mdx b/src/content/docs/sdk/unity/features/preinstalled.mdx similarity index 67% rename from src/content/docs/sdk/unity/configuration/preinstalled.mdx rename to src/content/docs/sdk/unity/features/preinstalled.mdx index 6456a15bf..d9cb1cd1c 100644 --- a/src/content/docs/sdk/unity/configuration/preinstalled.mdx +++ b/src/content/docs/sdk/unity/features/preinstalled.mdx @@ -1,21 +1,20 @@ --- title: Send preinstalled app activity description: Configure a campaign to send information from preinstalled apps. -slug: en/sdk/unity/configuration/preinstalled +slug: en/sdk/unity/features/preinstalled --- -import SetPreinstallTrackingEnabled from "@unity-examples/AdjustConfig/setPreinstallTrackingEnabled.mdx" -import SetPreinstallTrackingEnabledSig from "@unity-signatures/AdjustConfig/setPreinstallTrackingEnabled.mdx" -import SetPreinstallFilePath from "@unity-examples/AdjustConfig/setPreinstallFilePath.mdx" -import SetPreinstallFilePathSig from "@unity-signatures/AdjustConfig/setPreinstallFilePath.mdx" -import SetDefaultTracker from "@unity-examples/AdjustConfig/setDefaultTracker.mdx" -import SetDefaultTrackerSig from "@unity-signatures/AdjustConfig/setDefaultTracker.mdx" - You can use the Adjust SDK to record activity from apps that came preinstalled on a user's device. This enables you to send information from users who didn't download your app from a campaign. Your config object contains a **boolean** `preinstallTrackingEnabled` property that controls this feature. To enable preinstall measurement, call the `setPreinstallTrackingEnabled` method with a `true` argument. - +```cs +AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); +//... +adjustConfig.setPreinstallTrackingEnabled(true); +//... +Adjust.start(adjustConfig); +``` The Adjust SDK provides 5 methods for measuring preinstalled apps: @@ -23,11 +22,11 @@ The Adjust SDK provides 5 methods for measuring preinstalled apps: * [Content provider](#content-provider) (Android only). * [System Installer Receiver](#system-installer-receiver) (Android only). * [World Readable Directory](#world-readable-directory) (Android only). -* [Default campaign](#default-campaign) (iOS and Android). +* [Default link token](#default-link-token) (iOS and Android). ## System properties -OEM (Original Equipment Manufacturer) partners can leverage Android system properties to attribute preinstalled apps. The OEM writes attribution information to a file and adds its path to the system properties. The Adjust SDK reads this file on initialization to attribute the install. +Original Equipment Manufacturer (OEM) partners can leverage Android system properties to attribute preinstalled apps. The OEM (Original Equipment Manufacturer) writes attribution information to a file and adds its path to the system properties. The Adjust SDK reads this file on initialization to attribute the install. ## Content provider @@ -69,13 +68,19 @@ Save attribution information for your preinstalled app in a world-readable direc Pass the file path at which your preinstall information can be found to the `setPreinstallFilePath` method to give the Adjust SDK access to the information. - +```cs +AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); +//... +adjustConfig.setPreinstallFilePath("../EngagementFile.xml"); +//... +Adjust.start(adjustConfig); +``` -## Default campaign +## Default link token -Configuring a default campaign enables you to attribute all preinstalls to a predefined campaign token. Adjust records all information against this token until the attribution source changes. To set this up: +Configuring a default link token enables you to attribute all preinstalls to a predefined Adjust link. Adjust records all information against this token until the attribution source changes. To set this up: -1. Create a new link in Adjust. +1. [Create a new campaign link in Campaign Lab](https://help.adjust.com/en/article/links). ```http "{token}" https://app.adjust.com/{token} @@ -83,7 +88,13 @@ Configuring a default campaign enables you to attribute all preinstalls to a pre 2. Copy this token and pass it to the `setDefaultTracker` method in your app delegate file. - + ```cs + AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); + //... + adjustConfig.setDefaultTracker("{TrackerToken}"); + //... + Adjust.start(adjustConfig); + ``` 3. Build and run your app. If you have logging enabled, you should see a message in your log diff --git a/src/content/docs/sdk/unity/configuration/privacy.mdx b/src/content/docs/sdk/unity/features/privacy.mdx similarity index 52% rename from src/content/docs/sdk/unity/configuration/privacy.mdx rename to src/content/docs/sdk/unity/features/privacy.mdx index 74107969e..bd270af0b 100644 --- a/src/content/docs/sdk/unity/configuration/privacy.mdx +++ b/src/content/docs/sdk/unity/features/privacy.mdx @@ -1,61 +1,75 @@ --- title: Set up privacy features description: Configure features that you can use to handle user privacy in your app. -slug: en/sdk/unity/configuration/privacy +slug: en/sdk/unity/features/privacy --- -import GdprForgetMe from "@unity-examples/Adjust/gdprForgetMe.mdx"; -import GdprForgetMeSig from "@unity-signatures/Adjust/gdprForgetMe.mdx"; -import InitWithIsEnabledNumberBoolFalse from "@unity-examples/AdjustThirdPartySharing/initFalse.mdx"; -import InitWithIsEnabledNumberBoolTrue from "@unity-examples/AdjustThirdPartySharing/initTrue.mdx"; -import TrackThirdPartySharing from "@unity-signatures/Adjust/trackThirdPartySharing.mdx"; -import AddGranularOption from "@unity-examples/AdjustThirdPartySharing/addGranularOption.mdx"; -import AddGranularOptionSig from "@unity-signatures/AdjustThirdPartySharing/addGranularOption.mdx"; -import AddPartnerSharingSetting from "@unity-examples/AdjustThirdPartySharing/addPartnerSharingSetting.mdx"; -import AddPartnerSharingSettingSig from "@unity-signatures/AdjustThirdPartySharing/addPartnerSharingSetting.mdx"; -import AddGranularOptionFacebook from "@unity-examples/AdjustThirdPartySharing/addGranularOptionFacebook.mdx"; -import DisableThirdPartySharing from "@unity-examples/Adjust/disableThirdPartySharing.mdx"; -import DisableThirdPartySharingSig from "@unity-signatures/Adjust/disableThirdPartySharing.mdx"; -import SetUrlStrategy from "@unity-examples/AdjustConfig/setUrlStrategy.mdx"; -import SetUrlStrategySig from "@unity-signatures/AdjustConfig/setUrlStrategy.mdx"; -import TrackMeasurementConsent from "@unity-examples/Adjust/trackMeasurementConsent.mdx"; -import TrackMeasurementConsentSig from "@unity-signatures/Adjust/trackMeasurementConsent.mdx"; - The Adjust SDK contains features that you can use to handle user privacy in your app. -## GDPR right to be forgotten +## Send right to be forgotten request + +```cs title="Method signature" +public static void gdprForgetMe(); +``` -Article 17 of the European Union's GDPR (General Data Protection Regulation) grants users the right to be forgotten. When Adjust's servers receive an RTBF (Right to be Forgotten) request, Adjust erases the user's data. The SDK also stops sending requests from the device for the app in question. +Article 17 of the European Union's General Data Protection Regulation (GDPR) grants users the right to be forgotten. When Adjust's servers receive a Right to be Forgotten (RTBF) request, Adjust erases the user's data. The SDK also stops sending requests from the device for the app in question. You can send the user's RTBF request to Adjust by calling the `gdprForgetMe` method. - +```cs +Adjust.gdprForgetMe(); +``` + ## Third-party sharing for specific users -You can use the Adjust SDK to record when a user changes their third-party sharing settings. +You can use the Adjust SDK to record when a user changes their third-party sharing settings. Third party sharing settings are configured using the `AdjustThirdPartySharing` class. -### Disable third-party sharing +### Instantiate an AdjustThirdPartySharing object -Some users may want to opt-out of sharing their data with third-parties. To communicate this to Adjust, call the `trackThirdPartySharing` method with an [`ADJThirdPartySharing` object](/en/sdk/ios/reference/adjthirdpartysharing) initialized with a `false` value. When Adjust's servers receive this information, Adjust stops sharing the user's data with third-parties. The Adjust SDK continues to work as expected. +```cs title="Method signature" +public AdjustThirdPartySharing(bool? isEnabled); +``` - +To enable or disable third party sharing with the Adjust SDK, you need to instantiate an `AdjustThirdPartySharing` object. This object contains variables that control how third party sharing is handled by Adjust. -### Enable third-party sharing +To instantiate a third party sharing object, create a new `AdjustThirdPartySharing` instance and pass the following parameters: - +- `isEnabled` (**Boolean**): Whether third party sharing is enabled. Pass `true` to enable third party sharing or `false` to disable third party sharing -### Send granular information +```cs {1} +AdjustThirdPartySharing adjustThirdPartySharing = new AdjustThirdPartySharing(true); +//... +Adjust.trackThirdPartySharing(adjustThirdPartySharing); +``` -You can attach granular information when a user updates their third-party sharing preferences. Use this information to communicate more detail about a user's decision. To do this, call the `addGranularOption` method with your partner name and your options. + - +If you set the `isEnabled` property to `false`, Adjust stops sharing the user's data with third parties. The Adjust SDK continues to work as expected. -### Update partner settings + -You can use the Adjust SDK to update your third party sharing settings on a per-partner basis. To do this, call the `addPartnerSharingSetting` method with your partner name and your options. +Once you've instantiated your `AdjustThirdPartySharing` object, you can send the information to Adjust by calling the `Adjust.trackThirdPartySharing` method with your `AdjustThirdPartySharing` instance as an argument. + +```cs {3} +AdjustThirdPartySharing adjustThirdPartySharing = new AdjustThirdPartySharing(true); +//... +Adjust.trackThirdPartySharing(adjustThirdPartySharing); +``` + +### Send granular information + +```cs title="Method signature" +public void addGranularOption(string partnerName, string key, string value); +``` + +You can attach granular information when a user updates their third-party sharing preferences. Use this information to communicate more detail about a user's decision. To do this, call the `addGranularOption` method with the following parameters: + +- `partnerName` (**String**): The name of the partner for whom the granular option applies. +- `key` (**String**): The option key. +- `value` (**String**): The option value. - +The following partners are available: @@ -74,6 +88,14 @@ You can use the Adjust SDK to update your third party sharing settings on a per-
+```cs {3} +AdjustThirdPartySharing adjustThirdPartySharing = new AdjustThirdPartySharing(null); +//... +adjustThirdPartySharing.addGranularOption("PartnerA", "key", "value"); +//... +Adjust.trackThirdPartySharing(adjustThirdPartySharing); +``` + #### Manage Facebook Limited Data Use @@ -82,19 +104,17 @@ The Adjust SDK sends information to Facebook as soon as the app is installed. Yo -Facebook provides a feature called LDU (Limited Data Use) to comply with the CCPA (California Consumer Privacy Act). This feature enables you to notify Facebook when a California-based user is opted out of the sale of data. You can also use it if you want to opt all users out by default. +Facebook provides a feature called Limited Data Use (LDU) to comply with the California Consumer Privacy Act (CCPA). This feature enables you to notify Facebook when a California-based user is opted out of the sale of data. You can also use it if you want to opt all users out by default. You can update the Facebook LDU status by passing arguments to the `addGranularOption` method. - - -| Parameter | Description | -| --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `partner_name` | Use `facebook` to toggle LDU. | -| `data_processing_options_country` | The country in which the user is located.
  • `0`: Request that Facebook use geolocation.
  • `1`: United States of America.
| -| `data_processing_options_state` | Notifies Facebook in which state the user is located.
  • `0`: Request that Facebook use geolocation.
  • `1000`: California.
| +| Parameter | Description | +| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `partner_name` | Use `facebook` to toggle LDU. | +| `data_processing_options_country` | The country in which the user is located.
  • `0`: Request that Facebook use geolocation.
  • `1`: United States of America.
| +| `data_processing_options_state` | Notifies Facebook in which state the user is located.
  • `0`: Request that Facebook use geolocation.
  • `1000`: California.
  • `1001`: Colorado
  • `1002`: Connecticut
|
@@ -104,6 +124,15 @@ If you call this method with a `0` value for **either** `data_processing_options
+```cs {3,4} +AdjustThirdPartySharing adjustThirdPartySharing = new AdjustThirdPartySharing(null); +//... +adjustThirdPartySharing.addGranularOption("facebook", "data_processing_options_country", "1"); +adjustThirdPartySharing.addGranularOption("facebook", "data_processing_options_state", "1000"); +//... +Adjust.trackThirdPartySharing(adjustThirdPartySharing); +``` + #### Provide consent data to Google (Digital Markets Act compliance) @@ -136,19 +165,49 @@ adjustThirdPartySharing.addGranularOption("google_dma", "ad_user_data", "1"); Adjust.trackThirdPartySharing(adjustThirdPartySharing); ``` +### Update partner settings + +```cs title="Method signature" +public void addPartnerSharingSetting(string partnerName, string key, bool value); +``` + +You can use the Adjust SDK to update your third party sharing settings on a per-partner basis. To do this, call the `addPartnerSharingSetting` method with your partner name and your options. + +```cs {3} +AdjustThirdPartySharing adjustThirdPartySharing = new AdjustThirdPartySharing(null); +//... +adjustThirdPartySharing.addPartnerSharingSetting("PartnerA", "foo", false); +Adjust.trackThirdPartySharing(adjustThirdPartySharing); +``` + ## Disable third-party sharing -To disable third-party sharing for all users, call the `disableThirdPartySharing` method. When Adjust's servers receive this information, Adjust stops sharing the user's data with third-parties. The Adjust SDK continues to work as expected. +```cs title="Method signature" +public static void disableThirdPartySharing(); +``` - +To disable third-party sharing for all users, call the `disableThirdPartySharing` method. When Adjust's servers receive this information, Adjust stops sharing the user's data with third parties. The Adjust SDK continues to work as expected. -## Data residency +```cs +Adjust.disableThirdPartySharing(); +``` -The data residency feature allows you to choose the country in which Adjust stores your data. This is useful if you're operating in a country with strict privacy requirements. When you set up data residency, Adjust stores your data in a data center located in the region your have chosen. +## Set URL strategy -To set your country of data residency, call the `setUrlStrategy` method on your `AdjustConfig` instance. +```cs title="Method signature" +public void setUrlStrategy(String urlStrategy); +``` + +The URL strategy feature allows you to set either: + +- The country in which Adjust stores your data (data residency). +- The endpoint to which the Adjust SDK sends traffic (URL strategy). + +This is useful if you're operating in a country with strict privacy requirements. When you set your URL strategy, Adjust stores data in the selected data residency region or sends traffic to the chosen domain. - +To set your country of data residency, call the `setUrlStrategy` method on your `AdjustConfig` instance with the following parameter: + +- `urlStrategy` (**String**): The country of data residence or endpoint to which you want to send SDK traffic. @@ -163,8 +222,26 @@ To set your country of data residency, call the `setUrlStrategy` method on your
+```cs {2} +AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); +adjustConfig.setUrlStrategy(AdjustConfig.AdjustDataResidencyEU); +Adjust.start(adjustConfig); +``` + ## Consent measurement for specific users -If you are using [Data Privacy settings](https://help.adjust.com/en/article/manage-data-collection-and-retention) in your Adjust dashboard, you need to set up the Adjust SDK to work with them. This includes settings such as consent expiry period and user data retention period. To toggle this feature, call the `trackMeasurementConsent` method. When enabled, the SDK communicates the data privacy settings to Adjust's servers. Adjust's servers then applies your data privacy rules to the user. The Adjust SDK continues to work as expected. +```cs title="Method signature" +public static void trackMeasurementConsent(bool measurementConsent); +``` + +If you're using [Data Privacy settings](https://help.adjust.com/en/article/manage-data-collection-and-retention) in your Adjust dashboard, you need to set up the Adjust SDK to work with them. This includes settings such as consent expiry period and user data retention period. + +To toggle this feature, call the `trackMeasurementConsent` method with the following argument: + +- `consentMeasurement` (**Boolean**): Whether consent measurement is enabled (`true`) or not (`false`). - +When enabled, the SDK communicates the data privacy settings to Adjust's servers. Adjust's servers then applies your data privacy rules to the user. The Adjust SDK continues to work as expected. + +```cs +Adjust.trackMeasurementConsent(true); +``` diff --git a/src/content/docs/sdk/unity/features/session-parameters.mdx b/src/content/docs/sdk/unity/features/session-parameters.mdx index 4910c053f..0676e0352 100644 --- a/src/content/docs/sdk/unity/features/session-parameters.mdx +++ b/src/content/docs/sdk/unity/features/session-parameters.mdx @@ -4,26 +4,9 @@ description: Send information to your callback URL with each session. slug: en/sdk/unity/features/session-parameters --- -import AddSessionCallbackParameter from "@unity-examples/Adjust/addSessionCallbackParameter.mdx" -import AddSessionCallbackParameterSig from "@unity-signatures/Adjust/addSessionCallbackParameter.mdx" -import RemoveSessionCallbackParameter from "@unity-examples/Adjust/removeSessionCallbackParameter.mdx" -import RemoveSessionCallbackParameterSig from "@unity-signatures/Adjust/removeSessionCallbackParameter.mdx" -import ResetSessionCallbackParameters from "@unity-examples/Adjust/resetSessionCallbackParameters.mdx" -import ResetSessionCallbackParametersSig from "@unity-signatures/Adjust/resetSessionCallbackParameters.mdx" -import AddSessionPartnerParameter from "@unity-examples/Adjust/addSessionPartnerParameter.mdx" -import AddSessionPartnerParameterSig from "@unity-signatures/Adjust/addSessionPartnerParameter.mdx" -import RemoveSessionPartnerParameter from "@unity-examples/Adjust/removeSessionPartnerParameter.mdx" -import RemoveSessionPartnerParameterSig from "@unity-signatures/Adjust/removeSessionPartnerParameter.mdx" -import ResetSessionPartnerParameters from "@unity-examples/Adjust/resetSessionPartnerParameters.mdx" -import ResetSessionPartnerParametersSig from "@unity-signatures/Adjust/resetSessionPartnerParameters.mdx" -import SetDelayStart from "@unity-examples/AdjustConfig/setDelayStart.mdx" -import SetDelayStartSig from "@unity-signatures/AdjustConfig/setDelayStart.mdx" -import SendFirstPackages from "@unity-examples/Adjust/sendFirstPackages.mdx" -import SendFirstPackagesSig from "@unity-signatures/Adjust/sendFirstPackages.mdx" - If you [register a callback URL](https://help.adjust.com/en/article/recommended-placeholders-callbacks) in the Adjust dashboard, Adjust sends a GET request to your callback URL when the SDK measures a session. -You can configure callback parameters to your servers. Once you configure parameters on an event, the SDK appends them to your callback URL. You can use this information to analyze your users' in-app behavior with your BI system. +## Session callback parameters @@ -31,17 +14,43 @@ The Adjust SDK merges session callback parameters with event callback parameters +You can configure callback parameters to your servers. Once you configure parameters on an event, the SDK appends them to your callback URL. You can use this information to analyze your users' in-app behavior with your BI system. + +### Add session callback parameters + +```cs title="Method signature" +public static void addSessionCallbackParameter(string key, string value); +``` + Add callback parameters to your event by calling the `addSessionCallbackParameter` method with **string** key-value arguments. You can add multiple parameters by calling this method multiple times. - +```cs +Adjust.addSessionCallbackParameter("key", "value"); +``` + +### Remove session callback parameters + +```cs title="Method signature" +public static void removeSessionCallbackParameter(string key); +``` -You can remove specific session callback parameters if they're no longer required. To do this, pass the parameter key to the `removeSessionCallbackParameter` method. +You can remove specific session callback parameters if they're no longer required. To do this, pass the parameter `key` to the `removeSessionCallbackParameter` method. - +```cs +Adjust.removeSessionCallbackParameter("key"); +``` + +### Reset session callback parameters + +```cs title="Method signature" +public static void resetSessionCallbackParameters(); +``` You can remove all session parameters if they're no longer required. To do this, call the `resetSessionCallbackParameters` method. - +```cs +Adjust.resetSessionCallbackParameters(); +``` ## Session partner parameters @@ -55,17 +64,41 @@ Partner parameters don't appear in raw data by default. You can add the `{partne
-Add partner parameters to your event by calling the `addSessionPartnerParameter` method with **string** key-value arguments. You can add multiple parameters by calling this method multiple times. +### Add session partner parameters + +```cs title="Method signature" +public static void addSessionPartnerParameter(string key, string value); +``` + +Send partner parameters with your session by calling the `addSessionPartnerParameter` method with **string** key-value arguments. You can add multiple parameters by calling this method multiple times. - +```cs +Adjust.addSessionPartnerParameter("key", "value"); +``` + +### Remove session partner parameters + +```cs title="Method signature" +public static void removeSessionPartnerParameter(string key); +``` You can remove specific session partner parameters if they're no longer required. To do this, pass the parameter key to the `removeSessionPartnerParameter` method. - +```cs +Adjust.removeSessionPartnerParameter("key"); +``` + +### Reset session partner parameters + +```cs title="Method signature" +public static void resetSessionPartnerParameters(); +``` You can remove all session partner parameters if they're no longer required. To do this, call the `resetSessionPartnerParameters` method. - +```cs +Adjust.resetSessionPartnerParameters(); +``` ## Delay start @@ -75,10 +108,18 @@ You can delay the startup of the SDK by up to **10 seconds**. -The Adjust SDK starts as soon as your app opens. If you want to send data that's not available at launch in session parameters, you can delay the start of the SDK. To do this, pass the delay time in seconds to the `setDelayStart` method on your config object. +The Adjust SDK starts as soon as your app opens. If you want to send data that's not available at launch in session parameters, you can delay the start of the SDK. To do this, pass the delay time in seconds to the [`setDelayStart` method](/en/sdk/unity/configuration#delay-the-start-of-the-sdk) on your config object. - +```cs {3} +AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); +//... +adjustConfig.setDelayStart(5.5); +//... +Adjust.start(adjustConfig); +``` After this time has elapsed, the SDK sends the information to Adjust's servers. You can send the information before the timeout by calling the `sendFirstPackages` method. - +```cs +Adjust.sendFirstPackages(); +``` diff --git a/src/content/docs/sdk/unity/configuration/skad.mdx b/src/content/docs/sdk/unity/features/skad.mdx similarity index 74% rename from src/content/docs/sdk/unity/configuration/skad.mdx rename to src/content/docs/sdk/unity/features/skad.mdx index 009180d14..e89eb7c24 100644 --- a/src/content/docs/sdk/unity/configuration/skad.mdx +++ b/src/content/docs/sdk/unity/features/skad.mdx @@ -1,23 +1,16 @@ --- title: Set up SKAdNetwork and conversion values description: Configure SKAdNetwork features for your iOS apps. -slug: en/sdk/unity/configuration/skad +slug: en/sdk/unity/features/skad --- -import DeactivateSKAdNetworkHandling from "@unity-examples/AdjustConfig/deactivateSKAdNetworkHandling.mdx"; -import DeactivateSKAdNetworkHandlingSig from "@unity-signatures/AdjustConfig/deactivateSKAdNetworkHandling.mdx"; -import UpdateConversionValue from "@unity-examples/Adjust/updateConversionValue.mdx"; -import UpdateConversionValueSig from "@unity-signatures/Adjust/updateConversionValue.mdx"; -import SetConversionValueUpdatedDelegate from "@unity-examples/AdjustConfig/setConversionValueUpdatedDelegate.mdx"; - This feature is only available on devices running iOS 14 and above. -SKAdNetwork (StoreKit Ad Network) is Apple's attribution framework for -app install and reinstall attribution. The SKAdNetwork workflow goes like this: +StoreKit Ad Network (SKAdNetwork) is Apple's attribution framework for app install and reinstall attribution. The SKAdNetwork workflow goes like this: 1. Apple gathers attribution information and notifies the relevant ad network. 2. The network sends a postback with this information to Adjust. @@ -25,8 +18,16 @@ app install and reinstall attribution. The SKAdNetwork workflow goes like this: ## Disable SKAdNetwork communication +```cs title="Method signature" +public void deactivateSKAdNetworkHandling(); +``` + + + The Adjust SDK communicates with SKAdNetwork by default on v4.23.0 and above. The SDK registers for SKAdNetwork attribution upon initialization. + + Your config object contains a boolean `isSKAdNetworkHandlingActive` property that controls this behavior. You can disable SKAdNetwork communication by calling the `deactivateSKAdNetworkHandling` method with no argument. @@ -35,21 +36,33 @@ You must call the `deactivateSKAdNetworkHandling` method _before_ initializing t - +```cs {3} +AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); +//... +adjustConfig.deactivateSKAdNetworkHandling(); +//... +Adjust.start(adjustConfig); +``` ## Update conversion values +```cs title="Method signature" +public static void updateConversionValue(int conversionValue); +``` + Conversion values are a mechanism used to track user behavior in SKAdNetwork. You can map 64 conditions to values from 0 through 63 and send this integer value to SKAdNetwork on user install. This gives you insight into how your users interact with your app in the first few days. If you manage your conversion values with Adjust, the servers update this value in the SDK. You can also update this value by using the `updateConversionValue` method. This method wraps [Apple's `updateConversionValue` method](https://developer.apple.com/documentation/storekit/skadnetwork/3566697-updateconversionvalue). It accepts an integer argument representing your updated conversion value. - +```cs +Adjust.updateConversionValue(6); +``` ### Example This example shows how to update a conversion value to `10` in response to a user triggering an event. -```c# {2} +```cs {2} public void OnButtonClick() { Adjust.updateConversionValue(10); } @@ -57,9 +70,19 @@ public void OnButtonClick() { ## Listen for changes to conversion values +```cs title="Method signature" +public void setConversionValueUpdatedDelegate(Action conversionValueUpdatedDelegate, string sceneName = "Adjust"); +``` + If you use Adjust to manage conversion values, the Adjust's servers send conversion value updates to the SDK. You can set up a delegate function to listen for these changes using the `setConversionValueUpdatedDelegate` method. Pass your function as an argument. - +```cs {3} +AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); +//... +adjustConfig.setConversionValueUpdatedDelegate(ConversionValueUpdatedCallback); +//... +Adjust.start(adjustConfig); +``` ### Example @@ -68,7 +91,7 @@ This example shows how to log the following when the conversion value updates: - A message confirming the conversion value update - The new conversion value -```c# {8, 14-17} +```cs {8, 14-17} using com.adjust.sdk; public class ExampleGUI : MonoBehaviour { diff --git a/src/content/docs/sdk/unity/features/subscriptions.mdx b/src/content/docs/sdk/unity/features/subscriptions.mdx index 454040995..605da9010 100644 --- a/src/content/docs/sdk/unity/features/subscriptions.mdx +++ b/src/content/docs/sdk/unity/features/subscriptions.mdx @@ -4,27 +4,6 @@ description: Use these methods send subscription information to Adjust. slug: en/sdk/unity/features/subscriptions --- -import AdjustAppStoreSubscription from "@unity-examples/AdjustAppStoreSubscription/adjustAppStoreSubscription.mdx"; -import AdjustPlayStoreSubscription from "@unity-examples/AdjustPlayStoreSubscription/adjustPlayStoreSubscription.mdx"; -import SetTransactionDate from "@unity-examples/AdjustAppStoreSubscription/setTransactionDate.mdx"; -import SetTransactionDateSig from "@unity-signatures/AdjustAppStoreSubscription/setTransactionDate.mdx"; -import SetPurchaseTime from "@unity-examples/AdjustPlayStoreSubscription/setPurchaseTime.mdx"; -import SetPurchaseTimeSig from "@unity-signatures/AdjustPlayStoreSubscription/setPurchaseTime.mdx"; -import SetSalesRegion from "@unity-examples/AdjustAppStoreSubscription/setSalesRegion.mdx"; -import SetSalesRegionSig from "@unity-signatures/AdjustAppStoreSubscription/setSalesRegion.mdx"; -import AddCallbackParameterAppStore from "@unity-examples/AdjustAppStoreSubscription/addCallbackParameter.mdx"; -import AddCallbackParameterAppStoreSig from "@unity-signatures/AdjustAppStoreSubscription/addCallbackParameter.mdx"; -import AddCallbackParameterPlayStore from "@unity-examples/AdjustPlayStoreSubscription/addCallbackParameter.mdx"; -import AddCallbackParameterPlayStoreSig from "@unity-signatures/AdjustPlayStoreSubscription/addCallbackParameter.mdx"; -import AddPartnerParameterAppStore from "@unity-examples/AdjustAppStoreSubscription/addPartnerParameter.mdx"; -import AddPartnerParameterAppStoreSig from "@unity-signatures/AdjustAppStoreSubscription/addPartnerParameter.mdx"; -import AddPartnerParameterPlayStore from "@unity-examples/AdjustPlayStoreSubscription/addPartnerParameter.mdx"; -import AddPartnerParameterPlayStoreSig from "@unity-signatures/AdjustPlayStoreSubscription/addPartnerParameter.mdx"; -import TrackAppStoreSubscription from "@unity-examples/Adjust/trackAppStoreSubscription.mdx"; -import TrackAppStoreSubscriptionSig from "@unity-signatures/Adjust/trackAppStoreSubscription.mdx"; -import TrackPlayStoreSubscription from "@unity-examples/Adjust/trackPlayStoreSubscription.mdx"; -import TrackPlayStoreSubscriptionSig from "@unity-signatures/Adjust/trackPlayStoreSubscription.mdx"; - The following steps only set up subscription tracking within the Adjust SDK. To enable the feature, Adjust need to set up app-specific information. Contact support@adjust.com or talk to your Technical Account manager to set this up. @@ -33,32 +12,46 @@ The following steps only set up subscription tracking within the Adjust SDK. To You can record App Store and Play Store subscriptions and verify their validity with the Adjust SDK. After the user purchases a subscription, create an `AdjustAppStoreSubscription` or `AdjustPlayStoreSubscription` instance containing the details. -## 1. Set up your subscription object +## 1. Instantiate a subscription object To get started, you need to create a subscription object containing details of the subscription purchase. -Create an `AdjustAppStoreSubscription` object with the following properties +```cs title="Method signature" +public AdjustAppStoreSubscription(string price, string currency, string transactionId, string receipt) +``` + +Create an `AdjustAppStoreSubscription` object with the following properties: | Parameter | Data type | Description | | --------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `price` | Number | The price of the subscription | +| `price` | String | The price of the subscription | | `currency` | String | The currency of the subscription. Formatted as the [`currencyCode`](https://developer.apple.com/documentation/foundation/nslocale/1642836-currencycode?language=objc) of the [`priceLocale`](https://developer.apple.com/documentation/storekit/skproduct/1506145-pricelocale?language=objc) object | | `transactionId` | String | Your ID for the transaction | | `receipt` | String | The receipt information |
- +```cs +AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( + price, + currency, + transactionId, + receipt); +```
-Create an `AdjustPlayStoreSubscription` object with the following properties +```cs title="Method signature" +public AdjustPlayStoreSubscription(string price, string currency, string sku, string orderId, string signature, string purchaseToken) +``` + +Create an `AdjustPlayStoreSubscription` object with the following properties: @@ -73,7 +66,15 @@ Create an `AdjustPlayStoreSubscription` object with the following properties
- +```cs +AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( + price, + currency, + sku, + orderId, + signature, + purchaseToken); +```
@@ -85,25 +86,62 @@ You can record the date on which the user purchased a subscription. The SDK retu -Call the `setTransactionDate` method method on your subscription object to record the timestamp of the subscription. +```cs title="Method signature" +public void setTransactionDate(string transactionDate); +``` - +Call the `setTransactionDate` method on your subscription object to record the timestamp of the subscription. + +```cs {7} +AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( + price, + currency, + transactionId, + receipt); +//... +subscription.setTransactionDate(transactionDate); +``` +```cs title="Methdo signature" +public void setPurchaseTime(string purchaseTime); +``` + Call the `setPurchaseTime` method on your subscription object to record the timestamp of the subscription. - +```cs {8} +AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription( + price, + currency, + sku, + orderId, + signature, + purchaseToken); +subscription.setPurchaseTime(purchaseTime); +``` ### Record the purchase region (iOS only) +```cs title="Method signature" +public void setSalesRegion(string salesRegion); +``` + You can record the region in which the user purchased a subscription. To do this, call the `setSalesRegion` method on your subscription object and pass the country code as a **string**. This needs to be formatted as the [`countryCode`](https://developer.apple.com/documentation/foundation/nslocale/1643060-countrycode?language=swift) of the [`priceLocale`](https://developer.apple.com/documentation/storekit/skproduct/1506145-pricelocale?language=swift) object. - +```cs {7} +AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( + price, + currency, + transactionId, + receipt); +//... +subscription.setSalesRegion(salesRegion); +``` ### Add callback parameters @@ -112,12 +150,40 @@ You can add callback parameters to your subscription object. The SDK appends the - +```cs title="Method signature" +public void addCallbackParameter(string key, string value); +``` + +```cs {7-8} +AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( + price, + currency, + transactionId, + receipt); +//... +subscription.addCallbackParameter("key1", "value1"); +subscription.addCallbackParameter("key2", "value2"); +``` - +```cs title="Method signature" +public void addCallbackParameter(string key, string value); +``` + +```cs {9-10} +AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription( + price, + currency, + sku, + orderId, + signature, + purchaseToken); +//... +subscription.addCallbackParameter("key1", "value1"); +subscription.addCallbackParameter("key2", "value2"); +``` @@ -129,12 +195,40 @@ You can add partner parameters to your subscription object. The SDK sends these - +```cs title="Method signature" +public void addPartnerParameter(string key, string value); +``` + +```cs {7-8} +AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( + price, + currency, + transactionId, + receipt); +//... +subscription.addPartnerParameter("key1", "value1"); +subscription.addPartnerParameter("key2", "value2"); +``` - +```cs title="Method signature" +public void addPartnerParameter(string key, string value); +``` + +```cs {9-10} +AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription( + price, + currency, + sku, + orderId, + signature, + purchaseToken); +//... +subscription.addPartnerParameter("key1", "value1"); +subscription.addPartnerParameter("key2", "value2"); +``` @@ -146,16 +240,53 @@ Once you have set up your subscription object, you can record it using the Adjus -Pass your subscription object to the `trackAppStoreSubscription` method method to record the user's subscription purchase. +```cs title="Method signature" +public static void trackAppStoreSubscription(AdjustAppStoreSubscription subscription); +``` + +Pass your subscription object to the `trackAppStoreSubscription` method to record the user's subscription purchase. - +```cs {13} +AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( + price, + currency, + transactionId, + receipt); +subscription.setTransactionDate(transactionDate); +subscription.setSalesRegion(salesRegion); +subscription.addCallbackParameter("key1", "value1"); +subscription.addCallbackParameter("key2", "value2"); +subscription.addPartnerParameter("key1", "value1"); +subscription.addPartnerParameter("key2", "value2"); + +Adjust.trackAppStoreSubscription(subscription); +``` -Pass your subscription object to the `trackPlayStoreSubscription` method method to record the user's subscription purchase. - - +```cs title="Method signature" +public static void trackPlayStoreSubscription(AdjustPlayStoreSubscription subscription); +``` + +Pass your subscription object to the `trackPlayStoreSubscription` method to record the user's subscription purchase. + +```cs {14} +AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription( + price, + currency, + sku, + orderId, + signature, + purchaseToken); +subscription.setPurchaseTime(purchaseTime); +subscription.addCallbackParameter("key1", "value1"); +subscription.addCallbackParameter("key2", "value2"); +subscription.addPartnerParameter("key1", "value1"); +subscription.addPartnerParameter("key2", "value2"); + +Adjust.trackPlayStoreSubscription(subscription); +``` diff --git a/src/content/docs/sdk/unity/index.mdx b/src/content/docs/sdk/unity/index.mdx index 1dfe51839..662a7816c 100644 --- a/src/content/docs/sdk/unity/index.mdx +++ b/src/content/docs/sdk/unity/index.mdx @@ -44,7 +44,7 @@ To set up the Adjust SDK, enter the following information: The Adjust SDK starts when the app's Awake event triggers by default. To override this behavior, check the **START SDK MANUALLY** option. This enables you to initialize the Adjust SDK by calling `Adjust.start()` with your config instance as an argument. -```c# +```cs AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox); // ... Adjust.start(adjustConfig); diff --git a/src/content/docs/sdk/unity/integrations/admob.mdx b/src/content/docs/sdk/unity/integrations/admob.mdx index 9a78c671c..e60644419 100644 --- a/src/content/docs/sdk/unity/integrations/admob.mdx +++ b/src/content/docs/sdk/unity/integrations/admob.mdx @@ -22,7 +22,7 @@ To use this feature, you need to first reach out to your Google representative a ## Examples -```c# +```cs this.rewardedAd.OnPaidEvent += this.HandleAdPaidEvent; public void HandleAdPaidEvent(object sender, AdValueEventArgs args) { diff --git a/src/content/docs/sdk/unity/integrations/applovin.mdx b/src/content/docs/sdk/unity/integrations/applovin.mdx index ac991974a..5a3ef1588 100644 --- a/src/content/docs/sdk/unity/integrations/applovin.mdx +++ b/src/content/docs/sdk/unity/integrations/applovin.mdx @@ -18,7 +18,7 @@ If you have any questions about ad revenue tracking with AppLovin MAX, please co ## Examples -```c# +```cs private void OnRewardedAdRevenuePaidEvent(string adUnitId, MaxSdkBase.AdInfo adInfo) { var adRevenue = new AdjustAdRevenue(AdjustConfig.AdjustAdRevenueSourceAppLovinMAX); diff --git a/src/content/docs/sdk/unity/integrations/helium.mdx b/src/content/docs/sdk/unity/integrations/helium.mdx index f63beacb1..e167d189d 100644 --- a/src/content/docs/sdk/unity/integrations/helium.mdx +++ b/src/content/docs/sdk/unity/integrations/helium.mdx @@ -18,7 +18,7 @@ If you want to measure ad revenue with the Helium by Chartboost SDK, you can use ## Example -```c# +```cs void DidReceiveImpressionLevelRevenueData(string placement, Hashtable impressionData) { var json = HeliumJSON.Serialize(impressionData); diff --git a/src/content/docs/sdk/unity/integrations/index.mdx b/src/content/docs/sdk/unity/integrations/index.mdx index 3aab408e3..23914f332 100644 --- a/src/content/docs/sdk/unity/integrations/index.mdx +++ b/src/content/docs/sdk/unity/integrations/index.mdx @@ -4,6 +4,7 @@ description: Use SDK to SDK integrations to pass information from third-party SD category-title: Integrations slug: en/sdk/unity/integrations type: category +sidebar-position: 3 --- Use SDK to SDK integrations to pass information from third-party SDKs to Adjust. diff --git a/src/content/docs/sdk/unity/integrations/ironsource.mdx b/src/content/docs/sdk/unity/integrations/ironsource.mdx index e95aa9f0f..109d7eaaf 100644 --- a/src/content/docs/sdk/unity/integrations/ironsource.mdx +++ b/src/content/docs/sdk/unity/integrations/ironsource.mdx @@ -18,7 +18,7 @@ If you have any questions about ad revenue measurement with ironSource, please c ## Example -```c# +```cs IronSourceEvents.onImpressionDataReadyEvent += ImpressionDataReadyEvent; private void ImpressionDataReadyEvent(IronSourceImpressionData impressionData) { diff --git a/src/content/docs/sdk/unity/integrations/unity.mdx b/src/content/docs/sdk/unity/integrations/unity.mdx index 98a565b8e..62bfb2e01 100644 --- a/src/content/docs/sdk/unity/integrations/unity.mdx +++ b/src/content/docs/sdk/unity/integrations/unity.mdx @@ -24,7 +24,7 @@ For more information, see the Unity [Mediation API](https://docs.unity.com/media ## Example -```c# +```cs static void OnImpression(object sender, ImpressionEventArgs e) { var impressionData = e.ImpressionData != null ? JsonUtility.ToJson(e.ImpressionData, true) : "null"; diff --git a/src/content/docs/sdk/unity/plugins/imei.mdx b/src/content/docs/sdk/unity/plugins/imei.mdx index 6f67994cd..6d50ff903 100644 --- a/src/content/docs/sdk/unity/plugins/imei.mdx +++ b/src/content/docs/sdk/unity/plugins/imei.mdx @@ -62,7 +62,7 @@ The IMEI and MEID are persistent identifiers. You are responsible for ensuring t Once you've set up the plugin, you can gather the device's IMEI and MEID. To do this, call the `AdjustImei.readImei` method before starting the Adjust SDK. -```c# +```cs AdjustImei.ReadImei(); // ... Adjust.start(config); @@ -70,6 +70,6 @@ Adjust.start(config); If you want to prevent the SDK from reading the IMEI and MEID, call the `AdjustImei.doNotReadImei` method. -```c# +```cs AdjustImei.doNotReadImei(); ``` diff --git a/src/content/docs/sdk/unity/plugins/index.mdx b/src/content/docs/sdk/unity/plugins/index.mdx index 3a566f8df..41f11a924 100644 --- a/src/content/docs/sdk/unity/plugins/index.mdx +++ b/src/content/docs/sdk/unity/plugins/index.mdx @@ -4,6 +4,7 @@ description: Use third-party plugins to pass information from third-party SDKs t category-title: Plugins slug: en/sdk/unity/plugins type: category +sidebar-position: 4 --- Use plugins to pass information to third-party plugins. diff --git a/src/content/docs/sdk/unity/plugins/oaid.mdx b/src/content/docs/sdk/unity/plugins/oaid.mdx index 0519c6162..f81b50e1f 100644 --- a/src/content/docs/sdk/unity/plugins/oaid.mdx +++ b/src/content/docs/sdk/unity/plugins/oaid.mdx @@ -101,7 +101,7 @@ If you are adding the MSA SDK AAR as a dependency, add the following rules: Once you have set up the plugin, you can gather the device's OAID. To do this, call the `AdjustOaid.readOaid(applicationContext)` method before starting the Adjust SDK. -```c# +```cs AdjustOaid.ReadOaid(); // ... Adjust.start(config); @@ -109,6 +109,6 @@ Adjust.start(config); If you want to prevent the SDK from reading the OAID, call the `AdjustOaid.doNotReadOaid()` method. -```c# +```cs AdjustOaid.DoNotReadOaid(); ``` diff --git a/src/content/docs/sdk/unity/reference/adjust/config.mdx b/src/content/docs/sdk/unity/reference/adjust/config.mdx deleted file mode 100644 index 548254012..000000000 --- a/src/content/docs/sdk/unity/reference/adjust/config.mdx +++ /dev/null @@ -1,157 +0,0 @@ ---- -title: Configuration methods -description: Use these methods to update the Adjust SDK's configuration. -slug: en/sdk/unity/reference/adjust/config ---- - -Use these methods to update the Adjust SDK's configuration. - - - -## setEnabled - -Enable or disable the Adjust SDK. The SDK doesn't send any information while disabled. - - - -import SetEnabledSig from "@unity-signatures/Adjust/setEnabled.mdx" - - - - - - - -import SetEnabled from "@unity-examples/Adjust/setEnabled.mdx" - - - - - - - -`enabled` (bool): Whether the SDK is enabled. - - - - - - - -## isEnabled - -Call this method to check whether the Adjust SDK is enabled. - - - -import IsEnabledSig from "@unity-signatures/Adjust/isEnabled.mdx" - - - - - - - -import IsEnabled from "@unity-examples/Adjust/isEnabled.mdx" - - - - - - - -`enabled` (bool): Whether the SDK is enabled. - - - - - - - -## sendFirstPackages - - - -This method has an effect only if you delay the start of the Adjust SDK. - - - -The Adjust SDK sends information to Adjust's servers as soon as it starts. If you delay the start of the SDK, you can use this method to send packages before the delay ends. - - - -import SendFirstPackagesSig from "@unity-signatures/Adjust/sendFirstPackages.mdx" - - - - - - - -import SendFirstPackages from "@unity-examples/Adjust/sendFirstPackages.mdx" - - - - - - - - - -## setOfflineMode - -Controls whether the SDK is in offline mode. When in offline mode, the SDK queues all events in a file until offline mode is disabled. When offline mode is disabled, the SDK sends all queued events. - - - -import SetOfflineModeSig from "@unity-signatures/Adjust/setOfflineMode.mdx" - - - - - - - -import SetOfflineMode from "@unity-examples/Adjust/setOfflineMode.mdx" - - - - - - - -`enabled` (bool): Whether the SDK is in offline mode. - - - - - - - -## setDeviceToken - -Set your [push token](https://help.adjust.com/en/article/push-notifications) to record [uninstalls and reattributions](https://help.adjust.com/en/article/uninstalls-reinstalls). You can update this value at any time. - - - -import SetDeviceTokenSig from "@unity-signatures/Adjust/setDeviceToken.mdx" - - - - - - - -import SetDeviceToken from "@unity-examples/Adjust/setDeviceToken.mdx" - - - - - - - -`deviceToken` (string): Your push token. - - - - diff --git a/src/content/docs/sdk/unity/reference/adjust/device-info.mdx b/src/content/docs/sdk/unity/reference/adjust/device-info.mdx deleted file mode 100644 index e548d5338..000000000 --- a/src/content/docs/sdk/unity/reference/adjust/device-info.mdx +++ /dev/null @@ -1,134 +0,0 @@ ---- -title: Device information methods -description: Use these methods to retrieve device information. -slug: en/sdk/unity/reference/adjust/device-info -sidebar-position: 2 ---- - -Use these methods to retrieve device information. - - - -## getAdid - - - -The ADID is available only after the install has been recorded. - - - -Returns the ADID (Adjust Device ID) associated with the device. - - - -import GetAdidSig from "@unity-signatures/Adjust/getAdid.mdx" - - - - - - - -import GetAdid from "@unity-examples/Adjust/getAdid.mdx" - - - - - - - -`adid` (string): The Adjust identifier associated with the device - - - - - - - -## getIdfa - -Returns the IDFA (ID for advertisers) associated with the device. - - - -import GetIdfaSig from "@unity-signatures/Adjust/getIdfa.mdx" - - - - - - - -import GetIdfa from "@unity-examples/Adjust/getIdfa.mdx" - - - - - - - -`idfa` (string): The IDFA associated with the device - - - - - - - -## getGoogleAdid - -Returns the Google ADID (Google advertiser ID) associated with the device. - - - -import GetGoogleAdidSig from "@unity-signatures/Adjust/getGoogleAdId.mdx" - - - - - - - -import GetGoogleAdid from "@unity-examples/Adjust/getGoogleAdId.mdx" - - - - - - - -`googleAdid` (string): The Google ADID associated with the device - - - - - - - -## getAmazonAdid - -Returns the Amazon ADID (Amazon advertiser ID) associated with the device. - - - -import GetAmazonAdidSig from "@unity-signatures/Adjust/getAmazonAdId.mdx" - - - - - - - -import GetAmazonAdid from "@unity-examples/Adjust/getAmazonAdId.mdx" - - - - - - - -`amazonAdId` (string): The Amazon ADID associated with the device - - - - diff --git a/src/content/docs/sdk/unity/reference/adjust/index.mdx b/src/content/docs/sdk/unity/reference/adjust/index.mdx deleted file mode 100644 index ddcc11d4c..000000000 --- a/src/content/docs/sdk/unity/reference/adjust/index.mdx +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: Adjust class -description: Use the Adjust class send information about your application and users to Adjust -category-title: Adjust class -slug: en/sdk/unity/reference/adjust -type: category ---- - -The Adjust class can be used to send information about your application and users to Adjust. This can be used for attribution as well as recording events for analytics. diff --git a/src/content/docs/sdk/unity/reference/adjust/privacy.mdx b/src/content/docs/sdk/unity/reference/adjust/privacy.mdx deleted file mode 100644 index f5034265d..000000000 --- a/src/content/docs/sdk/unity/reference/adjust/privacy.mdx +++ /dev/null @@ -1,116 +0,0 @@ ---- -title: Privacy methods -description: Use these methods to handle user privacy in your app. -slug: en/sdk/unity/reference/adjust/privacy -sidebar-position: 3 ---- - -Use these methods to handle user privacy in your app. - - - -## disableThirdPartySharing - -Disable sharing of information with third parties for all users. - - - -import DisableThirdPartySharingSig from "@unity-signatures/Adjust/disableThirdPartySharing.mdx" - - - - - - - -import DisableThirdPartySharing from "@unity-examples/Adjust/disableThirdPartySharing.mdx" - - - - - - - - - -## trackThirdPartySharing - -Disable or enable sharing of information with third parties on a per-user basis. Accepts a third party sharing object initialized with a **boolean** value. - - - -import TrackThirdPartySharingSig from "@unity-signatures/Adjust/trackThirdPartySharing.mdx" - - - - - - - -import TrackThirdPartySharing from "@unity-examples/Adjust/trackThirdPartySharing.mdx" - - - - - - - -`thirdPartySharing` (AdjustThirdPartySharing): The third party sharing object - - - - - - - -## trackMeasurementConsent - -Set whether [data collection and retention rules](https://help.adjust.com/en/article/manage-data-collection-and-retention) apply to a user. - - - -import TrackMeasurementConsentSig from "@unity-signatures/Adjust/trackMeasurementConsent.mdx" - - - - - - - -import TrackMeasurementConsent from "@unity-examples/Adjust/trackMeasurementConsent.mdx" - - - - - - - -`enabled` (bool): Whether data collection and retention rules apply for the user. - - - - - - - -## gdprForgetMe - -Send an RTBF (Right To Be Forgotten) request to Adjust's servers. This erases all information about the user the source app. The SDK stops sending requests for the user. - - - -import GdprForgetMeSig from "@unity-signatures/Adjust/gdprForgetMe.mdx" - - - - - - - -import GdprForgetMe from "@unity-examples/Adjust/gdprForgetMe.mdx" - - - - - - diff --git a/src/content/docs/sdk/unity/reference/adjust/recording.mdx b/src/content/docs/sdk/unity/reference/adjust/recording.mdx deleted file mode 100644 index 615741576..000000000 --- a/src/content/docs/sdk/unity/reference/adjust/recording.mdx +++ /dev/null @@ -1,330 +0,0 @@ ---- -title: Recording methods -description: Use these methods to send information about your app to Adjust. -slug: en/sdk/unity/reference/adjust/recording -sidebar-position: 4 ---- - -Use these methods to send information about your app to Adjust. - - - -## trackEvent - -Record event information using an `Adjust` object and an [Adjust event token](https://help.adjust.com/en/article/add-events#add-event). - - - -import TrackEventSig from "@unity-signatures/Adjust/trackEvent.mdx" - - - - - - - -import TrackEvent from "@unity-examples/Adjust/trackEvent.mdx" - - - - - - - -`event` (AdjustEvent): An event object containing the information you want to send to Adjust. - - - - - - - -## addSessionCallbackParameter - -Adds callback parameters to send with each session recorded by the Adjust SDK. You can add extra parameters by calling on this method multiple times. - - - -import AddSessionCallbackParameterSig from "@unity-signatures/Adjust/addSessionCallbackParameter.mdx" - - - - - - - -import AddSessionCallbackParameter from "@unity-examples/Adjust/addSessionCallbackParameter.mdx" - - - - - - - -`key` (string): The data key - -`value` (string): The data value - - - - - - - -## removeSessionCallbackParameter - -Remove a session callback parameter. - - - -import RemoveSessionCallbackParameterSig from "@unity-signatures/Adjust/removeSessionCallbackParameter.mdx" - - - - - - - -import RemoveSessionCallbackParameter from "@unity-examples/Adjust/removeSessionCallbackParameter.mdx" - - - - - - - -`key` (string): The data key of the parameter you want to remove. - - - - - - - -## resetSessionCallbackParameters - -Removes all session callback parameters. - - - -import ResetSessionCallbackParametersSig from "@unity-signatures/Adjust/resetSessionCallbackParameters.mdx" - - - - - - - -import ResetSessionCallbackParameters from "@unity-examples/Adjust/resetSessionCallbackParameters.mdx" - - - - - - - - - -## addSessionPartnerParameter - -Adds partner parameters to send with each session recorded by the Adjust SDK. You can add extra parameters by calling on this method multiple times. - - - -import AddSessionPartnerParameterSig from "@unity-signatures/Adjust/addSessionPartnerParameter.mdx" - - - - - - - -import AddSessionPartnerParameter from "@unity-examples/Adjust/addSessionPartnerParameter.mdx" - - - - - - - -`key` (string): The data key - -`value` (string): The data value - - - - - - - -## removeSessionPartnerParameter - -Remove a session partner parameter. - - - -import RemoveSessionPartnerParameterSig from "@unity-signatures/Adjust/removeSessionPartnerParameter.mdx" - - - - - - - -import RemoveSessionPartnerParameter from "@unity-examples/Adjust/removeSessionPartnerParameter.mdx" - - - - - - - -`key` (string): The data key of the parameter you want to remove. - - - - - - - -## resetSessionPartnerParameters - -Removes all session partner parameters. - - - -import ResetSessionPartnerParametersSig from "@unity-signatures/Adjust/resetSessionPartnerParameters.mdx" - - - - - - - -import ResetSessionPartnerParameters from "@unity-examples/Adjust/resetSessionPartnerParameters.mdx" - - - - - - - - - -## trackAdRevenue - -Record the details of an AdjustAdRevenue object. - - - -import TrackAdRevenueSig from "@unity-signatures/Adjust/trackAdRevenue.mdx" - - - - - - - -import TrackAdRevenue from "@unity-examples/Adjust/trackAdRevenue.mdx" - - - - - - - -`adRevenue` (AdjustAdRevenue): The ad revenue object containing the revenue details. - - - - - - - -## trackPlayStoreSubscription - -Record a Play Store subscription object. - - - -import TrackPlayStoreSubscriptionSig from "@unity-signatures/Adjust/trackPlayStoreSubscription.mdx" - - - - - - - -import TrackPlayStoreSubscription from "@unity-examples/Adjust/trackPlayStoreSubscription.mdx" - - - - - - - -`subscription` (AdjustPlayStoreSubscription): The subscription object containing the purchase details. - - - - - - - -## trackAppStoreSubscription - -Record an App Store subscription object. - - - -import TrackAppStoreSubscriptionSig from "@unity-signatures/Adjust/trackAppStoreSubscription.mdx" - - - - - - - -import TrackAppStoreSubscription from "@unity-examples/Adjust/trackAppStoreSubscription.mdx" - - - - - - - -`subscription` (AdjustAppStoreSubscription): The subscription object containing the purchase details. - - - - - - - -## getAttribution - -Fetches attribution data about the device. - - - -import GetAttributionSig from "@unity-signatures/Adjust/getAttribution.mdx" - - - - - - - -import GetAttribution from "@unity-examples/Adjust/getAttribution.mdx" - - - - - - - -`attribution` (AdjustAttribution): An attribution object containing attribution data associated with the device. - - - - diff --git a/src/content/docs/sdk/unity/reference/adjust/skan-att.mdx b/src/content/docs/sdk/unity/reference/adjust/skan-att.mdx deleted file mode 100644 index 4b99c97e7..000000000 --- a/src/content/docs/sdk/unity/reference/adjust/skan-att.mdx +++ /dev/null @@ -1,122 +0,0 @@ ---- -title: SKAdNetwork and ATT methods -description: Use these methods to send information about your app to Adjust. -slug: en/sdk/unity/reference/adjust/skan-att -sidebar-position: 5 ---- - -Use these methods to manage your [SKAdNetwork](https://help.adjust.com/en/article/skadnetwork) and [App Tracking Transparency](https://help.adjust.com/en/article/app-tracking-transparency-att-framework) logic. - - - -## requestTrackingAuthorizationWithCompletionHandler - -Receives the user's authorization status from the ATT prompt and passes it to a completion function. - - - -import RequestTrackingAuthorizationSig from "@unity-signatures/Adjust/requestTrackingAuthorization.mdx" - - - - - - - -import RequestTrackingAuthorization from "@unity-examples/Adjust/requestTrackingAuthorization.mdx" - - - - - - - -`statusCallback` (Action\): Completion handler to which the status is passed. - - - - - - - -## getAppTrackingAuthorizationStatus - -Retrieves the user's current authorization status. - - - -import GetAppTrackingAuthorizationStatusSig from "@unity-signatures/Adjust/appTrackingAuthorizationStatus.mdx" - - - - - - - -import GetAppTrackingAuthorizationStatus from "@unity-examples/Adjust/appTrackingAuthorizationStatus.mdx" - - - - - - - -`status` (int): The user's authorization status. - - - - - - - -## checkForNewAttStatus - -Prompts the SDK to check the current state of `att_status`. - - - -import CheckForNewAttStatusSig from "@unity-signatures/Adjust/checkForNewAttStatus.mdx" - - - - - - - -import CheckForNewAttStatus from "@unity-examples/Adjust/checkForNewAttStatus.mdx" - - - - - - - - - -## updateConversionValue - -Updates the [conversion value](https://help.adjust.com/en/suite/article/conversion-hub). - - - -import UpdateConversionValueSig from "@unity-signatures/Adjust/updateConversionValue.mdx" - - - - - - - -import UpdateConversionValue from "@unity-examples/Adjust/updateConversionValue.mdx" - - - - - - - -conversionValue (int): The new conversion value. - - - - diff --git a/src/content/docs/sdk/unity/reference/adjustadrevenue.mdx b/src/content/docs/sdk/unity/reference/adjustadrevenue.mdx deleted file mode 100644 index 331370866..000000000 --- a/src/content/docs/sdk/unity/reference/adjustadrevenue.mdx +++ /dev/null @@ -1,269 +0,0 @@ ---- -title: AdjustAdRevenue class -description: Use this class to store ad revenue information. -category-title: AdjustAdRevenue class -slug: en/sdk/unity/reference/adjustadrevenue ---- - -Use this class to store ad revenue information. - - - -## Constructor - -Creates an ad revenue object initialized with an external ad revenue source. - - - -import ConstructorSig from "@unity-signatures/AdjustAdRevenue/constructor.mdx"; - - - - - - - -import Constructor from "@unity-examples/AdjustAdRevenue/constructor.mdx"; - - - - - - - -`source` (NSString): The source of the ad revenue. - - - -| Parameter | Source | -| ---------------------------------------------------- | ----------------- | -| `AdjustConfig.AdjustAdRevenueSourceAppLovinMAX` | AppLovin MAX | -| `AdjustConfig.AdjustAdRevenueSourceMopub` | Mopub | -| `AdjustConfig.AdjustAdRevenueSourceAdMob` | AdMob | -| `AdjustConfig.AdjustAdRevenueSourceIronSource` | ironSource | -| `AdjustConfig.AdjustAdRevenueSourceAdmost` | AdMost | -| `AdjustConfig.AdjustAdRevenueSourceUnity` | Unity | -| `AdjustConfig.AdjustAdRevenueSourceHeliumChartboost` | Helium Chartboost | -| `AdjustConfig.AdjustAdRevenueSourcePublisher` | Generic source | - -
- -
- -
- - - -## setRevenue - -Set the revenue amount associated with the ad revenue object. - - - -import SetRevenueSig from "@unity-signatures/AdjustAdRevenue/setRevenue.mdx" - - - - - - - -import SetRevenue from "@unity-examples/AdjustAdRevenue/setRevenue.mdx" - - - - - - - -`amount` (double): The amount of currency units associated with the ad. - -`currency` (string): The 3 character [ISO 4217 code](https://www.iban.com/currency-codes) of the currency unit. - - - - - - - -## setAdImpressionsCount - -Sets the number of impressions received for an ad. - - - -import SetAdImpressionsCountSig from "@unity-signatures/AdjustAdRevenue/setAdImpressionsCount.mdx" - - - - - - - -import SetAdImpressionsCount from "@unity-examples/AdjustAdRevenue/setAdImpressionsCount.mdx" - - - - - - - -`adImpressionsCaount` (int): The number of impressions associated with the ad. - - - - - - - -## setAdRevenueNetwork - -Sets the network associated with the ad revenue. - - - -import SetAdRevenueNetworkSig from "@unity-signatures/AdjustAdRevenue/setAdRevenueNetwork.mdx" - - - - - - - -import SetAdRevenueNetwork from "@unity-examples/AdjustAdRevenue/setAdRevenueNetwork.mdx" - - - - - - - -`adRevenueNetwork` (string): The network associated with the ad revenue. - - - - - - - -## setAdRevenueUnit - -Sets the ad unit ID associated with the ad revenue. - - - -import SetAdRevenueUnitSig from "@unity-signatures/AdjustAdRevenue/setAdRevenueUnit.mdx" - - - - - - - -import SetAdRevenueUnit from "@unity-examples/AdjustAdRevenue/setAdRevenueUnit.mdx" - - - - - - - -`unit` (string): The ad unit ID associated with the ad revenue. - - - - - - - -## setAdRevenuePlacement - -Sets the placement of the ad associated with the ad revenue. - - - -import SetAdRevenuePlacementSig from "@unity-signatures/AdjustAdRevenue/setAdRevenuePlacement.mdx" - - - - - - - -import SetAdRevenuePlacement from "@unity-examples/AdjustAdRevenue/setAdRevenuePlacement.mdx" - - - - - - - -`adRevenuePlacement` (string): The placement of the ad associated with the revenue. - - - - - - - -## addCallbackParameter - -Adds key-value information to send to your callback URL. - - - -import AddCallbackParameterSig from "@unity-signatures/AdjustAdRevenue/addCallbackParameter.mdx" - - - - - - - -import AddCallbackParameter from "@unity-examples/AdjustAdRevenue/addCallbackParameter.mdx" - - - - - - - -`key` (string): The data key. - -`value` (string): The data value. - - - - - - - -## addPartnerParameter - -Adds key-value information to share with partners. - - - -import AddPartnerParameterSig from "@unity-signatures/AdjustAdRevenue/addPartnerParameter.mdx" - - - - - - - -import AddPartnerParameter from "@unity-examples/AdjustAdRevenue/addPartnerParameter.mdx" - - - - - - - -`key` (string): The data key. - -`value` (string): The data value. - - - - diff --git a/src/content/docs/sdk/unity/reference/adjustappstoresubscription.mdx b/src/content/docs/sdk/unity/reference/adjustappstoresubscription.mdx deleted file mode 100644 index 92d77747f..000000000 --- a/src/content/docs/sdk/unity/reference/adjustappstoresubscription.mdx +++ /dev/null @@ -1,170 +0,0 @@ ---- -title: AdjustAppStoreSubscription class -description: Use this class to store App Store subscription information. -category-title: AdjustAppStoreSubscription class -slug: en/sdk/unity/reference/adjustappstoresubscription ---- - -import TrackAppStoreSubscription from "@unity-signatures/Adjust/trackAppStoreSubscription.mdx" - -Use this class to store App Store subscription information. You can pass this to Adjust's servers using the `trackAppStoreSubscription` method. - - - -## Constructor - -Instantiates a subscription object. - - - -import ConstructorSig from "@unity-signatures/AdjustAppStoreSubscription/constructor.mdx" - - - - - - - -import Constructor from "@unity-examples/AdjustAppStoreSubscription/adjustAppStoreSubscription.mdx" - - - - - - - -`price` (string): The price of the subscription. - -`currency` (string): The currency of the subscription. Formatted as the [`currencyCode`](https://developer.apple.com/documentation/foundation/nslocale/1642836-currencycode?language=objc) of the [`priceLocale`](https://developer.apple.com/documentation/storekit/skproduct/1506145-pricelocale?language=objc) object - -`transactionId` (string): Your ID for the transaction. - -`receipt` (string): The receipt information. - - - - - - - -## setTransactionDate - -Sets the date of the transaction in the subscription object. - - - -import SetTransactionDateSig from "@unity-signatures/AdjustAppStoreSubscription/setTransactionDate.mdx" - - - - - - - -import SetTransactionDate from "@unity-examples/AdjustAppStoreSubscription/setTransactionDate.mdx" - - - - - - - -`transactionDate` (string): The date on which the subscription was purchased. - - - - - - - -## setSalesRegion - -You can record the region in which the user purchased a subscription. - - - -import SetSalesRegionSig from "@unity-signatures/AdjustAppStoreSubscription/setSalesRegion.mdx" - - - - - - - -import SetSalesRegion from "@unity-examples/AdjustAppStoreSubscription/setSalesRegion.mdx" - - - - - - - -`salesRegion` (string): The region in which the subscription was purchased. - - - - - - - -## addCallbackParameter - -Adds key-value callback parameters to the subscription object. You can add multiple parameters by calling this method multiple times. - - - -import AddCallbackParameterSig from "@unity-signatures/AdjustAppStoreSubscription/addCallbackParameter.mdx" - - - - - - - -import AddCallbackParameter from "@unity-examples/AdjustAppStoreSubscription/addCallbackParameter.mdx" - - - - - - - -`key` (string): The data key. - -`value` (string): The data value. - - - - - - - -## addPartnerParameter - -Adds key-value callback parameters to the subscription object. You can add multiple parameters by calling this method multiple times. - - - -import AddPartnerParameterSig from "@unity-signatures/AdjustAppStoreSubscription/addPartnerParameter.mdx" - - - - - - - -import AddPartnerParameter from "@unity-examples/AdjustAppStoreSubscription/addPartnerParameter.mdx" - - - - - - - -`key` (string): The data key. - -`value` (string): The data value. - - - - diff --git a/src/content/docs/sdk/unity/reference/adjustattribution.mdx b/src/content/docs/sdk/unity/reference/adjustattribution.mdx deleted file mode 100644 index 864475247..000000000 --- a/src/content/docs/sdk/unity/reference/adjustattribution.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: AdjustAttribution class -description: Use this class to see attribution information. -category-title: AdjustAttribution class -slug: en/sdk/unity/reference/adjustattribution ---- - -import AttributionSig from "@unity-signatures/Adjust/getAttribution.mdx" -import SetNeedsCostSig from "@unity-signatures/AdjustConfig/setNeedsCost.mdx" - -The `AdjustAttribution` class contains details about the current attribution status of the device. - -## Properties - -The following properties can be accessed by calling the `getAttribution` method. Any values that aren't populated for the user are returned as a null value. - - - -The following values can only be accessed if the `needsCost` property on your `ADJConfig` instance is `true`: - -- `costType` -- `costAmount` -- `costCurrency` - - - - - -| Values | Data type | Description | -| ------------------- | --------- | ---------------------------------------------------------------------------------------------------------------- | -| `trackerToken` | String | The token of the tracker to which the device is currently attributed | -| `trackerName` | String | The name of the tracker to which the device is currently attributed | -| `network` | String | The name of the network to which the device is currently attributed | -| `campaign` | String | The name of the campaign to which the device is currently attributed | -| `adgroup` | String | The name of the adgroup to which the device is currently attributed | -| `creative` | String | The name of the creative to which the device is currently attributed | -| `clickLabel` | String | The [click label](https://help.adjust.com/en/article/user-rewards) that the install is tagged with | -| `adid` | String | The unique Adjust ID assigned to the device | -| `costType` | String | The campaign pricing model (for example cpi) | -| `costAmount` | Number | The cost of the install. | -| `costCurrency` | String | The [3 character ISO 4217 code](https://www.iban.com/currency-codes) of the currency associated with the cost. | -| `fbInstallReferrer` | String | The [Facebook install referrer](https://developers.facebook.com/docs/app-ads/install-referrer/). _Android only_. | - -
diff --git a/src/content/docs/sdk/unity/reference/adjustconfig/index.mdx b/src/content/docs/sdk/unity/reference/adjustconfig/index.mdx deleted file mode 100644 index 9c869ca0e..000000000 --- a/src/content/docs/sdk/unity/reference/adjustconfig/index.mdx +++ /dev/null @@ -1,55 +0,0 @@ ---- -title: AdjustConfig class -description: Use the methods in this class to set up the Adjust SDK. -category-title: AdjustConfig class -slug: en/sdk/unity/reference/adjustconfig -type: category ---- - -Use the methods in this class to set up the Adjust SDK. - - - -The methods in this class must be called **before** you initialize the SDK. - - - - - -## Constructor - -Initialize the configuration object with your Adjust app token. - - - -import Constructor from "@unity-signatures/AdjustConfig/constructor.mdx" - - - - - - - -import ConfigWithAppToken from "@unity-examples/AdjustConfig/constructor.mdx" - - - - - - - -`appToken` (string): Your Adjust app token. - -`environment` (AdjustEnvironment): The environment your app is running in. - -`allowSuppressLogLevel` (bool): Whether to allow all logging to be suppressed. - - - - - -`config` (AdjustConfig): A config object initialized with the provided params. - - - - diff --git a/src/content/docs/sdk/unity/reference/adjustconfig/privacy.mdx b/src/content/docs/sdk/unity/reference/adjustconfig/privacy.mdx deleted file mode 100644 index 1b0197f0b..000000000 --- a/src/content/docs/sdk/unity/reference/adjustconfig/privacy.mdx +++ /dev/null @@ -1,79 +0,0 @@ ---- -title: Privacy methods -description: Configure these properties to set up privacy features in the Adjust SDK. -slug: en/sdk/unity/reference/adjustconfig/privacy -sidebar-position: 2 ---- - - - -## setUrlStrategy - -Sets the country or region of data residency. If called with a `UrlStrategy` parameter, sets the country/region where data will be sent preferentially. - - - -import SetUrlStrategySig from "@unity-signatures/AdjustConfig/setUrlStrategy.mdx"; - - - - - - - -import SetUrlStrategy from "@unity-examples/AdjustConfig/setUrlStrategy.mdx"; - - - - - - - -`urlStrategy` (string): The data residency target (see available values below) - - - -| Value | Description | -| ------------------------ | --------------------------------------------------------- | -| `AdjustDataResidencyEU` | Sets the area of data residency to the EU | -| `AdjustDataResidencyTR` | Sets the area of data residency to Turkey | -| `AdjustDataResidencyUS` | Sets the area of data residency to the USA | -| `AdjustUrlStrategyChina` | Points the URL strategy to the `app.adjust.world` domain | -| `AdjustUrlStrategyCn` | Points the URL strategy to the `app.adjust.cn` domain | -| `AdjustUrlStrategyIndia` | Points the URL strategy to the `app.adjust.net.in` domain | - -
- -
- -
- - - -## setCoppaCompliantEnabled - -Enable COPPA (Children's Online Privacy Protection Act) compliance in your app. - - - -import SetCoppaCompliantEnabledSig from "@unity-signatures/AdjustConfig/setCoppaCompliantEnabled.mdx"; - - - - - - - -import SetCoppaCompliantEnabled from "@unity-examples/AdjustConfig/setCoppaCompliantEnabled.mdx"; - - - - - - - -`coppaCompliantEnabled` (bool): Whether the app should be COPPA compliant. - - - - diff --git a/src/content/docs/sdk/unity/reference/adjustconfig/setup.mdx b/src/content/docs/sdk/unity/reference/adjustconfig/setup.mdx deleted file mode 100644 index c98326791..000000000 --- a/src/content/docs/sdk/unity/reference/adjustconfig/setup.mdx +++ /dev/null @@ -1,604 +0,0 @@ ---- -title: Setup methods -description: Configure these properties to set up the Adjust SDK. -slug: en/sdk/unity/reference/adjustconfig/setup -sidebar-position: 1 ---- - -Configure these properties to set up the Adjust SDK. - - - -## setLogLevel - -Set the verbosity of logs you want to receive from the Adjust SDK. - - - -import SetLogLevelSig from "@unity-signatures/AdjustConfig/setLogLevel.mdx"; - - - - - - - -import SetLogLevel from "@unity-examples/AdjustConfig/setLogLevel.mdx"; - - - - - - - -`logLevel` (AdjustLogLevel): The level of logging output by the SDK. - - - -| Log level | Description | -| ------------------------- | ------------------------------------------ | -| `AdjustLogLevel.Verbose` | Enable all logging | -| `AdjustLogLevel.Debug` | Enable debug logging | -| `AdjustLogLevel.Info` | Only show info level logs (default option) | -| `AdjustLogLevel.Warn` | Disable info logging | -| `AdjustLogLevel.Error` | Disable warning level logging and below | -| `AdjustLogLevel.Assert` | Disable error level logging and below | -| `AdjustLogLevel.Suppress` | Suppress all logging | - -
- -
- -
- - - -## setLogDelegate - -Add a description of the method or function here - - - -import SetLogDelegateSig from "@unity-signatures/AdjustConfig/setLogDelegate.mdx" - - - - - - - -import SetLogDelegate from "@unity-examples/AdjustConfig/setLogDelegate.mdx" - - - - - - - -`logDelegate` (Action\): The delegate function or program that handles log output. - - - - - - - -## setDefaultTracker - -Sets a default token to record installs against. - - - -import SetDefaultTrackerSig from "@unity-signatures/AdjustConfig/setDefaultTracker.mdx" - - - - - - - -import SetDefaultTracker from "@unity-examples/AdjustConfig/setDefaultTracker.mdx" - - - - - - - -`defaultTracker` (string): The token to which all preinstalled sessions are attributed. - - - - - - - -## setSendInBackground - -Sets whether the SDK should send data while the app is running in the background. - - - -import SetSendInBackgroundSig from "@unity-signatures/AdjustConfig/sendInBackground.mdx" - - - - - - - -import SetSendInBackground from "@unity-examples/AdjustConfig/sendInBackground.mdx" - - - - - - - -`sendInBackground` (bool): Whether the SDK should send information to Adjust when the app is running in the background. - - - - - - - -## setSessionSuccessDelegate - -Sets up a success callback to trigger a function when the SDK records a session. - - - -import SetSessionSuccessDelegateSig from "@unity-signatures/AdjustConfig/setSessionSuccessDelegate.mdx" - - - - - - - -import SetSessionSuccessDelegate from "@unity-examples/AdjustConfig/setSessionSuccessDelegate.mdx" - - - - - - - -`sessionSuccessDelegate` (Action\): The function to launch when the SDK successfully records a session. - - - - - - - -## setSessionFailureDelegate - -Sets up a callback to trigger a function when the SDK fails to record a session. - - - -import SetSessionFailureDelegateSig from "@unity-signatures/AdjustConfig/setSessionFailureDelegate.mdx" - - - - - - - -import SetSessionFailureDelegate from "@unity-examples/AdjustConfig/setSessionFailureDelegate.mdx" - - - - - - - -`sessionFailureDelegate` (Action\): The function to launch when the SDK fails to record a session. - - - - - - - -## setEventSuccessDelegate - -Sets up a success callback to trigger a function when the SDK records an event. - - - -import SetEventSuccessDelegateSig from "@unity-signatures/AdjustConfig/setEventSuccessDelegate.mdx" - - - - - - - -import SetEventSuccessDelegate from "@unity-examples/AdjustConfig/setEventSuccessDelegate.mdx" - - - - - - - -`eventSuccessDelegate` (Action\): The function to launch when the SDK successfully records an event. - - - - - - - -## setEventFailureDelegate - -Sets up a callback to trigger a function when the SDK fails to record a session. - - - -import SetEventFailureDelegateSig from "@unity-signatures/AdjustConfig/setEventFailureDelegate.mdx" - - - - - - - -import SetEventFailureDelegate from "@unity-examples/AdjustConfig/setEventFailureDelegate.mdx" - - - - - - - -`eventFailureDelegate` (Action\): The function to launch when the SDK fails to record an event. - - - - - - - -## setDelayStart - -Sets a delay before the SDK starts to allow data to load before session information is sent to Adjust's servers. - - - -You can delay the start of the SDK by up to **10 seconds**. - - - - - -import SetDelayStartSig from "@unity-signatures/AdjustConfig/setDelayStart.mdx" - - - - - - - -import SetDelayStart from "@unity-examples/AdjustConfig/setDelayStart.mdx" - - - - - - - -`delayStart` (double): The time (in seconds) to delay the start of the SDK by. - - - - - - - -## setExternalDeviceId - -Sets an external device identifier for reporting purposes. - - - -import SetExternalDeviceIdSig from "@unity-signatures/AdjustConfig/setExternalDeviceId.mdx" - - - - - - - -import SetExternalDeviceId from "@unity-examples/AdjustConfig/setExternalDeviceId.mdx" - - - - - - - -`externalDeviceId` (string): The external device ID associated with the device. - - - - - - - -## setEventBufferingEnabled - -Sets event buffering. If enabled, the SDK stores events on the device and sends all requests once per minute. - - - -import SetEventBufferingEnabledSig from "@unity-signatures/AdjustConfig/setEventBufferingEnabled.mdx" - - - - - - - -import SetEventBufferingEnabled from "@unity-examples/AdjustConfig/setEventBufferingEnabled.mdx" - - - - - - - -`eventBufferingEnabled` (bool): Whether event buffering is enabled. - - - - - - - -## setNeedsCost - -Sets whether the SDK should gather cost data. This is accessible in the user's attribution information. - - - -import SetNeedsCostSig from "@unity-signatures/AdjustConfig/setNeedsCost.mdx" - - - - - - - -import SetNeedsCost from "@unity-examples/AdjustConfig/setNeedsCost.mdx" - - - - - - - -`needsCost` (bool): Whether the SDK should gather cost data - - - - - - - -## setAttributionChangedDelegate - -Sets a delegate function that fires when a user's attribution information updates. - - - -import SetAttributionChangedDelegateSig from "@unity-signatures/AdjustConfig/setAttributionChangedDelegate.mdx" - - - - - - - -import SetAttributionChangedDelegate from "@unity-examples/AdjustConfig/setAttributionChangedDelegate.mdx" - - - - - - - -`attributionChangedDelegate` (Action\): The delegate function that the SDK calls when the user's attribution information changes. - - - - - - - -## setPreinstallTrackingEnabled - -Enables or disables preinstall tracking. - - - -import SetPreinstallTrackingEnabledSig from "@unity-signatures/AdjustConfig/setPreinstallTrackingEnabled.mdx" - - - - - - - -import SetPreinstallTrackingEnabled from "@unity-examples/AdjustConfig/setPreinstallTrackingEnabled.mdx" - - - - - - - -`preinstallTrackingEnabled` (bool): Whether preinstall tracking is enabled. - - - - - - - -## setPreinstallFilePath - -Defines a relative path where preinstall information is available. - - - -This directory must be world-readable - - - - - -import SetPreinstallFilePathSig from "@unity-signatures/AdjustConfig/setPreinstallFilePath.mdx" - - - - - - - -import SetPreinstallFilePath from "@unity-examples/AdjustConfig/setPreinstallFilePath.mdx" - - - - - - - -`preinstallFilePath` (string): The path where the preinstall information is written. - - - - - - - -## deactivateSKAdNetworkHandling - -Turns off communication with SKAdNetwork. - - - -SKAdNetwork communication is enabled by default. - - - - - -import DeactivateSKAdNetworkHandlingSig from "@unity-signatures/AdjustConfig/deactivateSKAdNetworkHandling.mdx" - - - - - - - -import DeactivateSKAdNetworkHandling from "@unity-examples/AdjustConfig/deactivateSKAdNetworkHandling.mdx" - - - - - - - - - -## setLaunchDeferredDeepLink - -Enables or disables launching deferred deep links with the SDK. If enabled, the SDK launches deep links the user interacts with. - - - -import SetLaunchDeferredDeepLinkSig from "@unity-signatures/AdjustConfig/setLaunchDeferredDeeplink.mdx" - - - - - - - -import SetLaunchDeferredDeepLink from "@unity-examples/AdjustConfig/setLaunchDeferredDeeplink.mdx" - - - - - - - -`launchDeferredDeepLink` (bool): Whether to enable launching deferred deep links. - - - - - - - -## setLinkMeEnabled - -Toggle support for Adjust's [LinkMe solution](https://help.adjust.com/en/article/linkme) for deep linking. - - - -import SetLinkMeEnabledSig from "@unity-signatures/AdjustConfig/setLinkMeEnabled.mdx" - - - - - - - -import SetLinkMeEnabled from "@unity-examples/AdjustConfig/setLinkMeEnabled.mdx" - - - - - - - -`linkMeEnabled` (bool): Whether to enable LinkMe. - - - - - - - -## setConversionValueUpdatedDelegate - -Sets a delegate function to call when the user's conversion value updates. - - - -import SetConversionValueUpdatedDelegateSig from "@unity-signatures/AdjustConfig/setConversionValueUpdatedDelegate.mdx" - - - - - - - -import SetConversionValueUpdatedDelegate from "@unity-examples/AdjustConfig/setConversionValueUpdatedDelegate.mdx" - - - - - - - -`conversionValueUpdatedDelegate` (Action\): The delegate function the SDK launches when the conversion value updates - - - - diff --git a/src/content/docs/sdk/unity/reference/adjustevent.mdx b/src/content/docs/sdk/unity/reference/adjustevent.mdx deleted file mode 100644 index 28eed15d0..000000000 --- a/src/content/docs/sdk/unity/reference/adjustevent.mdx +++ /dev/null @@ -1,196 +0,0 @@ ---- -title: AdjustEvent class -description: Record information about events to send to Adjust. -category-title: AdjustEvent class -slug: en/sdk/unity/reference/adjustevent ---- - -import TrackEvent from "@unity-signatures/Adjust/trackEvent.mdx" - -This class contains information about events triggered in your application. You can send this information to Adjust's servers by passing an `AdjustEvent` object to the `trackEvent` method. - - - -## Constructor - -Instantiates an event object with an Adjust event token. - - - -import ConstructorSig from "@unity-signatures/AdjustEvent/constructor.mdx" - - - - - - - -import Constructor from "@unity-examples/AdjustEvent/constructor.mdx" - - - - - - - -`eventToken` (string): A 6 character Adjust event token. - - - - - - - -## setRevenue - -Sets the revenue and currency associated with an event. - - - -import SetRevenueSig from "@unity-signatures/AdjustEvent/setRevenue.mdx" - - - - - - - -import SetRevenue from "@unity-examples/AdjustEvent/setRevenue.mdx" - - - - - - - -`amount` (double): The amount of currency units associated with the event. - -`currency` (string): The 3 character [ISO 4217 code](https://www.iban.com/currency-codes) of the currency unit. - - - - - - - -## setTransactionId - -Sets a deduplication ID on your event to avoid recording duplicates. The SDK stores the last ten identifiers and skips revenue events with duplicate IDs. - - - -import SetTransactionIdSig from "@unity-signatures/AdjustEvent/setTransactionId.mdx" - - - - - - - -import SetTransactionId from "@unity-examples/AdjustEvent/setTransactionId.mdx" - - - - - - - -`transactionId` (string): A unique identifier used to deduplicate events. - - - - - - - -## setCallbackId - -Sets a custom identifier for your event object. Adjust's servers can report on this identifier in event callbacks. - - - -import SetCallbackIdSig from "@unity-signatures/AdjustEvent/setCallbackId.mdx" - - - - - - - -import SetCallbackId from "@unity-examples/AdjustEvent/setCallbackId.mdx" - - - - - - - -`callbackId` (string): A custom identifier for your event object. - - - - - - - -## addCallbackParameter - -Adds key-value information to send to your callback URL. - - - -import AddCallbackParameterSig from "@unity-signatures/AdjustEvent/addCallbackParameter.mdx" - - - - - - - -import AddCallbackParameter from "@unity-examples/AdjustEvent/addCallbackParameter.mdx" - - - - - - - -`key` (string): The data key. - -`value` (string): The data value. - - - - - - - -## addPartnerParameter - -Adds key-value information to share with partners. - - - -import AddPartnerParameterSig from "@unity-signatures/AdjustEvent/addPartnerParameter.mdx" - - - - - - - -import AddPartnerParameter from "@unity-examples/AdjustEvent/addPartnerParameter.mdx" - - - - - - - -`key` (string): The data key. - -`value` (string): The data value. - - - - diff --git a/src/content/docs/sdk/unity/reference/adjustplaystoresubscription.mdx b/src/content/docs/sdk/unity/reference/adjustplaystoresubscription.mdx deleted file mode 100644 index 1bf11256e..000000000 --- a/src/content/docs/sdk/unity/reference/adjustplaystoresubscription.mdx +++ /dev/null @@ -1,145 +0,0 @@ ---- -title: AdjustPlayStoreSubscription class -description: Use this class to store Play Store subscription information. -category-title: AdjustPlayStoreSubscription class -slug: en/sdk/unity/reference/adjustplaystoresubscription ---- - -import TrackPlayStoreSubscription from "@unity-signatures/Adjust/trackPlayStoreSubscription.mdx" - -Use this class to store Play Store subscription information. You can pass this to Adjust's servers using the `trackPlayStoreSubscription` method. - - - -## Constructor - -Instantiates a subscription object. - - - -import ConstructorSig from "@unity-signatures/AdjustPlayStoreSubscription/constructor.mdx" - - - - - - - -import Constructor from "@unity-examples/AdjustPlayStoreSubscription/adjustPlayStoreSubscription.mdx" - - - - - - - -`price` (string): The price of the subscription. - -`currency` (string): The currency of the subscription. Formatted as the [`currencyCode`](https://developer.apple.com/documentation/foundation/nslocale/1642836-currencycode?language=objc) of the [`priceLocale`](https://developer.apple.com/documentation/storekit/skproduct/1506145-pricelocale?language=objc) object - -`sku` (string): The ID of the product. - -`orderId` (string): Your ID for the transaction. - -`signature` (string): The signature of the purchase data. - -`purchaseToken` (string): The unique token of the transaction. See [Google's documentation](https://developer.android.com/reference/com/android/billingclient/api/Purchase#getPurchaseToken()) for more information. - - - - - - - -## setPurchaseTime - -Sets the date of the transaction in the subscription object. - - - -import SetPurchaseTimeSig from "@unity-signatures/AdjustPlayStoreSubscription/setPurchaseTime.mdx" - - - - - - - -import SetPurchaseTime from "@unity-examples/AdjustPlayStoreSubscription/setPurchaseTime.mdx" - - - - - - - -`purchaseTime` (string): The date on which the subscription was purchased. - - - - - - - -## addCallbackParameter - -Adds key-value callback parameters to the subscription object. You can add multiple parameters by calling this method multiple times. - - - -import AddCallbackParameterSig from "@unity-signatures/AdjustPlayStoreSubscription/addCallbackParameter.mdx" - - - - - - - - -import AddCallbackParameter from "@unity-examples/AdjustPlayStoreSubscription/addCallbackParameter.mdx" - - - - - - - -`key` (string): The data key. - -`value` (string): The data value. - - - - - - - -## addPartnerParameter - -Adds key-value callback parameters to the subscription object. You can add multiple parameters by calling this method multiple times. - - - -import AddPartnerParameterSig from "@unity-signatures/AdjustPlayStoreSubscription/addPartnerParameter.mdx" - - - - - - - -import AddPartnerParameter from "@unity-examples/AdjustPlayStoreSubscription/addPartnerParameter.mdx" - - - - - - - -`key` (string): The data key. - -`value` (string): The data value. - - - - diff --git a/src/content/docs/sdk/unity/reference/adjustthirdpartysharing.mdx b/src/content/docs/sdk/unity/reference/adjustthirdpartysharing.mdx deleted file mode 100644 index db17150c0..000000000 --- a/src/content/docs/sdk/unity/reference/adjustthirdpartysharing.mdx +++ /dev/null @@ -1,139 +0,0 @@ ---- -title: AdjustThirdPartySharing class -description: Use this class to communicate a user's third party sharing preferences. -category-title: AdjustThirdPartySharing class -slug: en/sdk/unity/reference/adjustthirdpartysharing ---- - -import TrackThirdPartySharing from "@unity-signatures/Adjust/trackThirdPartySharing.mdx"; - -Use this class to communicate a user's third party sharing preferences. Send this information to Adjust's servers using the `trackThirdPartySharing` method. - - - -## Constructor - -Creates a third party sharing object initialized with a **nullable boolean** value. - - - -import Constructor from "@unity-signatures/AdjustThirdPartySharing/constructor.mdx"; - - - - - - - -import InitTrue from "@unity-examples/AdjustThirdPartySharing/initTrue.mdx"; - - - - - - - -`isEnabled` (bool): Whether third party sharing is enabled. - - - - - - - -## addGranularOption - -Adds additional key-value pairs of information to share with third parties. You can add multiple parameters by calling this method multiple times. - - - -import AddGranularOptionSig from "@unity-signatures/AdjustThirdPartySharing/addGranularOption.mdx"; - - - - - - - -import AddGranularOption from "@unity-examples/AdjustThirdPartySharing/addGranularOption.mdx"; - - - -You can use this method to toggle Facebook data processing options. - -import Facebook from "@unity-examples/AdjustThirdPartySharing/addGranularOptionFacebook.mdx"; - - - - - -| Parameter | Description | -| --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `partner_name` | Use `facebook` to toggle LDU. | -| `data_processing_options_country` | The country in which the user is located.
  • `0`: Request that Facebook use geolocation.
  • `1`: United States of America.
| -| `data_processing_options_state` | Notifies Facebook in which state the user is located.
  • `0`: Request that Facebook use geolocation.
  • `1000`: California.
| - -
- -
- - - -`partnerName` (string): The name of the partner you want to share information with. - -`key` (string): The data key. - -`value` (string): The data value. - - - -
- - - -## addPartnerSharingSetting - -Adds additional key-value pairs of settings to share with third parties. You can add multiple settings by calling this method multiple times. - - - -import AddPartnerSharingSettingSig from "@unity-signatures/AdjustThirdPartySharing/addPartnerSharingSetting.mdx"; - - - - - - - -import AddPartnerSharingSetting from "@unity-examples/AdjustThirdPartySharing/addPartnerSharingSetting.mdx"; - - - - - - - -`partnerName` (string): The name of the partner whose settings you want to update. See the table of available partners below. -`key` (string): The setting you want to update. -`value` (bool): Whether the setting is enabled. - - - -| Partner name | String value | -| ----------------------- | --------------------------- | -| AppleAds | `apple_ads` | -| Facebook | `facebook` | -| GoogleAds | `adwords` | -| GoogleMarketingPlatform | `google_marketing_platform` | -| Snapchat | `snapchat` | -| Tencent | `tencent` | -| TikTokSan | `tiktok_san` | -| Twitter | `twitter` | -| YahooGemini | `yahoo_gemini` | -| YahooJapanSearch | `yahoo_japan_search` | - -
- -
- -
diff --git a/src/content/docs/sdk/unity/reference/index.mdx b/src/content/docs/sdk/unity/reference/index.mdx deleted file mode 100644 index fa6dfb820..000000000 --- a/src/content/docs/sdk/unity/reference/index.mdx +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: SDK reference -description: SDK reference information for the Unity SDK -category-title: Reference -slug: en/sdk/unity/reference -type: category ---- diff --git a/src/content/docs/sdk/windows/configuration.mdx b/src/content/docs/sdk/windows/configuration.mdx index bb1483cc1..bdb27c352 100644 --- a/src/content/docs/sdk/windows/configuration.mdx +++ b/src/content/docs/sdk/windows/configuration.mdx @@ -10,7 +10,7 @@ Use the methods in this document to configure the behavior of the Adjust SDK. ## Instantiate your config object -```c# title="Method signature" +```cs title="Method signature" public AdjustConfig(string appToken, string environment, Action logDelegate = null, LogLevel? logLevel = null) ``` @@ -37,7 +37,7 @@ To instantiate your config object, create a new `AdjustConfig` instance and pass -```c# +```cs string appToken = "hmqwpvspxnuo"; string environment = AdjustConfig.EnvironmentSandbox; var adjustConfig = new AdjustConfig(appToken, environment, @@ -51,13 +51,13 @@ Adjust.ApplicationLaunching(adjustConfig); ### Configure a log delegate -```c# title="Method signature" +```cs title="Method signature" public void setLogDelegate(Action logDelegate); ``` A log delegate is a function that the Adjust SDK calls to record logs. To configure a log delegate, pass your log function to the `setLogDelegate`. The Adjust SDK calls this function each time it outputs a log message. -```c# {3} +```cs {3} AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); //... adjustConfig.setLogDelegate(msg => Debug.Log(msg)); @@ -67,7 +67,7 @@ Adjust.ApplicationLaunching(config); ### Set external device identifier -```c# title="Method signature" +```cs title="Method signature" public void setExternalDeviceId(string externalDeviceId); ``` @@ -83,7 +83,7 @@ See the [External device identifiers article](https://help.adjust.com/en/article
-```c# {3} +```cs {3} AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); //... adjustConfig.setExternalDeviceId("{Your-External-Device-Id}"); @@ -97,13 +97,13 @@ You can import existing external device IDs into Adjust. This ensures that the A ### Set default link token -```c# title="Property declaration" +```cs title="Property declaration" public string DefaultTracker { get; set; } ``` You can configure a default link token if your app is preinstalled on a device. When a user opens the preinstalled app for the first time, the install is attributed to the default link token. To set your default link token, assign your [Adjust link token](https://help.adjust.com/en/article/links#adjust-link-token) to the `DefaultTracker` property on your config instance. -```c# {3} +```cs {3} var adjustConfig = new AdjustConfig(appToken, environment, msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); adjustConfig.DefaultTracker = "{TrackerToken}"; @@ -112,13 +112,13 @@ Adjust.ApplicationLaunching(adjustConfig); ### Enable background recording -```c# title="Property declaration" +```cs title="Property declaration" public bool SendInBackground { get; set; } ``` By default, the Adjust SDK pauses the sending of requests when your app is running in the background. You can configure the SDK to send requests in the background by enabling the background recording. To enable background recording, assign a **Boolean** value to the `SendInBackground` property of your config instance. -```c# {4} +```cs {4} var adjustConfig = new AdjustConfig(appToken, environment, msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); //... @@ -129,7 +129,7 @@ Adjust.ApplicationLaunching(adjustConfig); ### Enable event buffering -```c# title="Property declaration" +```cs title="Property declaration" public bool EventBufferingEnabled { get; set; } ``` @@ -139,7 +139,7 @@ Your config object contains a boolean `EventBufferingEnabled` property that cont - `EventBufferingEnabled` (**Boolean**): Set to `true` to enable event buffering or `false` to disable event buffering. -```c# {4} +```cs {4} var adjustConfig = new AdjustConfig(appToken, environment, msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); //... @@ -150,7 +150,7 @@ Adjust.ApplicationLaunching(adjustConfig); ### Delay the start of the SDK -```c# title="Property declaration" +```cs title="Property declaration" public TimeSpan? DelayStart { get; set; } ``` @@ -160,7 +160,7 @@ To configure a startup delay, assign a **TimeSpan** value to the `DelayStart` pr - `delayStart` (**TimeSpan**): The time (in seconds) by which to delay the start of the SDK. You can delay the start of the SDK by up to **10 seconds**. -```c# +```cs adjustConfig.DelayStart = TimeSpan.FromSeconds(5.5); ``` @@ -170,7 +170,7 @@ adjustConfig.DelayStart = TimeSpan.FromSeconds(5.5); ### Toggle offline mode -```c# title="Method signature" +```cs title="Method signature" public void SetOfflineMode(bool offline); ``` @@ -186,13 +186,13 @@ You can toggle offline mode at any time by calling the `SetOfflineMode` method w - `offline` (Boolean): Set to `true` to enable offline mode or `false` to disable offline mode. -```c# +```cs Adjust.SetOfflineMode(true); ``` ### Set push tokens -```c# title="Method signature" +```cs title="Method signature" public static void SetPushToken(string pushToken); ``` @@ -208,7 +208,7 @@ If you have access to the push token from the web view, you can call the `setPus -```c# +```cs Adjust.SetPushToken("{YourDeviceToken}"); ``` @@ -220,7 +220,7 @@ You can only call this method after the first session. This setting persists bet -```c# title="Method signature" +```cs title="Method signature" public static void SetEnabled(bool enabled); ``` @@ -230,18 +230,18 @@ You can enable or disable the SDK at any time by calling the `SetEnabled` method - `enabled` (Boolean): Set to `true` to enable the SDK or `false` to disable the SDK. -```c# +```cs Adjust.SetEnabled(false); ``` #### Check enabled status -```c# title="Method signature" +```cs title="Method signature" public static bool IsEnabled(); ``` You can check if the Adjust SDK is enabled at any time by calling the `isEnabled` method. This method returns a **boolean** value indicating if the SDK is **enabled** (`true`) or **disabled** (`false`). -```c# +```cs Adjust.IsEnabled(); ``` diff --git a/src/content/docs/sdk/windows/features/attribution.mdx b/src/content/docs/sdk/windows/features/attribution.mdx index 929ccf941..68dcab1c1 100644 --- a/src/content/docs/sdk/windows/features/attribution.mdx +++ b/src/content/docs/sdk/windows/features/attribution.mdx @@ -27,7 +27,7 @@ The `AdjustAttribution` class contains details about the current attribution sta ## Trigger a function when attribution changes -```c# title="Property declaration" +```cs title="Property declaration" public Action AttributionChanged { get; set; } ``` @@ -42,7 +42,7 @@ You must call the `AttributionChanged` method **before** initializing the Adjust -```c# {3,4} +```cs {3,4} var config = new AdjustConfig(appToken, environment); config.AttributionChanged = (attribution) => @@ -54,7 +54,7 @@ Adjust.ApplicationLaunching(config); -```c# "AdjustAttributionChanged" +```cs "AdjustAttributionChanged" var config = new AdjustConfig(appToken, environment); config.AttributionChanged = AdjustAttributionChanged; Adjust.ApplicationLaunching(config); @@ -70,7 +70,7 @@ private void AdjustAttributionChanged(AdjustAttribution attribution) ## Get current attribution information -```c# title="Method signature" +```cs title="Method signature" public static AdjustAttribution GetAttribution(); ``` @@ -80,6 +80,6 @@ When a user installs your app, Adjust attributes the install to a campaign. The -```c# +```cs AdjustAttribution attribution = Adjust.GetAttribution(); ``` diff --git a/src/content/docs/sdk/windows/features/callbacks.mdx b/src/content/docs/sdk/windows/features/callbacks.mdx index 72d9d7543..3db9bc7bc 100644 --- a/src/content/docs/sdk/windows/features/callbacks.mdx +++ b/src/content/docs/sdk/windows/features/callbacks.mdx @@ -32,13 +32,13 @@ Session callbacks have access to a response data object. You can use its propert ### Success callbacks -```c# title="Property declaration" +```cs title="Property declaration" public Action SessionTrackingSucceeded { get; set; } ``` Set up success callbacks to trigger functions when the SDK records a session. -```c# {3-6} +```cs {3-6} var config = new AdjustConfig(appToken, environment, msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); config.SessionTrackingSucceeded = adjustSessionSuccess => @@ -52,7 +52,7 @@ Adjust.ApplicationLaunching(config); This example shows how to log the timestamp at which the SDK recorded the session. -```c# {3-6} +```cs {3-6} var config = new AdjustConfig(appToken, environment, msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); config.SessionTrackingSucceeded = adjustSessionSuccess => @@ -64,13 +64,13 @@ Adjust.ApplicationLaunching(config); ### Failure callbacks -```c# title="Property declaration" +```cs title="Property declaration" public Action SessionTrackingFailed { get; set; } ``` Set up failure callbacks to trigger functions when the SDK fails to record a session. -```c# {3-6} +```cs {3-6} var config = new AdjustConfig(appToken, environment, msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); config.EventTrackingFailed = adjustEventFailure => @@ -84,7 +84,7 @@ Adjust.ApplicationLaunching(config); This example shows how to log the session failure message. -```c# {3-6} +```cs {3-6} var config = new AdjustConfig(appToken, environment, msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); config.SessionTrackingFailed = adjustSessionFailure => @@ -116,13 +116,13 @@ Event callbacks have access to a response data object. You can use its propertie ### Success callbacks -```c# title="Property declaration" +```cs title="Property declaration" public Action EventTrackingSucceeded { get; set; } ``` Set up success callbacks to trigger functions when the SDK records an event. -```c# {3-6} +```cs {3-6} var config = new AdjustConfig(appToken, environment, msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); config.EventTrackingSucceeded = adjustEventSuccess => @@ -136,7 +136,7 @@ Adjust.ApplicationLaunching(config); This example shows how to log the timestamp at which the SDK recorded an event. -```c# {3-6} +```cs {3-6} var config = new AdjustConfig(appToken, environment, msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); config.EventTrackingSucceeded = adjustEventSuccess => @@ -148,13 +148,13 @@ Adjust.ApplicationLaunching(config); ### Failure callbacks -```c# title="Property declaration" +```cs title="Property declaration" public Action EventTrackingFailed { get; set; } ``` Set up failure callbacks to trigger functions when the SDK fails to record an event. -```c# {3-6} +```cs {3-6} var config = new AdjustConfig(appToken, environment, msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); config.EventTrackingFailed = adjustEventFailure => @@ -168,7 +168,7 @@ Adjust.ApplicationLaunching(config); This example shows how to log an event failure message. -```c# {3-6} +```cs {3-6} var config = new AdjustConfig(appToken, environment, msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); config.EventTrackingFailed = adjustEventFailure => diff --git a/src/content/docs/sdk/windows/features/deep-links.mdx b/src/content/docs/sdk/windows/features/deep-links.mdx index 8955f7ca4..8eb430074 100644 --- a/src/content/docs/sdk/windows/features/deep-links.mdx +++ b/src/content/docs/sdk/windows/features/deep-links.mdx @@ -27,7 +27,7 @@ If a user has your app installed, it opens when they interact with a link contai Next, you need to set up your `OnActivated` event handler. This handles the activated deep link event. To set this up, add the following to your your `App.xaml.cs` file: -```c# title="App.xaml.cs" +```cs title="App.xaml.cs" // ... protected override void OnActivated(IActivatedEventArgs args) { if (args.Kind == ActivationKind.Protocol) { @@ -53,13 +53,13 @@ Your app opens when a user interacts with a link containing your **unique scheme ## Deferred deep linking -```c# title="Property declaration" +```cs title="Property declaration" public Func DeeplinkResponse { get; set; } ``` You can configure the Adjust SDK to call a delegate function when it receives a deferred deep link. This delegate function receives the deep link as a **string** argument. Once the SDK receives the deep link content from Adjust's servers, it delivers it through this delegate function and expects a **boolean** return value. This value represents whether the SDK should launch the **OnActivated** event handler. -```c# {4-14} +```cs {4-14} var adjustConfig = new AdjustConfig(appToken, environment, msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); @@ -97,7 +97,7 @@ If the user needs to be reattributed due to clicking on an Adjust deep link, thi You must call `Adjust.AppWillOpenUrl` in the `OnActivated` method of your app: -```c# {8-10} +```cs {8-10} using AdjustSdk; public partial class App : Application diff --git a/src/content/docs/sdk/windows/features/device-info.mdx b/src/content/docs/sdk/windows/features/device-info.mdx index 0efdda299..a6d0248b3 100644 --- a/src/content/docs/sdk/windows/features/device-info.mdx +++ b/src/content/docs/sdk/windows/features/device-info.mdx @@ -8,24 +8,24 @@ The Adjust SDK contains helper methods that return device information. Use these ## Adjust device identifier -```c# title="Method signature" +```cs title="Method signature" public static string GetAdid(); ``` Adjust generates a unique Adjust Device ID (ADID) for each device. Call the `GetAdid` method to return this ID as a **string**. -```c# +```cs string adid = Adjust.GetAdid(); ``` ## Windows advertising identifier -```c# title="Method signature" +```cs title="Method signature" public static string GetWindowsAdId(); ``` The Windows Advertising ID (Windows ADID) is a device-specific identifier for Windows devices. Call the `GetWindowsAdId` method to return this ID as a **string**. -```c# +```cs var windowsAdid = Adjust.GetWindowsAdId(); ``` diff --git a/src/content/docs/sdk/windows/features/events.mdx b/src/content/docs/sdk/windows/features/events.mdx index 80fb55582..a1eb12826 100644 --- a/src/content/docs/sdk/windows/features/events.mdx +++ b/src/content/docs/sdk/windows/features/events.mdx @@ -8,7 +8,7 @@ The Adjust SDK provides an `AdjustEvent` object which can be used to structure a ## Instantiate an AdjustEvent object -```c# title="Method signature" +```cs title="Method signature" public AdjustEvent(string eventToken); ``` @@ -18,14 +18,14 @@ To instantiate an event object, create a new `AdjustEvent` instance and pass the - `eventToken` (**String**): Your Adjust [event token](https://help.adjust.com/en/article/add-events#manage-your-events). -```c# {1} +```cs {1} var adjustEvent = new AdjustEvent("abc123"); Adjust.TrackEvent(adjustEvent); ``` ## Send an event -```c# title="Method signature" +```cs title="Method signature" public static void TrackEvent(AdjustEvent adjustEvent); ``` @@ -34,7 +34,7 @@ You can associate your [Adjust event tokens](https://help.adjust.com/en/article/ - Create a new Adjust event instance and pass your event token as a string argument. - Call the `TrackEvent` method with your event instance as an argument. -```c# {2} +```cs {2} var adjustEvent = new AdjustEvent("abc123"); Adjust.TrackEvent(adjustEvent); ``` @@ -43,7 +43,7 @@ Adjust.TrackEvent(adjustEvent); This example shows how to record an event with the token `g3mfiw` whenever a user interacts with a button. -```c# {14-18} +```cs {14-18} using AdjustSdk; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; @@ -84,7 +84,7 @@ namespace AdjustWSExample ## Record event revenue -```c# title="Method signature" +```cs title="Method signature" public void SetRevenue(double revenue, string currency); ``` @@ -101,7 +101,7 @@ Check the guide to [tracking purchases in different currencies](https://help.adj -```c# {2} +```cs {2} var adjustEvent = new AdjustEvent("abc123"); adjustEvent.SetRevenue(0.01, "EUR"); Adjust.TrackEvent(adjustEvent); @@ -111,7 +111,7 @@ Adjust.TrackEvent(adjustEvent); This example shows how to record an event with the token `g3mfiw` whenever a user interacts with a button. The function sets the `revenue` property of this event to _`0.25`_ and the `currency` property to _`EUR`_. -```c# {14-19} +```cs {14-19} using AdjustSdk; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; @@ -153,7 +153,7 @@ namespace AdjustWSExample ## Set a unique purchase ID -```c# title="Property declaration" +```cs title="Property declaration" public string PurchaseId { get; set; } ``` @@ -161,7 +161,7 @@ You can pass an optional identifier to avoid recording duplicate events. The SDK To set the identifier, assign your purchase ID to the `PurchaseId` property on your event object. -```c# {4} +```cs {4} AdjustEvent event = new AdjustEvent("abc123"); event.SetRevenue(0.01, "EUR"); @@ -174,7 +174,7 @@ Adjust.trackEvent(event); This example shows how to record an event with the token `g3mfiw` whenever a user interacts with a button. The function sets `PurchaseId` property to `5e85484b-1ebc-4141-aab7-25b869e54c49`. -```c# {14-20} +```cs {14-20} using AdjustSdk; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; @@ -217,7 +217,7 @@ namespace AdjustWSExample ## Add callback parameters -```c# title="Method signature" +```cs title="Method signature" public void AddCallbackParameter(string key, string value); ``` @@ -227,7 +227,7 @@ You can configure callback parameters to send to your servers. Once you configur Add callback parameters to your event by calling the `addCallbackParameter` method with **string** key-value arguments. You can add multiple parameters by calling this method multiple times. -```c# {3,4} +```cs {3,4} var adjustEvent = new AdjustEvent("abc123"); adjustEvent.AddCallbackParameter("key", "value"); @@ -271,7 +271,7 @@ The resulting callback URL looks like this: http://www.mydomain.com/callback?event_token=g3mfiw&revenue_amount=0.05 ``` -```c# {14-20} +```cs {14-20} using AdjustSdk; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; @@ -314,7 +314,7 @@ namespace AdjustWSExample ## Add partner parameters -```c# title="Method signature" +```cs title="Method signature" public void AddPartnerParameter(string key, string value); ``` @@ -330,7 +330,7 @@ Partner parameters don't appear in raw data by default. You can add the `{partne Add partner parameters to your event by calling the `addPartnerParameter` method with **string** key-value arguments. You can add multiple parameters by calling this method multiple times. -```c# {3,4} +```cs {3,4} var adjustEvent = new AdjustEvent("abc123"); adjustEvent.AddPartnerParameter("key", "value"); @@ -346,7 +346,7 @@ This example shows how to record an event with the token `g3mfiw` whenever a use - The `product_id` of the associated product - The `user_id` of the user who triggered the event -```c# {14-20} +```cs {14-20} using AdjustSdk; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; @@ -389,7 +389,7 @@ namespace AdjustWSExample ## Add a callback identifier -```c# title="Property declaration" +```cs title="Property declaration" public string CallbackId { get; set; } ``` @@ -397,7 +397,7 @@ You can add a custom string identifier to each event you want to measure. Adjust Set up this identifier by assigning your identifier to the `CallbackId` property on your event object. -```c# {3} +```cs {3} var adjustEvent = new AdjustEvent("abc123"); adjustEvent.CallbackId = "Your-Custom-Id"; @@ -409,7 +409,7 @@ Adjust.TrackEvent(adjustEvent); This example shows how to record an event with the token `g3mfiw` whenever a user interacts with a button. In this example, the `callbackId` is set to `f2e728d8-271b-49ab-80ea-27830a215147`. -```c# {14-19} +```cs {14-19} using AdjustSdk; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; diff --git a/src/content/docs/sdk/windows/features/preinstalled.mdx b/src/content/docs/sdk/windows/features/preinstalled.mdx index f9c134ba2..5052ef27f 100644 --- a/src/content/docs/sdk/windows/features/preinstalled.mdx +++ b/src/content/docs/sdk/windows/features/preinstalled.mdx @@ -18,7 +18,7 @@ Configuring a default link token enables you to attribute all preinstalls to a p 2. Copy this token and assign it to the [`defaultTracker` property](/en/sdk/flutter/configuration#set-default-link-token) of your config object. - ```c# {3} + ```cs {3} var config = new AdjustConfig(appToken, environment, msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); config.DefaultTracker = "{TrackerToken}"; diff --git a/src/content/docs/sdk/windows/features/privacy.mdx b/src/content/docs/sdk/windows/features/privacy.mdx index 6064f446b..d5d91b9d1 100644 --- a/src/content/docs/sdk/windows/features/privacy.mdx +++ b/src/content/docs/sdk/windows/features/privacy.mdx @@ -8,7 +8,7 @@ The Adjust SDK contains features that you can use to handle user privacy in your ## Send right to be forgotten request -```c# title="Method signature" +```cs title="Method signature" public static void GdprForgetMe(); ``` @@ -16,6 +16,6 @@ Article 17 of the European Union's General Data Protection Regulation (GDPR) gra You can send the user's RTBF request to Adjust by calling the `GdprForgetMe` method. -```c# +```cs Adjust.GdprForgetMe(); ``` diff --git a/src/content/docs/sdk/windows/features/session-parameters.mdx b/src/content/docs/sdk/windows/features/session-parameters.mdx index 86fe8dd05..6495a74be 100644 --- a/src/content/docs/sdk/windows/features/session-parameters.mdx +++ b/src/content/docs/sdk/windows/features/session-parameters.mdx @@ -18,37 +18,37 @@ You can configure callback parameters to your servers. Once you configure parame ### Add session callback parameters -```c# title="Method signature" +```cs title="Method signature" public static void AddSessionCallbackParameter(string key, string value); ``` Add callback parameters to your event by calling the `AddSessionCallbackParameter` method with **string** key-value arguments. You can add multiple parameters by calling this method multiple times. -```c# +```cs Adjust.AddSessionCallbackParameter("key", "value"); ``` ### Remove session callback parameters -```c# title="Method signature" +```cs title="Method signature" public static void RemoveSessionCallbackParameter(string key); ``` You can remove specific session callback parameters if they're no longer required. To do this, pass the parameter `key` to the `RemoveSessionCallbackParameter` method. -```c# +```cs Adjust.RemoveSessionCallbackParameter("key"); ``` ### Reset session callback parameters -```c# title="Method signature" +```cs title="Method signature" public static void ResetSessionCallbackParameters(); ``` You can remove all session parameters if they're no longer required. To do this, call the `ResetSessionCallbackParameters` method. -```c# +```cs Adjust.ResetSessionCallbackParameters(); ``` @@ -66,37 +66,37 @@ Partner parameters don't appear in raw data by default. You can add the `{partne ### Add session partner parameters -```c# title="Method signature" +```cs title="Method signature" public static void AddSessionPartnerParameter(string key, string value); ``` Send partner parameters with your session by calling the `AddSessionPartnerParameter` method with **string** key-value arguments. You can add multiple parameters by calling this method multiple times. -```c# +```cs Adjust.AddSessionPartnerParameter("key", "value"); ``` ### Remove session partner parameters -```c# title="Method signature" +```cs title="Method signature" public static void RemoveSessionPartnerParameter(string key); ``` You can remove specific session partner parameters if they're no longer required. To do this, pass the parameter key to the `RemoveSessionPartnerParameter` method. -```c# +```cs Adjust.RemoveSessionPartnerParameter("key"); ``` ### Reset session partner parameters -```c# title="Method signature" +```cs title="Method signature" public static void ResetSessionPartnerParameters(); ``` You can remove all session partner parameters if they're no longer required. To do this, call the `ResetSessionPartnerParameters` method. -```c# +```cs Adjust.ResetSessionPartnerParameters(); ``` @@ -110,12 +110,12 @@ You can delay the startup of the SDK by up to **10 seconds**. The Adjust SDK starts as soon as your app opens. If you want to send data that's not available at launch in session parameters, you can delay the start of the SDK. To do this, assign a delay time in seconds to the [`DelayStart` property](/en/sdk/flutter/configuration#delay-the-start-of-the-sdk) on your config object. -```c# +```cs adjustConfig.DelayStart = TimeSpan.FromSeconds(5.5); ``` After this time has elapsed, the SDK sends the information to Adjust's servers. You can send the information before the timeout by calling the `SendFirstPackages` method. -```c# +```cs Adjust.SendFirstPackages() ``` diff --git a/src/content/docs/sdk/windows/index.mdx b/src/content/docs/sdk/windows/index.mdx index a455e43b4..8f899a9af 100644 --- a/src/content/docs/sdk/windows/index.mdx +++ b/src/content/docs/sdk/windows/index.mdx @@ -43,7 +43,7 @@ Once you've added the Adjust SDK to your Visual Studio project, you need to inte 2. Open the `App.xaml.cs` file. 3. Add the following directive to the top of the file: -```c# title="App.xaml.cs" +```cs title="App.xaml.cs" using AdjustSdk; ``` @@ -59,7 +59,7 @@ To initialize the Adjust SDK with this config object: 1. Declare your config object in the `OnLaunched` method of your app. 2. Pass the config object as an argument to the `Adjust.ApplicationLaunching` method. -```c# +```cs using AdjustSdk; sealed partial class App : Application