diff --git a/src/code-snippets/windows/examples/Adjust/AddSessionCallbackParameter.mdx b/src/code-snippets/windows/examples/Adjust/AddSessionCallbackParameter.mdx deleted file mode 100644 index b6b0809a8..000000000 --- a/src/code-snippets/windows/examples/Adjust/AddSessionCallbackParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.AddSessionCallbackParameter("key", "value"); -``` diff --git a/src/code-snippets/windows/examples/Adjust/AddSessionPartnerParameter.mdx b/src/code-snippets/windows/examples/Adjust/AddSessionPartnerParameter.mdx deleted file mode 100644 index c83810a96..000000000 --- a/src/code-snippets/windows/examples/Adjust/AddSessionPartnerParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.AddSessionPartnerParameter("key", "value"); -``` diff --git a/src/code-snippets/windows/examples/Adjust/GdprForgetMe.mdx b/src/code-snippets/windows/examples/Adjust/GdprForgetMe.mdx deleted file mode 100644 index c86861cc3..000000000 --- a/src/code-snippets/windows/examples/Adjust/GdprForgetMe.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.GdprForgetMe(); -``` diff --git a/src/code-snippets/windows/examples/Adjust/GetAdid.mdx b/src/code-snippets/windows/examples/Adjust/GetAdid.mdx deleted file mode 100644 index c7c73c035..000000000 --- a/src/code-snippets/windows/examples/Adjust/GetAdid.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -string adid = Adjust.GetAdid(); -``` diff --git a/src/code-snippets/windows/examples/Adjust/GetAttribution.mdx b/src/code-snippets/windows/examples/Adjust/GetAttribution.mdx deleted file mode 100644 index 53b7fc765..000000000 --- a/src/code-snippets/windows/examples/Adjust/GetAttribution.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -AdjustAttribution attribution = Adjust.GetAttribution(); -``` diff --git a/src/code-snippets/windows/examples/Adjust/GetWindowsAdId.mdx b/src/code-snippets/windows/examples/Adjust/GetWindowsAdId.mdx deleted file mode 100644 index 4168481ec..000000000 --- a/src/code-snippets/windows/examples/Adjust/GetWindowsAdId.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -var windowsAdid = Adjust.GetWindowsAdId(); -``` diff --git a/src/code-snippets/windows/examples/Adjust/IsEnabled.mdx b/src/code-snippets/windows/examples/Adjust/IsEnabled.mdx deleted file mode 100644 index 47d940e96..000000000 --- a/src/code-snippets/windows/examples/Adjust/IsEnabled.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.IsEnabled(); -``` diff --git a/src/code-snippets/windows/examples/Adjust/RemoveSessionCallbackParameter.mdx b/src/code-snippets/windows/examples/Adjust/RemoveSessionCallbackParameter.mdx deleted file mode 100644 index 287c11948..000000000 --- a/src/code-snippets/windows/examples/Adjust/RemoveSessionCallbackParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.RemoveSessionCallbackParameter("key"); -``` diff --git a/src/code-snippets/windows/examples/Adjust/RemoveSessionPartnerParameter.mdx b/src/code-snippets/windows/examples/Adjust/RemoveSessionPartnerParameter.mdx deleted file mode 100644 index 7993bc4ea..000000000 --- a/src/code-snippets/windows/examples/Adjust/RemoveSessionPartnerParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.RemoveSessionPartnerParameter("key"); -``` diff --git a/src/code-snippets/windows/examples/Adjust/ResetSessionCallbackParameters.mdx b/src/code-snippets/windows/examples/Adjust/ResetSessionCallbackParameters.mdx deleted file mode 100644 index 08911fa94..000000000 --- a/src/code-snippets/windows/examples/Adjust/ResetSessionCallbackParameters.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.ResetSessionCallbackParameters(); -``` diff --git a/src/code-snippets/windows/examples/Adjust/ResetSessionPartnerParameters.mdx b/src/code-snippets/windows/examples/Adjust/ResetSessionPartnerParameters.mdx deleted file mode 100644 index 53ec8e071..000000000 --- a/src/code-snippets/windows/examples/Adjust/ResetSessionPartnerParameters.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.ResetSessionPartnerParameters(); -``` diff --git a/src/code-snippets/windows/examples/Adjust/SendFirstPackages.mdx b/src/code-snippets/windows/examples/Adjust/SendFirstPackages.mdx deleted file mode 100644 index e124cd037..000000000 --- a/src/code-snippets/windows/examples/Adjust/SendFirstPackages.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.SendFirstPackages() -``` diff --git a/src/code-snippets/windows/examples/Adjust/SetEnabled.mdx b/src/code-snippets/windows/examples/Adjust/SetEnabled.mdx deleted file mode 100644 index 298f4a93a..000000000 --- a/src/code-snippets/windows/examples/Adjust/SetEnabled.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.SetEnabled(false); -``` diff --git a/src/code-snippets/windows/examples/Adjust/SetOfflineMode.mdx b/src/code-snippets/windows/examples/Adjust/SetOfflineMode.mdx deleted file mode 100644 index 31052062e..000000000 --- a/src/code-snippets/windows/examples/Adjust/SetOfflineMode.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.SetOfflineMode(true); -``` diff --git a/src/code-snippets/windows/examples/Adjust/SetPushToken.mdx b/src/code-snippets/windows/examples/Adjust/SetPushToken.mdx deleted file mode 100644 index 4c5f086f1..000000000 --- a/src/code-snippets/windows/examples/Adjust/SetPushToken.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -Adjust.SetPushToken("{YourDeviceToken}"); -``` diff --git a/src/code-snippets/windows/examples/Adjust/TrackEvent.mdx b/src/code-snippets/windows/examples/Adjust/TrackEvent.mdx deleted file mode 100644 index 6767b00fc..000000000 --- a/src/code-snippets/windows/examples/Adjust/TrackEvent.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void TrackEvent(AdjustEvent adjustEvent) -``` diff --git a/src/code-snippets/windows/examples/AdjustConfig/AttributionChanged.mdx b/src/code-snippets/windows/examples/AdjustConfig/AttributionChanged.mdx deleted file mode 100644 index 638abf4d3..000000000 --- a/src/code-snippets/windows/examples/AdjustConfig/AttributionChanged.mdx +++ /dev/null @@ -1,19 +0,0 @@ -```c# -var config = new AdjustConfig(appToken, environment); - -config.AttributionChanged = (attribution) => - System.Diagnostics.Debug.WriteLine("attribution: " + attribution); - -Adjust.ApplicationLaunching(config); -``` - -```c# -var config = new AdjustConfig(appToken, environment); -config.AttributionChanged = AdjustAttributionChanged; -Adjust.ApplicationLaunching(config); - -private void AdjustAttributionChanged(AdjustAttribution attribution) -{ - //... -} -``` diff --git a/src/code-snippets/windows/examples/AdjustConfig/DeeplinkResponse.mdx b/src/code-snippets/windows/examples/AdjustConfig/DeeplinkResponse.mdx deleted file mode 100644 index 77df3cbe3..000000000 --- a/src/code-snippets/windows/examples/AdjustConfig/DeeplinkResponse.mdx +++ /dev/null @@ -1,19 +0,0 @@ -```c# -var config = new AdjustConfig(appToken, environment, - msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); - -config.DeeplinkResponse = deepLinkUri => -{ - if (ShouldAdjustSdkLaunchTheDeeplink(deepLinkUri)) - { - return true; - } - else - { - return false; - } -}; - -Adjust.ApplicationLaunching(config); -// ... -``` diff --git a/src/code-snippets/windows/examples/AdjustConfig/DefaultTracker.mdx b/src/code-snippets/windows/examples/AdjustConfig/DefaultTracker.mdx deleted file mode 100644 index 4a2126ead..000000000 --- a/src/code-snippets/windows/examples/AdjustConfig/DefaultTracker.mdx +++ /dev/null @@ -1,6 +0,0 @@ -```c# -var config = new AdjustConfig(appToken, environment, - msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); -config.DefaultTracker = "{TrackerToken}"; -Adjust.ApplicationLaunching(config); -``` diff --git a/src/code-snippets/windows/examples/AdjustConfig/DelayStart.mdx b/src/code-snippets/windows/examples/AdjustConfig/DelayStart.mdx deleted file mode 100644 index 6b82fcc64..000000000 --- a/src/code-snippets/windows/examples/AdjustConfig/DelayStart.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -adjustConfig.DelayStart = TimeSpan.FromSeconds(5.5); -``` diff --git a/src/code-snippets/windows/examples/AdjustConfig/EventBufferingEnabled.mdx b/src/code-snippets/windows/examples/AdjustConfig/EventBufferingEnabled.mdx deleted file mode 100644 index 8dc511b65..000000000 --- a/src/code-snippets/windows/examples/AdjustConfig/EventBufferingEnabled.mdx +++ /dev/null @@ -1,8 +0,0 @@ -```c# -var config = new AdjustConfig(appToken, environment, - msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); - -config.EventBufferingEnabled = true; - -Adjust.ApplicationLaunching(config); -``` diff --git a/src/code-snippets/windows/examples/AdjustConfig/EventTrackingFailed.mdx b/src/code-snippets/windows/examples/AdjustConfig/EventTrackingFailed.mdx deleted file mode 100644 index 7dbaa8076..000000000 --- a/src/code-snippets/windows/examples/AdjustConfig/EventTrackingFailed.mdx +++ /dev/null @@ -1,9 +0,0 @@ -```c# -var config = new AdjustConfig(appToken, environment, - msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); -config.EventTrackingFailed = adjustEventFailure => -{ - //... -}; -Adjust.ApplicationLaunching(config); -``` diff --git a/src/code-snippets/windows/examples/AdjustConfig/EventTrackingSucceeded.mdx b/src/code-snippets/windows/examples/AdjustConfig/EventTrackingSucceeded.mdx deleted file mode 100644 index 43f49283b..000000000 --- a/src/code-snippets/windows/examples/AdjustConfig/EventTrackingSucceeded.mdx +++ /dev/null @@ -1,9 +0,0 @@ -```c# -var config = new AdjustConfig(appToken, environment, - msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); -config.EventTrackingSucceeded = adjustEventSuccess => -{ - //... -}; -Adjust.ApplicationLaunching(config); -``` diff --git a/src/code-snippets/windows/examples/AdjustConfig/SendInBackground.mdx b/src/code-snippets/windows/examples/AdjustConfig/SendInBackground.mdx deleted file mode 100644 index 841e2de68..000000000 --- a/src/code-snippets/windows/examples/AdjustConfig/SendInBackground.mdx +++ /dev/null @@ -1,8 +0,0 @@ -```c# -var config = new AdjustConfig(appToken, environment, - msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); - -config.SendInBackground = true; - -Adjust.ApplicationLaunching(config); -``` diff --git a/src/code-snippets/windows/examples/AdjustConfig/SessionTrackingFailed.mdx b/src/code-snippets/windows/examples/AdjustConfig/SessionTrackingFailed.mdx deleted file mode 100644 index 0be1dffd2..000000000 --- a/src/code-snippets/windows/examples/AdjustConfig/SessionTrackingFailed.mdx +++ /dev/null @@ -1,9 +0,0 @@ -```c# -var config = new AdjustConfig(appToken, environment, - msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); -config.SessionTrackingFailed = adjustSessionFailure => -{ - //... -}; -Adjust.ApplicationLaunching(config); -``` diff --git a/src/code-snippets/windows/examples/AdjustConfig/SessionTrackingSucceeded.mdx b/src/code-snippets/windows/examples/AdjustConfig/SessionTrackingSucceeded.mdx deleted file mode 100644 index 2313ef333..000000000 --- a/src/code-snippets/windows/examples/AdjustConfig/SessionTrackingSucceeded.mdx +++ /dev/null @@ -1,9 +0,0 @@ -```c# -var config = new AdjustConfig(appToken, environment, - msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); -config.SessionTrackingSucceeded = adjustSessionSuccess => -{ - //... -}; -Adjust.ApplicationLaunching(config); -``` diff --git a/src/code-snippets/windows/examples/AdjustConfig/constructor.mdx b/src/code-snippets/windows/examples/AdjustConfig/constructor.mdx deleted file mode 100644 index e54d0bcb7..000000000 --- a/src/code-snippets/windows/examples/AdjustConfig/constructor.mdx +++ /dev/null @@ -1,6 +0,0 @@ -```c# -string appToken = "hmqwpvspxnuo"; -string environment = AdjustConfig.EnvironmentSandbox; -var config = new AdjustConfig(appToken, environment, - msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); -``` diff --git a/src/code-snippets/windows/examples/AdjustConfig/setExternalDeviceId.mdx b/src/code-snippets/windows/examples/AdjustConfig/setExternalDeviceId.mdx deleted file mode 100644 index a80c99128..000000000 --- a/src/code-snippets/windows/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/windows/examples/AdjustConfig/setLogDelegate.mdx b/src/code-snippets/windows/examples/AdjustConfig/setLogDelegate.mdx deleted file mode 100644 index e8dfb2c2f..000000000 --- a/src/code-snippets/windows/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/windows/examples/AdjustEvent/AddCallbackParameter.mdx b/src/code-snippets/windows/examples/AdjustEvent/AddCallbackParameter.mdx deleted file mode 100644 index 8a3f00579..000000000 --- a/src/code-snippets/windows/examples/AdjustEvent/AddCallbackParameter.mdx +++ /dev/null @@ -1,8 +0,0 @@ -```c# -var adjustEvent = new AdjustEvent("abc123"); - -adjustEvent.AddCallbackParameter("key", "value"); -adjustEvent.AddCallbackParameter("foo", "bar"); - -Adjust.TrackEvent(adjustEvent); -``` diff --git a/src/code-snippets/windows/examples/AdjustEvent/AddPartnerParameter.mdx b/src/code-snippets/windows/examples/AdjustEvent/AddPartnerParameter.mdx deleted file mode 100644 index ea63f6ed8..000000000 --- a/src/code-snippets/windows/examples/AdjustEvent/AddPartnerParameter.mdx +++ /dev/null @@ -1,8 +0,0 @@ -```c# -var adjustEvent = new AdjustEvent("abc123"); - -adjustEvent.AddPartnerParameter("key", "value"); -adjustEvent.AddPartnerParameter("foo", "bar"); - -Adjust.TrackEvent(adjustEvent); -``` diff --git a/src/code-snippets/windows/examples/AdjustEvent/CallbackId.mdx b/src/code-snippets/windows/examples/AdjustEvent/CallbackId.mdx deleted file mode 100644 index 4abba7bb8..000000000 --- a/src/code-snippets/windows/examples/AdjustEvent/CallbackId.mdx +++ /dev/null @@ -1,7 +0,0 @@ -```c# -var adjustEvent = new AdjustEvent("abc123"); - -adjustEvent.CallbackId = "Your-Custom-Id"; - -Adjust.TrackEvent(adjustEvent); -``` diff --git a/src/code-snippets/windows/examples/AdjustEvent/PurchaseId.mdx b/src/code-snippets/windows/examples/AdjustEvent/PurchaseId.mdx deleted file mode 100644 index c8e86d06e..000000000 --- a/src/code-snippets/windows/examples/AdjustEvent/PurchaseId.mdx +++ /dev/null @@ -1,8 +0,0 @@ -```c# -AdjustEvent event = new AdjustEvent("abc123"); - -event.SetRevenue(0.01, "EUR"); -event.PurchaseId = "{PurchaseId}"; - -Adjust.trackEvent(event); -``` diff --git a/src/code-snippets/windows/examples/AdjustEvent/SetRevenue.mdx b/src/code-snippets/windows/examples/AdjustEvent/SetRevenue.mdx deleted file mode 100644 index 070ab6d4e..000000000 --- a/src/code-snippets/windows/examples/AdjustEvent/SetRevenue.mdx +++ /dev/null @@ -1,5 +0,0 @@ -```c# -var adjustEvent = new AdjustEvent("abc123"); -adjustEvent.SetRevenue(0.01, "EUR"); -Adjust.TrackEvent(adjustEvent); -``` diff --git a/src/code-snippets/windows/signatures/Adjust/AddSessionCallbackParameter.mdx b/src/code-snippets/windows/signatures/Adjust/AddSessionCallbackParameter.mdx deleted file mode 100644 index 08118900f..000000000 --- a/src/code-snippets/windows/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/windows/signatures/Adjust/AddSessionPartnerParameter.mdx b/src/code-snippets/windows/signatures/Adjust/AddSessionPartnerParameter.mdx deleted file mode 100644 index 3745bfb6d..000000000 --- a/src/code-snippets/windows/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/windows/signatures/Adjust/GdprForgetMe.mdx b/src/code-snippets/windows/signatures/Adjust/GdprForgetMe.mdx deleted file mode 100644 index 006ef3942..000000000 --- a/src/code-snippets/windows/signatures/Adjust/GdprForgetMe.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void GdprForgetMe() -``` diff --git a/src/code-snippets/windows/signatures/Adjust/GetAdid.mdx b/src/code-snippets/windows/signatures/Adjust/GetAdid.mdx deleted file mode 100644 index 485c22000..000000000 --- a/src/code-snippets/windows/signatures/Adjust/GetAdid.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static string GetAdid() -``` diff --git a/src/code-snippets/windows/signatures/Adjust/GetAttribution.mdx b/src/code-snippets/windows/signatures/Adjust/GetAttribution.mdx deleted file mode 100644 index 889e77c9c..000000000 --- a/src/code-snippets/windows/signatures/Adjust/GetAttribution.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static AdjustAttribution GetAttribution() -``` diff --git a/src/code-snippets/windows/signatures/Adjust/GetWindowsAdId.mdx b/src/code-snippets/windows/signatures/Adjust/GetWindowsAdId.mdx deleted file mode 100644 index 0fc82eed1..000000000 --- a/src/code-snippets/windows/signatures/Adjust/GetWindowsAdId.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static string GetWindowsAdId() -``` diff --git a/src/code-snippets/windows/signatures/Adjust/IsEnabled.mdx b/src/code-snippets/windows/signatures/Adjust/IsEnabled.mdx deleted file mode 100644 index 85cc9f40b..000000000 --- a/src/code-snippets/windows/signatures/Adjust/IsEnabled.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static bool IsEnabled() -``` diff --git a/src/code-snippets/windows/signatures/Adjust/RemoveSessionCallbackParameter.mdx b/src/code-snippets/windows/signatures/Adjust/RemoveSessionCallbackParameter.mdx deleted file mode 100644 index d50930fc0..000000000 --- a/src/code-snippets/windows/signatures/Adjust/RemoveSessionCallbackParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void RemoveSessionCallbackParameter(string key) -``` diff --git a/src/code-snippets/windows/signatures/Adjust/RemoveSessionPartnerParameter.mdx b/src/code-snippets/windows/signatures/Adjust/RemoveSessionPartnerParameter.mdx deleted file mode 100644 index 27c5b944f..000000000 --- a/src/code-snippets/windows/signatures/Adjust/RemoveSessionPartnerParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void RemoveSessionPartnerParameter(string key) -``` diff --git a/src/code-snippets/windows/signatures/Adjust/ResetSessionCallbackParameters.mdx b/src/code-snippets/windows/signatures/Adjust/ResetSessionCallbackParameters.mdx deleted file mode 100644 index aaf975290..000000000 --- a/src/code-snippets/windows/signatures/Adjust/ResetSessionCallbackParameters.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void ResetSessionCallbackParameters() -``` diff --git a/src/code-snippets/windows/signatures/Adjust/ResetSessionPartnerParameters.mdx b/src/code-snippets/windows/signatures/Adjust/ResetSessionPartnerParameters.mdx deleted file mode 100644 index 9a6ca7dd6..000000000 --- a/src/code-snippets/windows/signatures/Adjust/ResetSessionPartnerParameters.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void ResetSessionPartnerParameters() -``` diff --git a/src/code-snippets/windows/signatures/Adjust/SendFirstPackages.mdx b/src/code-snippets/windows/signatures/Adjust/SendFirstPackages.mdx deleted file mode 100644 index bc88ec45f..000000000 --- a/src/code-snippets/windows/signatures/Adjust/SendFirstPackages.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void SendFirstPackages() -``` diff --git a/src/code-snippets/windows/signatures/Adjust/SetEnabled.mdx b/src/code-snippets/windows/signatures/Adjust/SetEnabled.mdx deleted file mode 100644 index 712efa0c2..000000000 --- a/src/code-snippets/windows/signatures/Adjust/SetEnabled.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void SetEnabled(bool enabled) -``` diff --git a/src/code-snippets/windows/signatures/Adjust/SetOfflineMode.mdx b/src/code-snippets/windows/signatures/Adjust/SetOfflineMode.mdx deleted file mode 100644 index e0bd58992..000000000 --- a/src/code-snippets/windows/signatures/Adjust/SetOfflineMode.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void SetOfflineMode(bool offline) -``` diff --git a/src/code-snippets/windows/signatures/Adjust/SetPushToken.mdx b/src/code-snippets/windows/signatures/Adjust/SetPushToken.mdx deleted file mode 100644 index 57aac507d..000000000 --- a/src/code-snippets/windows/signatures/Adjust/SetPushToken.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public static void SetPushToken(string pushToken) -``` diff --git a/src/code-snippets/windows/signatures/Adjust/TrackEvent.mdx b/src/code-snippets/windows/signatures/Adjust/TrackEvent.mdx deleted file mode 100644 index 04cd3f69e..000000000 --- a/src/code-snippets/windows/signatures/Adjust/TrackEvent.mdx +++ /dev/null @@ -1,4 +0,0 @@ -```c# -var adjustEvent = new AdjustEvent("abc123"); -Adjust.TrackEvent(adjustEvent); -``` diff --git a/src/code-snippets/windows/signatures/AdjustConfig/AttributionChanged.mdx b/src/code-snippets/windows/signatures/AdjustConfig/AttributionChanged.mdx deleted file mode 100644 index d8db5d96d..000000000 --- a/src/code-snippets/windows/signatures/AdjustConfig/AttributionChanged.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public Action AttributionChanged { get; set; } -``` diff --git a/src/code-snippets/windows/signatures/AdjustConfig/DeeplinkResponse.mdx b/src/code-snippets/windows/signatures/AdjustConfig/DeeplinkResponse.mdx deleted file mode 100644 index a9ee1cb52..000000000 --- a/src/code-snippets/windows/signatures/AdjustConfig/DeeplinkResponse.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public Func DeeplinkResponse { get; set; } -``` diff --git a/src/code-snippets/windows/signatures/AdjustConfig/DefaultTracker.mdx b/src/code-snippets/windows/signatures/AdjustConfig/DefaultTracker.mdx deleted file mode 100644 index b644f02d5..000000000 --- a/src/code-snippets/windows/signatures/AdjustConfig/DefaultTracker.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public string DefaultTracker { get; set; } -``` diff --git a/src/code-snippets/windows/signatures/AdjustConfig/DelayStart.mdx b/src/code-snippets/windows/signatures/AdjustConfig/DelayStart.mdx deleted file mode 100644 index 891a1e48d..000000000 --- a/src/code-snippets/windows/signatures/AdjustConfig/DelayStart.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public TimeSpan? DelayStart { get; set; } -``` diff --git a/src/code-snippets/windows/signatures/AdjustConfig/EventBufferingEnabled.mdx b/src/code-snippets/windows/signatures/AdjustConfig/EventBufferingEnabled.mdx deleted file mode 100644 index fb2098d52..000000000 --- a/src/code-snippets/windows/signatures/AdjustConfig/EventBufferingEnabled.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public bool EventBufferingEnabled { get; set; } -``` diff --git a/src/code-snippets/windows/signatures/AdjustConfig/EventTrackingFailed.mdx b/src/code-snippets/windows/signatures/AdjustConfig/EventTrackingFailed.mdx deleted file mode 100644 index 0b5ebdf55..000000000 --- a/src/code-snippets/windows/signatures/AdjustConfig/EventTrackingFailed.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public Action EventTrackingFailed { get; set; } -``` diff --git a/src/code-snippets/windows/signatures/AdjustConfig/EventTrackingSucceeded.mdx b/src/code-snippets/windows/signatures/AdjustConfig/EventTrackingSucceeded.mdx deleted file mode 100644 index 7b5e143ae..000000000 --- a/src/code-snippets/windows/signatures/AdjustConfig/EventTrackingSucceeded.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public Action EventTrackingSucceeded { get; set; } -``` diff --git a/src/code-snippets/windows/signatures/AdjustConfig/SendInBackground.mdx b/src/code-snippets/windows/signatures/AdjustConfig/SendInBackground.mdx deleted file mode 100644 index 53e4660be..000000000 --- a/src/code-snippets/windows/signatures/AdjustConfig/SendInBackground.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public bool SendInBackground { get; set; } -``` diff --git a/src/code-snippets/windows/signatures/AdjustConfig/SessionTrackingFailed.mdx b/src/code-snippets/windows/signatures/AdjustConfig/SessionTrackingFailed.mdx deleted file mode 100644 index d8072490c..000000000 --- a/src/code-snippets/windows/signatures/AdjustConfig/SessionTrackingFailed.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public Action SessionTrackingFailed { get; set; } -``` diff --git a/src/code-snippets/windows/signatures/AdjustConfig/SessionTrackingSucceeded.mdx b/src/code-snippets/windows/signatures/AdjustConfig/SessionTrackingSucceeded.mdx deleted file mode 100644 index 5a9b4bd2c..000000000 --- a/src/code-snippets/windows/signatures/AdjustConfig/SessionTrackingSucceeded.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public Action SessionTrackingSucceeded { get; set; } -``` diff --git a/src/code-snippets/windows/signatures/AdjustConfig/constructor.mdx b/src/code-snippets/windows/signatures/AdjustConfig/constructor.mdx deleted file mode 100644 index d831636a2..000000000 --- a/src/code-snippets/windows/signatures/AdjustConfig/constructor.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public AdjustConfig(string appToken, string environment, Action logDelegate = null, LogLevel? logLevel = null) -``` diff --git a/src/code-snippets/windows/signatures/AdjustConfig/setExternalDeviceId.mdx b/src/code-snippets/windows/signatures/AdjustConfig/setExternalDeviceId.mdx deleted file mode 100644 index 41c8f3be5..000000000 --- a/src/code-snippets/windows/signatures/AdjustConfig/setExternalDeviceId.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setExternalDeviceId(string externalDeviceId) -``` diff --git a/src/code-snippets/windows/signatures/AdjustConfig/setLogDelegate.mdx b/src/code-snippets/windows/signatures/AdjustConfig/setLogDelegate.mdx deleted file mode 100644 index 658b8febf..000000000 --- a/src/code-snippets/windows/signatures/AdjustConfig/setLogDelegate.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void setLogDelegate(Action logDelegate) -``` diff --git a/src/code-snippets/windows/signatures/AdjustEvent/AddCallbackParameter.mdx b/src/code-snippets/windows/signatures/AdjustEvent/AddCallbackParameter.mdx deleted file mode 100644 index 0be52f6a8..000000000 --- a/src/code-snippets/windows/signatures/AdjustEvent/AddCallbackParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void AddCallbackParameter(string key, string value) -``` diff --git a/src/code-snippets/windows/signatures/AdjustEvent/AddPartnerParameter.mdx b/src/code-snippets/windows/signatures/AdjustEvent/AddPartnerParameter.mdx deleted file mode 100644 index d5cbe3e0a..000000000 --- a/src/code-snippets/windows/signatures/AdjustEvent/AddPartnerParameter.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void AddPartnerParameter(string key, string value) -``` diff --git a/src/code-snippets/windows/signatures/AdjustEvent/CallbackId.mdx b/src/code-snippets/windows/signatures/AdjustEvent/CallbackId.mdx deleted file mode 100644 index 59f827bb5..000000000 --- a/src/code-snippets/windows/signatures/AdjustEvent/CallbackId.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public string CallbackId { get; set; } -``` diff --git a/src/code-snippets/windows/signatures/AdjustEvent/Constructor.mdx b/src/code-snippets/windows/signatures/AdjustEvent/Constructor.mdx deleted file mode 100644 index 1cf7b656b..000000000 --- a/src/code-snippets/windows/signatures/AdjustEvent/Constructor.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public AdjustEvent(string eventToken) -``` diff --git a/src/code-snippets/windows/signatures/AdjustEvent/PurchaseId.mdx b/src/code-snippets/windows/signatures/AdjustEvent/PurchaseId.mdx deleted file mode 100644 index 2a3ab167f..000000000 --- a/src/code-snippets/windows/signatures/AdjustEvent/PurchaseId.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public string PurchaseId { get; set; } -``` diff --git a/src/code-snippets/windows/signatures/AdjustEvent/SetRevenue.mdx b/src/code-snippets/windows/signatures/AdjustEvent/SetRevenue.mdx deleted file mode 100644 index f184d18f3..000000000 --- a/src/code-snippets/windows/signatures/AdjustEvent/SetRevenue.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```c# -public void SetRevenue(double revenue, string currency) -``` diff --git a/src/content/docs/sdk/flutter/features/deep-links.mdx b/src/content/docs/sdk/flutter/features/deep-links.mdx index 12d2dc9e5..3b1722b92 100644 --- a/src/content/docs/sdk/flutter/features/deep-links.mdx +++ b/src/content/docs/sdk/flutter/features/deep-links.mdx @@ -29,8 +29,6 @@ Adjust enables you to run re-engagement campaigns with usage of deep links. For -Adjust enables you to run re-engagement campaigns with usage of deep links. For more information, see the [guide to appending attribution data to a deep link](https://help.adjust.com/en/article/deeplink-generator#manage-your-deeplinks). - To reattribute your user, you need to call the `appWillOpenUrl` method when the app receives deep link content. The Adjust SDK then looks for new attribution data within the deep link. If the SDK finds new information, it forwards the information to Adjust's servers for reattribution. diff --git a/src/content/docs/sdk/flutter/features/session-parameters.mdx b/src/content/docs/sdk/flutter/features/session-parameters.mdx index 850ad760e..bcce221eb 100644 --- a/src/content/docs/sdk/flutter/features/session-parameters.mdx +++ b/src/content/docs/sdk/flutter/features/session-parameters.mdx @@ -108,7 +108,7 @@ 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](/en/sdk/flutter/configuration#delay-the-start-of-the-sdk) 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, assign a delay time in seconds to the [`delayStart` property](/en/sdk/flutter/configuration#delay-the-start-of-the-sdk) on your config object. ```dart {3} AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox); diff --git a/src/content/docs/sdk/windows/configuration.mdx b/src/content/docs/sdk/windows/configuration.mdx new file mode 100644 index 000000000..bb1483cc1 --- /dev/null +++ b/src/content/docs/sdk/windows/configuration.mdx @@ -0,0 +1,247 @@ +--- +title: Configuration +description: Follow the guides in this section to configure the Adjust SDK. +category-title: Configuration +slug: en/sdk/windows/configuration +sidebar-position: 1 +--- + +Use the methods in this document to configure the behavior of the Adjust SDK. + +## Instantiate your config object + +```c# title="Method signature" +public AdjustConfig(string appToken, string environment, Action logDelegate = null, LogLevel? logLevel = null) +``` + +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` (**String**): The environment you want to run the SDK in. Pass `AdjustConfig.EnvironmentSandbox` to run the SDK in sandbox mode for testing. Pass `AdjustConfig.EnvironmentProduction` to run the SDK in production mode for release. +- `logDelegate` (**Action**): A function to which logging is delegated. You can also configure this using the [`setLogDelegate` method](#configure-a-log-delegate). +- `logLevel` (**LogLevel**): The level of logging you want to record. The following log levels are supported: + + + +| Log level | Description | +| ------------------- | --------------------------------------------- | +| `LogLevel.Verbose` | Enable all logging | +| `LogLevel.Debug` | Enable debug logging | +| `LogLevel.Info` | Only show info level logging (default option) | +| `LogLevel.Warn` | Disable informational warnings | +| `LogLevel.Error` | Disable warning level logging and below | +| `LogLevel.Assert` | Disable error level logging and below | +| `LogLevel.Suppress` | Suppress all logging | + +
+ +```c# +string appToken = "hmqwpvspxnuo"; +string environment = AdjustConfig.EnvironmentSandbox; +var adjustConfig = new AdjustConfig(appToken, environment, + msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); +Adjust.ApplicationLaunching(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.ApplicationLaunching()`. + +### Configure a log delegate + +```c# 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} +AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); +//... +adjustConfig.setLogDelegate(msg => Debug.Log(msg)); +//... +Adjust.ApplicationLaunching(config); +``` + +### Set external device identifier + +```c# 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. + + + +```c# {3} +AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox, true); +//... +adjustConfig.setExternalDeviceId("{Your-External-Device-Id}"); +//... +Adjust.ApplicationLaunching(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/android/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 + +```c# 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} +var adjustConfig = new AdjustConfig(appToken, environment, + msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); +adjustConfig.DefaultTracker = "{TrackerToken}"; +Adjust.ApplicationLaunching(adjustConfig); +``` + +### Enable background recording + +```c# 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} +var adjustConfig = new AdjustConfig(appToken, environment, + msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); +//... +adjustConfig.SendInBackground = true; +//... +Adjust.ApplicationLaunching(adjustConfig); +``` + +### Enable event buffering + +```c# title="Property declaration" +public bool EventBufferingEnabled { get; set; } +``` + +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. To enable event buffering, assign a **Boolean** value to the `EventBufferingEnabled` property of your config instance. + +- `EventBufferingEnabled` (**Boolean**): Set to `true` to enable event buffering or `false` to disable event buffering. + +```c# {4} +var adjustConfig = new AdjustConfig(appToken, environment, + msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); +//... +adjustConfig.EventBufferingEnabled = true; +//... +Adjust.ApplicationLaunching(adjustConfig); +``` + +### Delay the start of the SDK + +```c# title="Property declaration" +public TimeSpan? DelayStart { get; set; } +``` + +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/flutter/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, assign a **TimeSpan** value to the `DelayStart` property of your config instance. + +- `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# +adjustConfig.DelayStart = TimeSpan.FromSeconds(5.5); +``` + +## 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 + +```c# title="Method signature" +public void SetOfflineMode(bool offline); +``` + + + +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: + +- `offline` (Boolean): Set to `true` to enable offline mode or `false` to disable offline mode. + +```c# +Adjust.SetOfflineMode(true); +``` + +### Set push tokens + +```c# title="Method signature" +public static void SetPushToken(string pushToken); +``` + +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 `setPushToken` method and passing the following arguments: + +- `pushToken` (String): Your push token. + + + +If you have access to the push token from the web view, you can call the `setPushToken` method in Javascript. + + + +```c# +Adjust.SetPushToken("{YourDeviceToken}"); +``` + +### Disable or enable the SDK + + + +You can only call this method after the first session. This setting persists between sessions. + + + +```c# 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. + +```c# +Adjust.SetEnabled(false); +``` + +#### Check enabled status + +```c# 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# +Adjust.IsEnabled(); +``` diff --git a/src/content/docs/sdk/windows/configuration/background.mdx b/src/content/docs/sdk/windows/configuration/background.mdx deleted file mode 100644 index 4412d55a5..000000000 --- a/src/content/docs/sdk/windows/configuration/background.mdx +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: Record activity in the background -description: Configure the SDK to send requests in the background. -slug: en/sdk/windows/configuration/background ---- - -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. - -import SendInBackgroundSig from "@windows-signatures/AdjustConfig/SendInBackground.mdx"; - -Your config object contains a boolean `SendInBackground` property that controls this behavior. When set to `true`, the SDK sends data to Adjust while the app is running in the background. - - - -You must set the `SendInBackground` property _before_ you initialize the Adjust SDK. - - - -import SendInBackground from "@windows-examples/AdjustConfig/SendInBackground.mdx"; - - diff --git a/src/content/docs/sdk/windows/configuration/delay.mdx b/src/content/docs/sdk/windows/configuration/delay.mdx deleted file mode 100644 index dd0c26119..000000000 --- a/src/content/docs/sdk/windows/configuration/delay.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: Delay recording -description: Configure the SDK to delay the sending of information to Adjust's servers. -slug: en/sdk/windows/configuration/delay ---- - - - -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. - -import SetOfflineModeSig from "@windows-signatures/Adjust/SetOfflineMode.mdx"; - -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. - -import SetOfflineMode from "@windows-examples/Adjust/SetOfflineMode.mdx"; - - - -## 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. - -import EventBufferingEnabledSig from "@windows-signatures/AdjustConfig/EventBufferingEnabled.mdx"; - -Your config object contains a boolean `EventBufferingEnabled` property that controls this behavior. Set this property to `true` to enable event buffering. - -import EventBufferingEnabled from "@windows-examples/AdjustConfig/EventBufferingEnabled.mdx"; - - diff --git a/src/content/docs/sdk/windows/configuration/disable.mdx b/src/content/docs/sdk/windows/configuration/disable.mdx deleted file mode 100644 index 9337ead5e..000000000 --- a/src/content/docs/sdk/windows/configuration/disable.mdx +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: Disable the Adjust SDK -description: Disable the Adjust SDK to pause recording. -slug: en/sdk/windows/configuration/disable ---- - -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. - -import SetEnabledSig from "@windows-signatures/Adjust/SetEnabled.mdx"; - -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. - - - -import SetEnabled from "@windows-examples/Adjust/SetEnabled.mdx"; - - - -## Check enabled status - -import IsEnabledSig from "@windows-signatures/Adjust/IsEnabled.mdx"; - -You can check if the Adjust SDK is enabled at any time by calling the `IsEnabled` method. This method returns a boolean value. - -import IsEnabled from "@windows-examples/Adjust/IsEnabled.mdx"; - - diff --git a/src/content/docs/sdk/windows/configuration/index.mdx b/src/content/docs/sdk/windows/configuration/index.mdx deleted file mode 100644 index 07201ad08..000000000 --- a/src/content/docs/sdk/windows/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/windows/configuration -type: category ---- - -Follow the guides in this section to configure the Adjust SDK. diff --git a/src/content/docs/sdk/windows/configuration/log-level.mdx b/src/content/docs/sdk/windows/configuration/log-level.mdx deleted file mode 100644 index 72ec2e13d..000000000 --- a/src/content/docs/sdk/windows/configuration/log-level.mdx +++ /dev/null @@ -1,28 +0,0 @@ ---- -title: Set log level -description: Configure the Adjust SDK's logging verbosity. -slug: en/sdk/windows/configuration/log-level ---- - -import SetLogLevel from "@windows-examples/AdjustConfig/constructor.mdx"; -import SetLogLevelSig from "@windows-signatures/AdjustConfig/constructor.mdx"; - -The Adjust SDK provides configurable log levels to return different amounts of information. The following log levels are available: - - - -| ADJLogLevel | Description | -| ------------------- | ------------------------------------------ | -| `LogLevel.Verbose` | Enable all logging | -| `LogLevel.Debug` | Enable debug logging | -| `LogLevel.Info` | Only show info level logs (default option) | -| `LogLevel.Warn` | Disable info logging | -| `LogLevel.Error` | Disable warning level logging and below | -| `LogLevel.Assert` | Disable error level logging and below | -| `LogLevel.Suppress` | Suppress all logging | - -
- -You can set your log level by setting the `logLevel` property as the fourth positional argument of the `AdjustConfig` constructor. - - diff --git a/src/content/docs/sdk/windows/configuration/preinstalled.mdx b/src/content/docs/sdk/windows/configuration/preinstalled.mdx deleted file mode 100644 index 489b5bb94..000000000 --- a/src/content/docs/sdk/windows/configuration/preinstalled.mdx +++ /dev/null @@ -1,28 +0,0 @@ ---- -title: Send preinstalled app activity -description: Configure a campaign to send information from preinstalled apps. -slug: en/sdk/windows/configuration/preinstalled ---- - -import DefaultTracker from "@windows-examples/AdjustConfig/DefaultTracker.mdx"; -import DefaultTrackerSig from "@windows-signatures/AdjustConfig/DefaultTracker.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. - -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: - -1. Create a new link in Campaign Lab. - -```http "{token}" -https://app.adjust.com/{token} -``` - -2. Copy this token and pass it to the `DefaultTracker` method in your app delegate file. - - - -3. Build and run your app. If you have logging enabled, you should see a message in your log - -```text -Default tracker: 'abc123'. -``` diff --git a/src/content/docs/sdk/windows/configuration/privacy.mdx b/src/content/docs/sdk/windows/configuration/privacy.mdx deleted file mode 100644 index b960176d5..000000000 --- a/src/content/docs/sdk/windows/configuration/privacy.mdx +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: Set up privacy features -description: Configure features that you can use to handle user privacy in your app. -slug: en/sdk/windows/configuration/privacy ---- - -import GdprForgetMe from "@windows-examples/Adjust/GdprForgetMe.mdx"; -import GdprForgetMeSig from "@windows-signatures/Adjust/GdprForgetMe.mdx"; - -The Adjust SDK contains features that you can use to handle user privacy in your app. - -## GDPR right to be forgotten - -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. - -You can send the user's RTBF request to Adjust by calling the `GdprForgetMe` method. - - diff --git a/src/content/docs/sdk/windows/configuration/push-tokens.mdx b/src/content/docs/sdk/windows/configuration/push-tokens.mdx deleted file mode 100644 index a592cac24..000000000 --- a/src/content/docs/sdk/windows/configuration/push-tokens.mdx +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: Set up push tokens -description: Configure push tokens for your app. -slug: en/sdk/windows/configuration/push-tokens ---- - -import SetPushToken from "@windows-examples/Adjust/SetPushToken.mdx"; -import SetPushTokenSig from "@windows-signatures/Adjust/SetPushToken.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 measurement](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 `SetPushToken` method and passing your token as an argument. - - - -This example shows how to set a new push token with the value `HrFmrcq96tj723aWFfrw` to record your app's retention rates. You can update this value at any time by passing a new token to the `SetPushToken` method as an argument: - -```c# -Adjust.SetPushToken("HrFmrcq96tj723aWFfrw"); -``` diff --git a/src/content/docs/sdk/windows/features/attribution.mdx b/src/content/docs/sdk/windows/features/attribution.mdx index 356893066..929ccf941 100644 --- a/src/content/docs/sdk/windows/features/attribution.mdx +++ b/src/content/docs/sdk/windows/features/attribution.mdx @@ -4,11 +4,34 @@ description: Listen for attribution changes using the Adjust SDK slug: en/sdk/windows/features/attribution --- -import Attribution from "@windows-examples/Adjust/GetAttribution.mdx"; -import AttributionSig from "@windows-signatures/Adjust/GetAttribution.mdx"; -import AttributionChanged from "@windows-examples/AdjustConfig/AttributionChanged.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 or a [deep link](https://help.adjust.com/en/article/deep-links), their attribution information updates. The SDK can listen for attribution changes and call a function when it detects an update. +## AdjustAttribution class properties + +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. + + + +| 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 | + +
+ +## Trigger a function when attribution changes + +```c# title="Property declaration" +public Action AttributionChanged { get; set; } +``` + +The SDK can listen for attribution changes and call a function when it detects an update. To configure your callback function, assign your function to the `AttributionChanged` property on your config instance. You can pass the name of a function or write the function inline. @@ -16,14 +39,47 @@ You must call the `AttributionChanged` method **before** initializing the Adjust - + + + +```c# {3,4} +var config = new AdjustConfig(appToken, environment); -Within your delegate function, you have access to the user's Attribution object. See the [`AdjustAttribution` class reference](/en/sdk/windows/reference/adjustattribution) for a list of available parameters. +config.AttributionChanged = (attribution) => + System.Diagnostics.Debug.WriteLine("attribution: " + attribution); + +Adjust.ApplicationLaunching(config); +``` + + + + +```c# "AdjustAttributionChanged" +var config = new AdjustConfig(appToken, environment); +config.AttributionChanged = AdjustAttributionChanged; +Adjust.ApplicationLaunching(config); + +private void AdjustAttributionChanged(AdjustAttribution attribution) +{ + //... +} +``` + + + ## Get current attribution information -(Available from v4.12.0 and later.) 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. +```c# title="Method signature" +public static AdjustAttribution GetAttribution(); +``` + + + +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. -This method returns an Attribution object. See the [`AdjustAttribution` class reference](/en/sdk/windows/reference/adjustattribution) for a list of available properties. + - +```c# +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 b9be05cca..72d9d7543 100644 --- a/src/content/docs/sdk/windows/features/callbacks.mdx +++ b/src/content/docs/sdk/windows/features/callbacks.mdx @@ -32,17 +32,27 @@ Session callbacks have access to a response data object. You can use its propert ### Success callbacks -Set up success callbacks to trigger functions when the SDK records a session. +```c# title="Property declaration" +public Action SessionTrackingSucceeded { get; set; } +``` -import SessionTrackingSucceeded from "@windows-examples/AdjustConfig/SessionTrackingSucceeded.mdx"; +Set up success callbacks to trigger functions when the SDK records a session. - +```c# {3-6} +var config = new AdjustConfig(appToken, environment, + msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); +config.SessionTrackingSucceeded = adjustSessionSuccess => +{ + //... +}; +Adjust.ApplicationLaunching(config); +``` #### Example This example shows how to log the timestamp at which the SDK recorded the session. -```c# +```c# {3-6} var config = new AdjustConfig(appToken, environment, msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); config.SessionTrackingSucceeded = adjustSessionSuccess => @@ -54,17 +64,27 @@ Adjust.ApplicationLaunching(config); ### Failure callbacks -Set up failure callbacks to trigger functions when the SDK fails to record a session. +```c# title="Property declaration" +public Action SessionTrackingFailed { get; set; } +``` -import SessionTrackingFailed from "@windows-examples/AdjustConfig/SessionTrackingFailed.mdx"; +Set up failure callbacks to trigger functions when the SDK fails to record a session. - +```c# {3-6} +var config = new AdjustConfig(appToken, environment, + msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); +config.EventTrackingFailed = adjustEventFailure => +{ + //... +}; +Adjust.ApplicationLaunching(config); +``` #### Example This example shows how to log the session failure message. -```c# +```c# {3-6} var config = new AdjustConfig(appToken, environment, msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); config.SessionTrackingFailed = adjustSessionFailure => @@ -96,17 +116,27 @@ Event callbacks have access to a response data object. You can use its propertie ### Success callbacks -Set up success callbacks to trigger functions when the SDK records an event. +```c# title="Property declaration" +public Action EventTrackingSucceeded { get; set; } +``` -import EventTrackingSucceeded from "@windows-examples/AdjustConfig/EventTrackingSucceeded.mdx"; +Set up success callbacks to trigger functions when the SDK records an event. - +```c# {3-6} +var config = new AdjustConfig(appToken, environment, + msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); +config.EventTrackingSucceeded = adjustEventSuccess => +{ + //... +}; +Adjust.ApplicationLaunching(config); +``` #### Example This example shows how to log the timestamp at which the SDK recorded an event. -```c# +```c# {3-6} var config = new AdjustConfig(appToken, environment, msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); config.EventTrackingSucceeded = adjustEventSuccess => @@ -118,17 +148,27 @@ Adjust.ApplicationLaunching(config); ### Failure callbacks -Set up failure callbacks to trigger functions when the SDK fails to record an event. +```c# title="Property declaration" +public Action EventTrackingFailed { get; set; } +``` -import EventTrackingFailed from "@windows-examples/AdjustConfig/EventTrackingFailed.mdx"; +Set up failure callbacks to trigger functions when the SDK fails to record an event. - +```c# {3-6} +var config = new AdjustConfig(appToken, environment, + msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); +config.EventTrackingFailed = adjustEventFailure => +{ + //... +}; +Adjust.ApplicationLaunching(config); +``` #### Example This example shows how to log an event failure message. -```c# +```c# {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/configuration/deep-links.mdx b/src/content/docs/sdk/windows/features/deep-links.mdx similarity index 76% rename from src/content/docs/sdk/windows/configuration/deep-links.mdx rename to src/content/docs/sdk/windows/features/deep-links.mdx index d1b338aec..8955f7ca4 100644 --- a/src/content/docs/sdk/windows/configuration/deep-links.mdx +++ b/src/content/docs/sdk/windows/features/deep-links.mdx @@ -2,16 +2,13 @@ title: Deep linking description: Follow the guides in this section to set up deep linking. category-title: Deep linking -slug: en/sdk/windows/configuration/deep-links +slug: en/sdk/windows/features/deep-links --- -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. +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: -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. +- 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 SDK can read deep link data after a user opens your app from a link. @@ -30,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# +```c# title="App.xaml.cs" // ... protected override void OnActivated(IActivatedEventArgs args) { if (args.Kind == ActivationKind.Protocol) { @@ -56,14 +53,38 @@ Your app opens when a user interacts with a link containing your **unique scheme ## Deferred deep linking +```c# 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. -import DeeplinkResponse from "@windows-examples/AdjustConfig/DeeplinkResponse.mdx"; +```c# {4-14} +var adjustConfig = new AdjustConfig(appToken, environment, + msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); + +adjustConfig.DeeplinkResponse = deepLinkUri => +{ + if (ShouldAdjustSdkLaunchTheDeeplink(deepLinkUri)) + { + return true; + } + else + { + return false; + } +}; - +Adjust.ApplicationLaunching(adjustConfig); +// ... +``` ## Reattribution using deep links +```cs title="Method signature" +public static void AppWillOpenUrl(Uri uri); +``` + Adjust enables you to run re-engagement campaigns with usage of deep links. For more information, see the [guide to appending attribution data to a deep link](https://help.adjust.com/en/article/manage-reattributions#track-reattributions-via-deeplink-clicks). @@ -76,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# +```c# {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 595c028d5..0efdda299 100644 --- a/src/content/docs/sdk/windows/features/device-info.mdx +++ b/src/content/docs/sdk/windows/features/device-info.mdx @@ -8,18 +8,24 @@ The Adjust SDK contains helper methods that return device information. Use these ## Adjust device identifier -import GetAdid from "@windows-examples/Adjust/GetAdid.mdx"; -import GetAdidSig from "@windows-signatures/Adjust/GetAdid.mdx"; +```c# title="Method signature" +public static string GetAdid(); +``` -Adjust generates a unique ADID (Adjust Device ID) for each device. Call the `GetAdid` method to return this ID as a **string**. +Adjust generates a unique Adjust Device ID (ADID) for each device. Call the `GetAdid` method to return this ID as a **string**. - +```c# +string adid = Adjust.GetAdid(); +``` ## Windows advertising identifier -import GetWindowsAdId from "@windows-examples/Adjust/GetWindowsAdId.mdx"; -import GetWindowsAdIdSig from "@windows-signatures/Adjust/GetWindowsAdId.mdx"; +```c# title="Method signature" +public static string GetWindowsAdId(); +``` -The Windows ADID (Advertising ID) is a device-specific identifier for Windows devices. Call the `GetWindowsAdId` method to return this ID as a **string**. +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# +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 95cb3d239..80fb55582 100644 --- a/src/content/docs/sdk/windows/features/events.mdx +++ b/src/content/docs/sdk/windows/features/events.mdx @@ -4,31 +4,46 @@ description: Use these methods send event information to Adjust. slug: en/sdk/windows/features/events --- -import TrackEvent from "@windows-examples/Adjust/TrackEvent.mdx"; -import TrackEventSig from "@windows-signatures/Adjust/TrackEvent.mdx"; -import SetRevenue from "@windows-examples/AdjustEvent/SetRevenue.mdx"; -import SetRevenueSig from "@windows-signatures/AdjustEvent/SetRevenue.mdx"; -import PurchaseId from "@windows-examples/AdjustEvent/PurchaseId.mdx"; -import PurchaseIdSig from "@windows-signatures/AdjustEvent/PurchaseId.mdx"; -import CallbackId from "@windows-examples/AdjustEvent/CallbackId.mdx"; -import CallbackIdSig from "@windows-signatures/AdjustEvent/CallbackId.mdx"; -import AddCallbackParameter from "@windows-examples/AdjustEvent/AddCallbackParameter.mdx"; -import AddCallbackParameterSig from "@windows-signatures/AdjustEvent/AddCallbackParameter.mdx"; -import AddPartnerParameter from "@windows-examples/AdjustEvent/AddPartnerParameter.mdx"; -import AddPartnerParameterSig from "@windows-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 + +```c# title="Method signature" +public AdjustEvent(string eventToken); +``` + +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). + +```c# {1} +var adjustEvent = new AdjustEvent("abc123"); +Adjust.TrackEvent(adjustEvent); +``` + +## Send an event + +```c# 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. - +```c# {2} +var 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# +```c# {14-18} using AdjustSdk; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; @@ -69,13 +84,16 @@ namespace AdjustWSExample ## Record event revenue +```c# title="Method signature" +public void SetRevenue(double revenue, 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. @@ -83,13 +101,17 @@ Check the guide to [tracking purchases in different currencies](https://help.adj - +```c# {2} +var 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# +```c# {14-19} using AdjustSdk; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; @@ -129,19 +151,30 @@ namespace AdjustWSExample ``` -## Unique events +## Set a unique purchase ID + +```c# title="Property declaration" +public string PurchaseId { get; set; } +``` You can pass an optional identifier to avoid recording duplicate events. The SDK stores the last ten identifiers and skips revenue events with duplicate purchase IDs. -To set the identifier, call the `PurchaseId` method, with the purchase ID as a **string** argument. +To set the identifier, assign your purchase ID to the `PurchaseId` property on your event object. - +```c# {4} +AdjustEvent event = new AdjustEvent("abc123"); + +event.SetRevenue(0.01, "EUR"); +event.PurchaseId = "{PurchaseId}"; + +Adjust.trackEvent(event); +``` ### 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 `PurchaseId` method. +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# +```c# {14-20} using AdjustSdk; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; @@ -184,17 +217,28 @@ namespace AdjustWSExample ## Add callback parameters -If you [register a callback URL](https://help.adjust.com/en/article/set-up-callbacks) in AppView, the SDK sends a GET request to your callback URL when it records an event. +```c# 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 in your BI system. +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. +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} +var adjustEvent = new AdjustEvent("abc123"); + +adjustEvent.AddCallbackParameter("key", "value"); +adjustEvent.AddCallbackParameter("foo", "bar"); + +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: -```http +```http "key=value" "foo=bar" https://www.mydomain.com/callback?key=value&foo=bar ``` @@ -204,7 +248,7 @@ Adjust doesn't store your custom callback parameters. Custom parameters are only -If you're using cloud storage uploads, make sure to add the parameters to your CSV definition. +If you're using CSV uploads, make sure to add the parameters to your CSV definition. Adjust supports many placeholders which you can use to pass information from the SDK to your URL. For example, the `{idfa}` placeholder for iOS and the `{gps_adid}` placeholder for Android. The `{publisher_parameter}` placeholder presents all callback parameters in a single string. @@ -227,7 +271,7 @@ The resulting callback URL looks like this: http://www.mydomain.com/callback?event_token=g3mfiw&revenue_amount=0.05 ``` -```c# +```c# {14-20} using AdjustSdk; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; @@ -270,6 +314,10 @@ namespace AdjustWSExample ## Add partner parameters +```c# 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. @@ -280,9 +328,16 @@ 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. +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} +var adjustEvent = new AdjustEvent("abc123"); - +adjustEvent.AddPartnerParameter("key", "value"); +adjustEvent.AddPartnerParameter("foo", "bar"); + +Adjust.TrackEvent(adjustEvent); +``` ### Example @@ -291,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# +```c# {14-20} using AdjustSdk; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; @@ -334,17 +389,27 @@ namespace AdjustWSExample ## Add a callback identifier +```c# title="Property declaration" +public string CallbackId { get; set; } +``` + 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 `CallbackId` method with the callback ID as a **string** argument. +Set up this identifier by assigning your identifier to the `CallbackId` property on your event object. + +```c# {3} +var adjustEvent = new AdjustEvent("abc123"); - +adjustEvent.CallbackId = "Your-Custom-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# +```c# {14-19} using AdjustSdk; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; diff --git a/src/content/docs/sdk/windows/features/index.mdx b/src/content/docs/sdk/windows/features/index.mdx index ce0f21777..336525430 100644 --- a/src/content/docs/sdk/windows/features/index.mdx +++ b/src/content/docs/sdk/windows/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/windows/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/windows/features/preinstalled.mdx b/src/content/docs/sdk/windows/features/preinstalled.mdx new file mode 100644 index 000000000..f9c134ba2 --- /dev/null +++ b/src/content/docs/sdk/windows/features/preinstalled.mdx @@ -0,0 +1,32 @@ +--- +title: Send preinstalled app activity +description: Configure a campaign to send information from preinstalled apps. +slug: en/sdk/windows/features/preinstalled +--- + +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. + +## Default link token + +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 campaign link in Campaign Lab](https://help.adjust.com/en/article/links). + + ```text "{token}" + https://app.adjust.com/{token} + ``` + +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} + var config = new AdjustConfig(appToken, environment, + msg => System.Diagnostics.Debug.WriteLine(msg), LogLevel.Verbose); + config.DefaultTracker = "{TrackerToken}"; + Adjust.ApplicationLaunching(config); + ``` + +3. Build and run your app. If you have logging enabled, you should see a message in your log + + ```text + Default tracker: 'abc123'. + ``` diff --git a/src/content/docs/sdk/windows/features/privacy.mdx b/src/content/docs/sdk/windows/features/privacy.mdx new file mode 100644 index 000000000..6064f446b --- /dev/null +++ b/src/content/docs/sdk/windows/features/privacy.mdx @@ -0,0 +1,21 @@ +--- +title: Set up privacy features +description: Configure features that you can use to handle user privacy in your app. +slug: en/sdk/windows/features/privacy +--- + +The Adjust SDK contains features that you can use to handle user privacy in your app. + +## Send right to be forgotten request + +```c# title="Method signature" +public static void GdprForgetMe(); +``` + +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. + +```c# +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 bee9bfb06..86fe8dd05 100644 --- a/src/content/docs/sdk/windows/features/session-parameters.mdx +++ b/src/content/docs/sdk/windows/features/session-parameters.mdx @@ -4,26 +4,9 @@ description: Send information to your callback URL with each session. slug: en/sdk/windows/features/session-parameters --- -import AddSessionCallbackParameter from "@windows-examples/Adjust/AddSessionCallbackParameter.mdx"; -import AddSessionCallbackParameterSig from "@windows-signatures/Adjust/AddSessionCallbackParameter.mdx"; -import RemoveSessionCallbackParameter from "@windows-examples/Adjust/RemoveSessionCallbackParameter.mdx"; -import RemoveSessionCallbackParameterSig from "@windows-signatures/Adjust/RemoveSessionCallbackParameter.mdx"; -import ResetSessionCallbackParameters from "@windows-examples/Adjust/ResetSessionCallbackParameters.mdx"; -import ResetSessionCallbackParametersSig from "@windows-signatures/Adjust/ResetSessionCallbackParameters.mdx"; -import AddSessionPartnerParameter from "@windows-examples/Adjust/AddSessionPartnerParameter.mdx"; -import AddSessionPartnerParameterSig from "@windows-signatures/Adjust/AddSessionPartnerParameter.mdx"; -import RemoveSessionPartnerParameter from "@windows-examples/Adjust/RemoveSessionPartnerParameter.mdx"; -import RemoveSessionPartnerParameterSig from "@windows-signatures/Adjust/RemoveSessionPartnerParameter.mdx"; -import ResetSessionPartnerParameters from "@windows-examples/Adjust/ResetSessionPartnerParameters.mdx"; -import ResetSessionPartnerParametersSig from "@windows-signatures/Adjust/ResetSessionPartnerParameters.mdx"; -import DelayStart from "@windows-examples/AdjustConfig/DelayStart.mdx"; -import DelayStartSig from "@windows-signatures/AdjustConfig/DelayStart.mdx"; -import SendFirstPackages from "@windows-examples/Adjust/SendFirstPackages.mdx"; -import SendFirstPackagesSig from "@windows-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 in 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 + +```c# 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# +Adjust.AddSessionCallbackParameter("key", "value"); +``` + +### Remove session callback parameters + +```c# 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. +```c# +Adjust.RemoveSessionCallbackParameter("key"); +``` - +### Reset session callback parameters -You can remove all session parameters if they're no longer required. To do this, call the `ResetSessionCallbackP parameters` method. +```c# 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# +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 + +```c# 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# +Adjust.AddSessionPartnerParameter("key", "value"); +``` - +### Remove session partner parameters + +```c# 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# +Adjust.RemoveSessionPartnerParameter("key"); +``` + +### Reset session partner parameters + +```c# 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# +Adjust.ResetSessionPartnerParameters(); +``` ## Delay start @@ -75,10 +108,14 @@ 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 `DelayStart` 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, 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# +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# +Adjust.SendFirstPackages() +``` diff --git a/src/content/docs/sdk/windows/index.mdx b/src/content/docs/sdk/windows/index.mdx index 665e2b572..a455e43b4 100644 --- a/src/content/docs/sdk/windows/index.mdx +++ b/src/content/docs/sdk/windows/index.mdx @@ -31,7 +31,7 @@ To install the Adjust SDK using the Package Manager Console: 1. Select **TOOLS --> NuGet Package Manager --> Package Manager Console** to open the Package Manager Console view. 2. Enter the following install command in the prompt and hit **Return** to run it. -```c# +```console PM> Install-Package Adjust ``` @@ -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# +```c# title="App.xaml.cs" using AdjustSdk; ``` @@ -51,9 +51,8 @@ using AdjustSdk; To initialize the Adjust SDK, you need to create a config object. This object contains configuration options that control how the Adjust SDK behaves. Pass the following arguments for a minimal setup: -`appToken`: Your app's token. - -`environment`: The environment you want to run the SDK in. Set this to `AdjustConfig.EnvironmentSandbox`. +- `appToken`: Your app's token. +- `environment`: The environment you want to run the SDK in. Set this to `AdjustConfig.EnvironmentSandbox`. To initialize the Adjust SDK with this config object: diff --git a/src/content/docs/sdk/windows/reference/adjust/config.mdx b/src/content/docs/sdk/windows/reference/adjust/config.mdx deleted file mode 100644 index 3b84e43c2..000000000 --- a/src/content/docs/sdk/windows/reference/adjust/config.mdx +++ /dev/null @@ -1,158 +0,0 @@ ---- -title: Configuration methods -description: Use these methods to update the Adjust SDK's configuration. -slug: en/sdk/windows/reference/adjust/config -sidebar-position: 1 ---- - -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 "@windows-signatures/Adjust/SetEnabled.mdx"; - - - - - - - -import SetEnabled from "@windows-examples/Adjust/SetEnabled.mdx"; - - - - - - - -`enabled` (boolean): Whether the SDK should be enabled - - - - - - - -## IsEnabled - -Call this method to check whether the Adjust SDK is enabled. - - - -import IsEnabledSig from "@windows-signatures/Adjust/IsEnabled.mdx"; - - - - - - - -import IsEnabled from "@windows-examples/Adjust/IsEnabled.mdx"; - - - - - - - -`enabled` (boolean): Whether the SDK is enabled - - - - - - - -## 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 "@windows-signatures/Adjust/SetOfflineMode.mdx"; - - - - - - - -import SetOfflineMode from "@windows-examples/Adjust/SetOfflineMode.mdx"; - - - - - - - -`enabled` (boolean): Whether the SDK should be in offline mode - - - - - - - -## SetPushToken - -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 SetPushTokenSig from "@windows-signatures/Adjust/SetPushToken.mdx"; - - - - - - - -import SetPushToken from "@windows-examples/Adjust/SetPushToken.mdx"; - - - - - - - -`pushToken` (String): Your push token - - - - - - - -## 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 "@windows-signatures/Adjust/SendFirstPackages.mdx"; - - - - - - - -import SendFirstPackages from "@windows-examples/Adjust/SendFirstPackages.mdx"; - - - - - - diff --git a/src/content/docs/sdk/windows/reference/adjust/device-info.mdx b/src/content/docs/sdk/windows/reference/adjust/device-info.mdx deleted file mode 100644 index 9c7201313..000000000 --- a/src/content/docs/sdk/windows/reference/adjust/device-info.mdx +++ /dev/null @@ -1,68 +0,0 @@ ---- -title: Device information methods -description: Use these methods to retrieve device information. -slug: en/sdk/windows/reference/adjust/device-info -sidebar-position: 2 ---- - -Use these methods to retrieve device information. - - - -## GetAdid - -Returns the ADID (Adjust Device ID) associated with the device. - - - -import AdidSig from "@windows-signatures/Adjust/GetAdid.mdx"; - - - - - - - -import Adid from "@windows-examples/Adjust/GetAdid.mdx"; - - - - - - - -`adid` (String): The Adjust identifier associated with the device - - - - - - - -## GetWindowsAdId - -Returns the Windows ADID (Advertising ID) associated with the device. - - - -import GetWindowsAdId from "@windows-signatures/Adjust/GetWindowsAdId.mdx"; - - - - - - - -import WindowsAdId from "@windows-examples/Adjust/GetWindowsAdId.mdx"; - - - - - - - -`Windows ADID` (String): The device Windows ADID - - - - diff --git a/src/content/docs/sdk/windows/reference/adjust/index.mdx b/src/content/docs/sdk/windows/reference/adjust/index.mdx deleted file mode 100644 index 686e172ad..000000000 --- a/src/content/docs/sdk/windows/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/windows/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/windows/reference/adjust/privacy.mdx b/src/content/docs/sdk/windows/reference/adjust/privacy.mdx deleted file mode 100644 index 78ad84c03..000000000 --- a/src/content/docs/sdk/windows/reference/adjust/privacy.mdx +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: Privacy methods -description: Use these methods to handle user privacy in your app. -slug: en/sdk/windows/reference/adjust/privacy -sidebar-position: 3 ---- - -Use these methods to handle user privacy in your app. - - - -## 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 "@windows-signatures/Adjust/GdprForgetMe.mdx"; - - - - - - - -import GdprForgetMe from "@windows-examples/Adjust/GdprForgetMe.mdx"; - - - - - - diff --git a/src/content/docs/sdk/windows/reference/adjust/recording.mdx b/src/content/docs/sdk/windows/reference/adjust/recording.mdx deleted file mode 100644 index 78d60b1e6..000000000 --- a/src/content/docs/sdk/windows/reference/adjust/recording.mdx +++ /dev/null @@ -1,240 +0,0 @@ ---- -title: Recording methods -description: Use these methods to send information about your app to Adjust. -slug: en/sdk/windows/reference/adjust/recording -sidebar-position: 4 ---- - -Use these methods to send information about your app to Adjust. - - - -## TrackEvent - -Record event information using an `AdjustEvent` object and an [Adjust event token](https://help.adjust.com/en/article/add-events#add-event). - - - -import TrackEventSig from "@windows-signatures/Adjust/TrackEvent.mdx"; - - - - - - - -import TrackEvent from "@windows-examples/Adjust/TrackEvent.mdx"; - - - - - - - -`event` (AdjustEvent): An event object containing the information you want to record. - - - - - - - -## 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 "@windows-signatures/Adjust/AddSessionCallbackParameter.mdx"; - - - - - - - -import AddSessionCallbackParameter from "@windows-examples/Adjust/AddSessionCallbackParameter.mdx"; - - - - - - - -`key` (String): The data key - -`value` (String): The data value - - - - - - - -## RemoveSessionCallbackParameter - -Remove a session callback parameter. - - - -import RemoveSessionCallbackParameterSig from "@windows-signatures/Adjust/RemoveSessionCallbackParameter.mdx"; - - - - - - - -import RemoveSessionCallbackParameter from "@windows-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 "@windows-signatures/Adjust/ResetSessionCallbackParameters.mdx"; - - - - - - - -import ResetSessionCallbackParameters from "@windows-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 "@windows-signatures/Adjust/AddSessionPartnerParameter.mdx"; - - - - - - - -import AddSessionPartnerParameter from "@windows-examples/Adjust/AddSessionPartnerParameter.mdx"; - - - - - - - -`key` (String): The data key - -`value` (String): The data value - - - - - - - -## RemoveSessionPartnerParameter - -Remove a session partner parameter. - - - -import RemoveSessionPartnerParameterSig from "@windows-signatures/Adjust/RemoveSessionPartnerParameter.mdx"; - - - - - - - -import RemoveSessionPartnerParameter from "@windows-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 "@windows-signatures/Adjust/ResetSessionPartnerParameters.mdx"; - - - - - - - -import ResetSessionPartnerParameters from "@windows-examples/Adjust/ResetSessionPartnerParameters.mdx"; - - - - - - - - - -## getAttribution - -Fetches attribution data about the device. - - - -import AttributionSig from "@windows-signatures/Adjust/GetAttribution.mdx"; - - - - - - - -import Attribution from "@windows-examples/Adjust/GetAttribution.mdx"; - - - - - - - -`attribution` (ADJAttribution): An attribution object containing attribution data associated with the device. - - - - diff --git a/src/content/docs/sdk/windows/reference/adjustattribution.mdx b/src/content/docs/sdk/windows/reference/adjustattribution.mdx deleted file mode 100644 index 1e22855ad..000000000 --- a/src/content/docs/sdk/windows/reference/adjustattribution.mdx +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: AdjustAttribution class -description: Use this class to see attribution information. -category-title: AdjustAttribution class -slug: en/sdk/windows/reference/adjustattribution ---- - -import GetAttribution from "@windows-signatures/Adjust/GetAttribution.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. - - - -| 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 | - -
diff --git a/src/content/docs/sdk/windows/reference/adjustconfig/index.mdx b/src/content/docs/sdk/windows/reference/adjustconfig/index.mdx deleted file mode 100644 index 8a9221e7b..000000000 --- a/src/content/docs/sdk/windows/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/windows/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. - - - - - -Instantiate the configuration object with your Adjust app token. - - - -import ConstructorSig from "@windows-signatures/AdjustConfig/constructor.mdx"; - - - - - - - -import Constructor from "@windows-examples/AdjustConfig/constructor.mdx"; - - - - - - - -`appToken` (String): Your Adjust app token. - -`environment` (String): The environment your app is running in. - -`logDelegate` (String): A function to which logging is delegated. - -`logLevel` (LogLevel): The verbosity of logging - - - - - -`config` (AdjustConfig): A config object initialized with the provided params. - - - - diff --git a/src/content/docs/sdk/windows/reference/adjustconfig/setup.mdx b/src/content/docs/sdk/windows/reference/adjustconfig/setup.mdx deleted file mode 100644 index 4b2b30ead..000000000 --- a/src/content/docs/sdk/windows/reference/adjustconfig/setup.mdx +++ /dev/null @@ -1,376 +0,0 @@ ---- -title: Setup methods -description: Configure these properties to set up the Adjust SDK. -slug: en/sdk/windows/reference/AdjustConfig/setup -sidebar-position: 1 ---- - -Configure these properties to set up the Adjust SDK. - - - -## setLogDelegate - -Set the verbosity of logs you want to receive from the Adjust SDK. - - - -import SetLogDelegateSig from "@windows-signatures/AdjustConfig/setLogDelegate.mdx"; - - - - - - - -`logDelegate` (Action): The delegate function or program that handles log output. - -`logLevel` (LogLevel): The level of logging output by the SDK. - - - - - -import SetLogDelegate from "@windows-examples/AdjustConfig/setLogDelegate.mdx"; - - - - - - - - - -## DefaultTracker - -Sets a default token to record installs against. - - - -import DefaultTrackerSig from "@windows-signatures/AdjustConfig/DefaultTracker.mdx"; - - - - - - - -import SetDefaultTracker from "@windows-examples/AdjustConfig/DefaultTracker.mdx"; - - - - - - - -`defaultTracker` (String): The token to which all preinstalled sessions are attributed. - - - - - - - -## SendInBackground - -Sets whether the SDK should send data while the app is running in the background. - - - -import SendInBackgroundSig from "@windows-signatures/AdjustConfig/SendInBackground.mdx"; - - - - - - - -import SendInBackground from "@windows-examples/AdjustConfig/SendInBackground.mdx"; - - - - - - - -`SendInBackground` (BOOL): Whether the SDK should send information to Adjust when the app is running in the background. - - - - - - - -## SessionTrackingSucceeded - -Sets up a success callback to trigger a function when the SDK records a session. - - - -import SessionTrackingSucceededSig from "@windows-signatures/AdjustConfig/SessionTrackingSucceeded.mdx"; - - - - - - - -import SessionTrackingSucceeded from "@windows-examples/AdjustConfig/SessionTrackingSucceeded.mdx"; - - - - - - - -`AdjustSessionSuccess` (Action): The function to launch when the SDK successfully records a session. - - - - - - - -## SessionTrackingFailed - -Sets up a callback to trigger a function when the SDK fails to record a session. - - - -import SessionTrackingFailedSig from "@windows-signatures/AdjustConfig/SessionTrackingFailed.mdx"; - - - - - - - -import SessionTrackingFailed from "@windows-examples/AdjustConfig/SessionTrackingFailed.mdx"; - - - - - - - -`AdjustSessionFailed` (Action): The function to launch when the SDK fails to record a session. - - - - - - - -## EventTrackingSucceeded - -Sets up a success callback to trigger a function when the SDK records an event. - - - -import EventTrackingSucceededSig from "@windows-signatures/AdjustConfig/EventTrackingSucceeded.mdx"; - - - - - - - -import EventTrackingSucceeded from "@windows-examples/AdjustConfig/EventTrackingSucceeded.mdx"; - - - - - - - -`AdjustEventSuccess` (Action): The function to launch when the SDK successfully records an event. - - - - - - - -## EventTrackingFailed - -Sets up a callback to trigger a function when the SDK fails to record an event. - - - -import EventTrackingFailedSig from "@windows-signatures/AdjustConfig/EventTrackingFailed.mdx"; - - - - - - - -import EventTrackingFailed from "@windows-examples/AdjustConfig/EventTrackingFailed.mdx"; - - - - - - - -`AdjustEventFailed` (Action): The function to launch when the SDK fails to record an event. - - - - - - - -## DelayStart - -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 DelayStartSig from "@windows-signatures/AdjustConfig/DelayStart.mdx"; - - - - - - - -import DelayStart from "@windows-examples/AdjustConfig/DelayStart.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 "@windows-signatures/AdjustConfig/setExternalDeviceId.mdx"; - - - - - - - -import SetExternalDeviceId from "@windows-examples/AdjustConfig/setExternalDeviceId.mdx"; - - - - - - - -`externalDeviceId` (String): The external device ID associated with the device. - - - - - - - -## EventBufferingEnabled - -Sets event buffering. If enabled, the SDK stores events on the device and sends all requests once per minute. - - - -import EventBufferingEnabledSig from "@windows-signatures/AdjustConfig/EventBufferingEnabled.mdx"; - - - - - - - -`EventBufferingEnabled` (BOOL): Whether event buffering is enabled. - - - - - -import EventBufferingEnabled from "@windows-examples/AdjustConfig/EventBufferingEnabled.mdx"; - - - - - - - - - -## AttributionChanged - -Sets a delegate function that fires when a user's attribution information updates. - - - -import AttributionChangedSig from "@windows-signatures/AdjustConfig/AttributionChanged.mdx"; - - - - - - - -`AdjustAttribution` (Action): The delegate function that the SDK calls when a the user's attribution information changes. - - - - - -import AttributionChanged from "@windows-examples/AdjustConfig/AttributionChanged.mdx"; - - - - - - - - - -## DeeplinkResponse - -Enables or disables launching deferred deep links with the SDK. If enabled, the SDK launches deep links the user interacts with. - - - -import DeeplinkResponseSig from "@windows-signatures/AdjustConfig/DeeplinkResponse.mdx"; - - - - - - - -`DeeplinkResponse` (Func): The function to call on receipt of a deferred deep link. - - - - - -import DeeplinkResponse from "@windows-examples/AdjustConfig/DeeplinkResponse.mdx"; - - - - - - diff --git a/src/content/docs/sdk/windows/reference/adjustevent.mdx b/src/content/docs/sdk/windows/reference/adjustevent.mdx deleted file mode 100644 index 58adae033..000000000 --- a/src/content/docs/sdk/windows/reference/adjustevent.mdx +++ /dev/null @@ -1,198 +0,0 @@ ---- -title: AdjustEvent class -description: Record information about events to send to Adjust. -category-title: AdjustEvent class -slug: en/sdk/windows/reference/adjustevent ---- - -import TrackEvent from "@windows-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 "@windows-signatures/AdjustEvent/Constructor.mdx"; - - - - - - - -`event` (AdjustEvent): An event object containing information you want to record. - -`eventToken` (String): A 6 character Adjust event token. - - - - - -import Constructor from "@windows-examples/Adjust/TrackEvent.mdx"; - - - - - - - - - -## SetRevenue - -Sets the revenue and currency associated with an event. - - - -import SetRevenueSig from "@windows-signatures/AdjustEvent/SetRevenue.mdx"; - - - - - - - -import SetRevenue from "@windows-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. - - - - - - - -## AddCallbackParameter - -Adds key-value information to send to your callback URL. - - - -import AddCallbackParameterSig from "@windows-signatures/AdjustEvent/AddCallbackParameter.mdx"; - - - - - - - -import AddCallbackParameter from "@windows-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 "@windows-signatures/AdjustEvent/AddPartnerParameter.mdx"; - - - - - - - -import AddPartnerParameter from "@windows-examples/AdjustEvent/AddPartnerParameter.mdx"; - - - - - - - -`key` (String): The data key. - -`value` (String): The data value. - - - - - - - -## PurchaseId - -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 PurchaseIdSig from "@windows-signatures/AdjustEvent/PurchaseId.mdx"; - - - - - - - -import PurchaseId from "@windows-examples/AdjustEvent/PurchaseId.mdx"; - - - - - - - -`PurchaseId` (String): A unique identifier used to deduplicate events. - - - - - - - -## CallbackId - -Sets a custom identifier for your event object. Adjust's servers can report on this identifier in event callbacks. - - - -import CallbackIdSig from "@windows-signatures/AdjustEvent/CallbackId.mdx"; - - - - - - - -import CallbackId from "@windows-examples/AdjustEvent/CallbackId.mdx"; - - - - - - - -`CallbackId` (String): A custom identifier for your event object. - - - - diff --git a/src/content/docs/sdk/windows/reference/index.mdx b/src/content/docs/sdk/windows/reference/index.mdx deleted file mode 100644 index d38e23227..000000000 --- a/src/content/docs/sdk/windows/reference/index.mdx +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: SDK reference -description: SDK reference information for the Windows SDK -category-title: Reference -slug: en/sdk/windows/reference -type: category ----