Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smartling translations are completed for commit 53a67469502ec7ef60fb662eb057620a801e50de from main #1228

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
39cd855
File src/content/docs/en/sdk/android/v4/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
845274d
File src/content/docs/en/sdk/android/v4/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
4ef6005
File src/content/docs/en/sdk/android/v4/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
a41def5
File src/content/docs/en/sdk/android/v5/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
36239a2
File src/content/docs/en/sdk/android/v5/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
7eedcc8
File src/content/docs/en/sdk/android/v5/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
e787043
File src/content/docs/en/sdk/cordova/v4/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
618b775
File src/content/docs/en/sdk/cordova/v4/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
f68c8d7
File src/content/docs/en/sdk/cordova/v4/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
7c3d054
File src/content/docs/en/sdk/cordova/v5/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
53448a9
File src/content/docs/en/sdk/cordova/v5/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
bc24851
File src/content/docs/en/sdk/cordova/v5/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
d5fe9e3
File src/content/docs/en/sdk/flutter/v4/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
d647269
File src/content/docs/en/sdk/flutter/v4/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
a9af3d9
File src/content/docs/en/sdk/flutter/v4/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
ca3c94c
File src/content/docs/en/sdk/flutter/v5/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
693c26d
File src/content/docs/en/sdk/flutter/v5/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
77c933f
File src/content/docs/en/sdk/flutter/v5/features/subscriptions.mdx wa…
smartling-github-connector[bot] Dec 4, 2024
9d4a02d
File src/content/docs/en/sdk/ios/v4/features/subscriptions.mdx was tr…
smartling-github-connector[bot] Dec 4, 2024
e7d361e
File src/content/docs/en/sdk/ios/v4/features/subscriptions.mdx was tr…
smartling-github-connector[bot] Dec 4, 2024
20950e3
File src/content/docs/en/sdk/ios/v4/features/subscriptions.mdx was tr…
smartling-github-connector[bot] Dec 4, 2024
638fac0
File src/content/docs/en/sdk/ios/v5/features/subscriptions.mdx was tr…
smartling-github-connector[bot] Dec 4, 2024
0844335
File src/content/docs/en/sdk/ios/v5/features/subscriptions.mdx was tr…
smartling-github-connector[bot] Dec 4, 2024
d761d66
File src/content/docs/en/sdk/ios/v5/features/subscriptions.mdx was tr…
smartling-github-connector[bot] Dec 4, 2024
d8d70e5
File src/content/docs/en/sdk/testing/subscription-recording.mdx was t…
smartling-github-connector[bot] Dec 4, 2024
36c8a8b
File src/content/docs/en/sdk/testing/subscription-recording.mdx was t…
smartling-github-connector[bot] Dec 4, 2024
05a83c1
File src/content/docs/en/sdk/testing/subscription-recording.mdx was t…
smartling-github-connector[bot] Dec 4, 2024
b9a4bfa
File src/content/docs/en/sdk/unity/v4/features/subscriptions.mdx was …
smartling-github-connector[bot] Dec 4, 2024
4552ffd
File src/content/docs/en/sdk/unity/v4/features/subscriptions.mdx was …
smartling-github-connector[bot] Dec 4, 2024
4c6e4b4
File src/content/docs/en/sdk/unity/v4/features/subscriptions.mdx was …
smartling-github-connector[bot] Dec 4, 2024
b72bd4a
File src/content/docs/en/sdk/unity/v5/features/subscriptions.mdx was …
smartling-github-connector[bot] Dec 4, 2024
97df0a2
File src/content/docs/en/sdk/unity/v5/features/subscriptions.mdx was …
smartling-github-connector[bot] Dec 4, 2024
6381d82
File src/content/docs/en/sdk/unity/v5/features/subscriptions.mdx was …
smartling-github-connector[bot] Dec 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
142 changes: 63 additions & 79 deletions src/content/docs/ja/sdk/android/v4/features/subscriptions.mdx
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
---
title: サブスクリプション情報の送信
description: Adjustにサブスクリプション情報を送信するには、これらのメソッドを使用してください。
slug: ja/sdk/android/v4/features/subscriptions
versions:
- label: v5
value: v5
default: true
- label: v4
value: v4
redirects:
v5: /ja/sdk/android/features/subscriptions
title: "Send subscription information"
description: "Use these methods send subscription information to Adjust."
slug: "en/sdk/android/v4/features/subscriptions"
versions:
-
label: "v5"
value: "v5"
default: true
-
label: "v4"
value: "v4"
redirects:
v5: "/en/sdk/android/features/subscriptions"
---
<callout type="important">

<Callout type="important">
以下の手順は、Adjust SDK内でサブスクリプション計測を行う場合にのみ有効です。この機能を有効化するには、[アプリにサブスクリプションを設定](https://help.adjust.com/en/article/set-up-subscriptions-for-your-app)の手順に従ってください。
</Callout>

以下の手順は、Adjust SDK内でサブスクリプション計測を行う場合にのみ有効です。この機能を有効化するには、アプリ固有の情報を別途追加する必要があります。設定のサポートをいたしますので、[[email protected]](mailto:[email protected])または担当のテクニカルアカウントマネージャーまでお問い合わせください。
You can record Play Store subscriptions and verify their validity with the Adjust SDK. After the user purchases a subscription, instantiate an `AdjustPlayStoreSubscription` object containing the details.

</Callout>
1\. Instantiate a subscription object \{\#instantiate\-a\-subscription\-object\}
---------------------------------------------------------------------------------------

Playストアのサブスクリプションを記録し、それぞれの有効性をAdjust SDKで確認できます。ユーザーがサブスクリプションを購入したら、詳細を含む `AdjustPlayStoreSubscription`オブジェクトをインスタンス化します。

## 1\. サブスクリプションオブジェクトをインスタンス化する {#1-instantiate-a-subscription-object}

<CodeBlock title="メソッドシグネチャー">
<codeblock title="Method signature">

```java
public AdjustPlayStoreSubscription(final long price,
Expand All @@ -34,21 +35,20 @@ public AdjustPlayStoreSubscription(final long price,

```

</CodeBlock>
</CodeBlock>

開始するには、サブスクリプション購入の詳細を含むサブスクリプションオブジェクトをインスタンス化する必要があります。これを行うには、新しい`AdjustPlayStoreSubscription`を作成して次の引数をパスします:
To get started, you need to instantiate a subscription object containing details of the subscription purchase. To do this, create a new `AdjustPlayStoreSubscription` object and pass the following arguments:

| パラメーター | データタイプ | 説明 |
| --------------- | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `price` | `long` | サブスクリプションの価格 |
| `currency` | `String` | サブスクリプション通貨 |
| `sku` | `String` | プロダクトID |
| `orderId` | `String` | トランザクションID |
| `signature` | `String` | 購入データのシグネチャー |
| `purchaseToken` | `String` | トランザクションの一意のトークン。詳細は[Googleのドキュメント](https://developer.android.com/reference/com/android/billingclient/api/Purchase)を参照してください |
| Parameter | Data type | Description |
|-----------------|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `price` | `long` | 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](https://developer.android.com/reference/com/android/billingclient/api/Purchase) for more information |

<Tabs>
<Tab title="Kotlin" sync="kotlin">
<tabs> <tab title="Kotlin" sync="kotlin">

```kotlin
val subscription = AdjustPlayStoreSubscription(
Expand All @@ -62,8 +62,7 @@ val subscription = AdjustPlayStoreSubscription(
Adjust.trackPlayStoreSubscription(subscription)
```

</Tab>
<Tab title="Java" sync="java" >
</Tab> <tab title="Java" sync="java" >

```java
AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription(
Expand All @@ -77,23 +76,20 @@ AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription(
Adjust.trackPlayStoreSubscription(subscription);
```

</Tab>
</Tabs>
</Tab> </Tabs>

### 購入データを記録する {#record-the-purchase-date}
### Record the purchase date \{\#record\-the\-purchase\-date\}

<CodeBlock title="メソッドシグネチャー">
<codeblock title="Method signature">

```java
public void setPurchaseTime(final long purchaseTime)
```

</CodeBlock>
</CodeBlock>

ユーザーがサブスクリプションを購入した日を記録することができます。SDKはこのデータを返して、レポートします。タイムスタンプを使用して`setPurchaseTime`メソッドを呼び出し、この情報を記録します。

<Tabs>
<Tab title="Kotlin" sync="kotlin">
You can record the date on which the user purchased a subscription. The SDK returns this data for you to report on. Call the `setPurchaseTime` method with a timestamp to record this information.
<tabs> <tab title="Kotlin" sync="kotlin">

```kotlin
val subscription = AdjustPlayStoreSubscription(
Expand All @@ -108,8 +104,7 @@ subscription.setPurchaseTime(purchaseTime)
Adjust.trackPlayStoreSubscription(subscription)
```

</Tab>
<Tab title="Java" sync="java" >
</Tab> <tab title="Java" sync="java" >

```java
AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription(
Expand All @@ -124,85 +119,75 @@ subscription.setPurchaseTime(purchaseTime);
Adjust.trackPlayStoreSubscription(subscription);
```

</Tab>
</Tabs>
</Tab> </Tabs>

### コールバックパラメーターを追加する {#add-callback-parameters}
### Add callback parameters \{\#add\-callback\-parameters\}

<CodeBlock title="メソッドシグネチャー">
<codeblock title="Method signature">

```java
public void addCallbackParameter(String key, String value)
```

</CodeBlock>

コールバックパラメーターをサブスクリプションオブジェクトに追加することができます。Adjustは、これらのパラメーターをコールバックURLに追加します。コールバックパラメーターを追加するには、サブスクリプションオブジェクトの`addCallbackParameter`メソッドを呼び出してください。このメソッドを複数回呼び出すことで、複数のコールバックパラメーターを追加できます。
</CodeBlock>

<Tabs>
<Tab title="Kotlin" sync="kotlin">
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.
<tabs> <tab title="Kotlin" sync="kotlin">

```kotlin
subscription.addCallbackParameter("key", "value")
subscription.addCallbackParameter("foo", "bar")
```

</Tab>
<Tab title="Java" sync="java" >
</Tab> <tab title="Java" sync="java" >

```java
subscription.addCallbackParameter("key", "value");
subscription.addCallbackParameter("foo", "bar");
```

</Tab>
</Tabs>
</Tab> </Tabs>

### パートナーパラメーターの追加 {#add-partner-parameters}
### Add partner parameters \{\#add\-partner\-parameters\}

<CodeBlock title="メソッドシグネチャー">
<codeblock title="Method signature">

```java
public void addPartnerParameter(String key, String value)
```

</CodeBlock>
</CodeBlock>

パートナーパラメーターをサブスクリプションオブジェクトに追加することができます。SDKは、ユーザーがサブスクリプションを購入した時に、Adjustサーバーへこれらを送信します。Adjustサーバーは、その情報をネットワークパートナーに転送します。パラメーターパラメーターを追加するには、サブスクリプションオブジェクトの`addPartnerParameter`メソッドを呼び出してください。このメソッドを複数回呼び出すことで、複数のコールバックパラメーターを追加できます。

<Tabs>
<Tab title="Kotlin" sync="kotlin">
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.
<tabs> <tab title="Kotlin" sync="kotlin">

```kotlin
subscription.addPartnerParameter("key", "value")
subscription.addPartnerParameter("foo", "bar")
```

</Tab>
<Tab title="Java" sync="java" >
</Tab> <tab title="Java" sync="java" >

```java
subscription.addPartnerParameter("key", "value");
subscription.addPartnerParameter("foo", "bar");
```

</Tab>
</Tabs>
</Tab> </Tabs>

## 2\. サブスクリプション情報を送信する {#2-send-subscription-information}
2\. Send subscription information \{\#send\-subscription\-information\}
-----------------------------------------------------------------------------

<CodeBlock title="メソッドシグネチャー">
<codeblock title="Method signature">

```java
public static void trackPlayStoreSubscription(final AdjustPlayStoreSubscription subscription)
```

</CodeBlock>

サブスクリプションオブジェクトを設定したら、Adjust SDKを使用してそれをAdjustに送信できます。完了したオブジェクトを `trackPlayStoreSubscription`メソッドにパスして、ユーザーのサブスクリプション購入を記録します。
</CodeBlock>

<Tabs>
<Tab title="Kotlin" sync="kotlin">
Once you have set up your subscription object, you can send it to Adjust using the Adjust SDK. Pass your completed object to the `trackPlayStoreSubscription` method to record the user's subscription purchase.
<tabs> <tab title="Kotlin" sync="kotlin">

```kotlin
val subscription = AdjustPlayStoreSubscription(
Expand All @@ -217,8 +202,7 @@ subscription.setPurchaseTime(purchaseTime)
Adjust.trackPlayStoreSubscription(subscription)
```

</Tab>
<Tab title="Java" sync="java" >
</Tab> <tab title="Java" sync="java" >

```java
AdjustPlayStoreSubscription subscription = new AdjustPlayStoreSubscription(
Expand All @@ -233,5 +217,5 @@ subscription.setPurchaseTime(purchaseTime);
Adjust.trackPlayStoreSubscription(subscription);
```

</Tab>
</Tabs>
</Tab> </Tabs>

Loading
Loading