diff --git a/src/content/docs/ko/sdk/unity/v5/features/subscriptions.mdx b/src/content/docs/ko/sdk/unity/v5/features/subscriptions.mdx index dd04eeaf2..89b64bcbd 100644 --- a/src/content/docs/ko/sdk/unity/v5/features/subscriptions.mdx +++ b/src/content/docs/ko/sdk/unity/v5/features/subscriptions.mdx @@ -1,45 +1,44 @@ --- -title: Send subscription information -description: Use these methods send subscription information to Adjust. -slug: ko/sdk/unity/features/subscriptions -versions: - - label: v5 - value: v5 - default: true - - label: v4 - value: v4 -redirects: - v4: /ko/sdk/unity/v4/features/subscriptions +title: "구독 정보 전송" +description: "이 메서드를 사용하여 구독 정보를 Adjust로 전송합니다." +slug: "en/sdk/unity/features/subscriptions" +versions: + - + label: "v5" + value: "v5" + default: true + - + label: "v4" + value: "v4" +redirects: + v4: "/en/sdk/unity/v4/features/subscriptions" --- + - +다음 단계는 Adjust SDK 내의 구독 측정만을 설정합니다. 이 기능을 활성화하려면 [앱에 대한 구독 설정](https://help.adjust.com/en/article/set-up-subscriptions-for-your-app)에 나온 단계를 수행하시기 바랍니다. + -다음 단계는 Adjust SDK 내의 구독 측정만을 설정합니다. 이 기능을 활성화하려면 [앱에 대한 구독 설정](https://help.adjust.com/ko/article/set-up-subscriptions-for-your-app)에 나온 단계를 수행하시기 바랍니다. +앱 스토어 및 플레이 스토어 구독을 기록한 후 Adjust SDK로 유효성을 검증할 수 있습니다. 사용자가 구독을 구매한 뒤 상세 내용을 담은 `AdjustAppStoreSubscription` 또는 `AdjustPlayStoreSubscription` 인스턴스를 생성하시기 바랍니다. - +1\. 구독 객체 인스턴스화 \{\#instantiate\-a\-subscription\-object\} +----------------------------------------------------------------- -You can record App Store and Play Store subscriptions and verify their validity with the Adjust SDK. After the user purchases a subscription, create an `AdjustAppStoreSubscription` or `AdjustPlayStoreSubscription` instance containing the details. - -## 1\. Instantiate a subscription object \{\#instantiate\-a\-subscription\-object\} - -To get started, you need to create a subscription object containing details of the subscription purchase. - - - +시작하려면 구독 구매에 대한 세부 정보가 포함된 구독 객체를 생성해야 합니다. + ```cs public AdjustAppStoreSubscription(string price, string currency, string transactionId); ``` - + -Create an `AdjustAppStoreSubscription` object with the following properties: +다음 속성을 포함하는 `AdjustAppStoreSubscription` 객체를 생성합니다. -| Parameter | Data type | Description | -| --------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `price` | `string` | The price of the subscription | -| `currency` | `string` | The currency of the subscription. Formatted as the [`currencyCode`](https://developer.apple.com/documentation/foundation/nslocale/1642836-currencycode?language=objc) of the [`priceLocale`](https://developer.apple.com/documentation/storekit/skproduct/1506145-pricelocale?language=objc) object | -| `transactionId` | `string` | Your ID for the transaction | +| 파라미터 | 데이터 유형 | 설명 | +|-----------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `price` | `string` | 구독료 | +| `currency` | `string` | 구독 통화. [`priceLocale`](https://developer.apple.com/documentation/foundation/nslocale/1642836-currencycode?language=objc) 객체의 [`currencyCode`](https://developer.apple.com/documentation/storekit/skproduct/1506145-pricelocale?language=objc)로 포맷됨 | +| `transactionId` | `string` | 거래 ID | ```cs AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( @@ -48,25 +47,24 @@ AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( transactionId); ``` - - + ```cs public AdjustPlayStoreSubscription(string price, string currency, string sku, string orderId, string signature, string purchaseToken) ``` - + -Create an `AdjustPlayStoreSubscription` object with the following properties: +다음 속성을 포함하는 `AdjustPlayStoreSubscription` 객체를 생성합니다. -| Parameter | Data type | Description | -| --------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `price` | `string` | The price of the subscription | -| `currency` | `string` | The currency of the subscription | -| `sku` | `string` | The ID of the product | -| `orderId` | `string` | Your ID for the transaction | -| `signature` | `string` | The signature of the purchase data | -| `purchaseToken` | `string` | The unique token of the transaction. See [Google's documentation]() for more information | +| 파라미터 | 데이터 유형 | 설명 | +|-----------------|----------|------------------------------------------------------------------------------------------------------------------------------------------------| +| `price` | `string` | 구독료 | +| `currency` | `string` | 구독 통화 | +| `sku` | `string` | 제품 ID | +| `orderId` | `string` | 거래 ID | +| `signature` | `string` | 구매 데이터의 서명 | +| `purchaseToken` | `string` | 거래의 고유 토큰. 자세한 정보는 [Google 문서](https://developer.android.com/reference/com/android/billingclient/api/Purchase#getPurchaseToken())를 참조하시기 바랍니다. | ```cs AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( @@ -78,23 +76,20 @@ AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( purchaseToken); ``` - - - -### Record the purchase date {#record-the-purchase-date} + -You can record the date on which the user purchased a subscription. The SDK returns this data for you to report on. +### 구매일 기록 \{\#record\-the\-purchase\-date\} - - +사용자가 구독을 구매한 날짜를 기록할 수 있습니다. SDK는 리포트할 수 있도록 이 데이터를 반환합니다. + ```cs public string TransactionDate { get; set; } ``` - + -Set the `setTransactionDate` property of your `AdjustAppStoreSubscription` instance to record the timestamp of the subscription. +`AdjustAppStoreSubscription` 인스턴스의 `setTransactionDate` 속성을 설정하면 구독의 타임스탬프를 기록할 수 있습니다. ```cs AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( @@ -105,16 +100,15 @@ AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( subscription.TransactionDate = transactionDate; ``` - - + ```cs public string PurchaseTime { get; set; } ``` - + -Set the `PurchaseTime` property of your `AdjustPlayStoreSubscription` instance to record the timestamp of the subscription. +`AdjustPlayStoreSubscription` 인스턴스의 `PurchaseTime` 속성을 설정하면 구독의 타임스탬프를 기록할 수 있습니다. ```cs AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription( @@ -127,20 +121,19 @@ AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription( subscription.PurchaseTime = purchaseTime; ``` - - + -### Record the purchase region \(iOS only\) {#record-the-purchase-region-ios-only} +### 구매 지역 기록\(iOS만 해당\) \{\#record\-the\-purchase\-region\-ios\-only\} - + ```cs public string SalesRegion { get; set; } ``` - + -You can record the region in which the user purchased a subscription. To do this, set the `SalesRegion` property of your `AdjustPlayStoreSubscription` instance to the country code as a `string`. This needs to be formatted as the [`countryCode`](https://developer.apple.com/documentation/storekit/storefront/3792000-countrycode) of the [`Storefront`](https://developer.apple.com/documentation/storekit/storefront) object. +사용자가 구독을 결제한 지역을 기록할 수 있습니다. `AdjustPlayStoreSubscription` 인스턴스의 `SalesRegion` 속성에서 국가 코드를 `string`로 설정합니다. 이는 [`Storefront`](https://developer.apple.com/documentation/storekit/storefront) 객체의 [`countryCode`](https://developer.apple.com/documentation/storekit/storefront/3792000-countrycode)로써 형식화 되어야 합니다. ```cs AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( @@ -151,18 +144,16 @@ AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( subscription.SalesRegiom = salesRegion; ``` -### Add callback parameters {#add-callback-parameters} +### 콜백 파라미터 추가 \{\#add\-callback\-parameters\} -You can add callback parameters to your subscription object. The SDK appends these parameters to your callback URL. To add callback parameters, call the `AddCallbackParameter` method on your subscription object. You can add multiple callback parameters by calling this method multiple times. - - - +콜백 파라미터를 구독 객체에 추가할 수 있습니다. Adjust는 이러한 파라미터를 콜백 URL에 첨부합니다. 콜백 파라미터를 추가하려면 구독 객체의 `AddCallbackParameter` 메서드를 호출합니다. 이 메서드를 여러 번 호출하여 여러 콜백 매개 변수를 추가할 수 있습니다. + ```cs public void AddCallbackParameter(string key, string value); ``` - + ```cs AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( @@ -174,14 +165,13 @@ subscription.AddCallbackParameter("key1", "value1"); subscription.AddCallbackParameter("key2", "value2"); ``` - - + ```cs public void AddCallbackParameter(string key, string value); ``` - + ```cs AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription( @@ -196,21 +186,18 @@ subscription.AddCallbackParameter("key1", "value1"); subscription.AddCallbackParameter("key2", "value2"); ``` - - - -### Add partner parameters {#add-partner-parameters} + -You can add partner parameters to your subscription object. The SDK sends these to Adjust's servers when the user purchases a subscription. Adjust's servers forward the information on to your network partner. To add partner parameters, call the `AddPartnerParameter` method on your subscription object. You can add multiple partner parameters by calling this method multiple times. +### 파트너 파라미터 추가 \{\#add\-partner\-parameters\} - - +Adjust에서는 파트너 파라미터를 구독 객체에 추가할 수 있습니다. SDK는 사용자가 구독을 구매할 때 이를 Adjust 서버로 전송합니다. 이후 Adjust 서버는 해당 정보를 네트워크 파트너에게 전달합니다. 파트너 파라미터를 추가하려면 구독 객체의 `AddPartnerParameter` 메서드를 호출합니다. 이 메서드를 여러 번 호출하여 여러 개의 파트너 파라미터를 추가할 수 있습니다. + ```cs public void AddPartnerParameter(string key, string value); ``` - + ```cs AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( @@ -222,14 +209,13 @@ subscription.AddPartnerParameter("key1", "value1"); subscription.AddPartnerParameter("key2", "value2"); ``` - - + ```cs public void AddPartnerParameter(string key, string value); ``` - + ```cs AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription( @@ -244,23 +230,21 @@ subscription.AddPartnerParameter("key1", "value1"); subscription.AddPartnerParameter("key2", "value2"); ``` - - + -## 2\. Record subscription information \{\#record\-subscription\-information\} +2\. 구독 정보 기록 \{\#record\-subscription\-information\} +---------------------------------------------------------- -Once you have set up your subscription object, you can record it using the Adjust SDK. - - - +구독 객체를 설정하고 나면 Adjust SDK를 사용하여 기록을 시작할 수 있습니다. + ```cs public static void TrackAppStoreSubscription(AdjustAppStoreSubscription subscription); ``` - + -Pass your subscription object to the `Adjust.TrackAppStoreSubscription` method to record the user's subscription purchase. +구독 객체를 `Adjust.TrackAppStoreSubscription` 메서드로 전달하여 사용자의 구독 구매를 기록합니다. ```cs AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription( @@ -277,16 +261,15 @@ subscription.AddPartnerParameter("key2", "value2"); Adjust.TrackAppStoreSubscription(subscription); ``` - - + ```cs public static void TrackPlayStoreSubscription(AdjustPlayStoreSubscription subscription); ``` - + -Pass your subscription object to the `Adjust.TrackPlayStoreSubscription` method to record the user's subscription purchase. +구독 객체를 `Adjust.TrackPlayStoreSubscription` 메서드로 전달하여 사용자의 구독 구매를 기록합니다. ```cs AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription( @@ -305,5 +288,5 @@ subscription.AddPartnerParameter("key2", "value2"); Adjust.TrackPlayStoreSubscription(subscription); ``` - - + +