> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participants/import-advocate-participants-in-bulk.md).

# Advocate 参加者を一括インポートする

Advocate は次の形式で送信されたインポートを受け付けます `.csv` や `.jsonl` ファイル形式です。弊社の [サンプルCSVインポートファイル](https://assets.ctfassets.net/s68ib1kj8k5n/7LOYwhDlsI22uuaIMaWImE/71cefe860edc71c0968c8065e1d6e953/sample-user-upload.csv) と [サンプルJSONLインポートファイル](https://assets.ctfassets.net/s68ib1kj8k5n/5rD1ZiKEjqStp54qjDB90N/48918dfa8b53a935c7c83ea5fbf3af77/userImportSample.jsonl) を参照して、インポートに必要なファイル構造を確認してください。

{% hint style="info" %}
**注:** 各インポートが500,000件を超えないことを推奨します。
{% endhint %}

#### 参加者を一括インポート

1. 左側のナビゲーション メニューから ![](https://impact-1.gitbook.io/docs/emvxfLrwrlacc4y3y02Y/~gitbook/image?url=https%3A%2F%2F4048883401-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwMLlMoFBtKJa8ptd3zaw%252Fuploads%252Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%252Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg%3Falt%3Dmedia\&width=300\&dpr=3\&quality=100\&sign=71dd50ef\&sv=2) **\[Engage] → 参加者**.
2. を選択 **ユーザーのインポート**.
3. 下の *インポート種別*の下の **ユーザー**.
4. を選択してインポートファイルを追加してください **ファイルを選択**.
5. **\[任意]** 特定のユーザーセグメントにインポート済みの参加者を追加または削除するには、ドロップダウンリストからそのセグメントを選択してください。

{% hint style="info" %}
**注:** この選択は *すべての* このインポートファイルに含まれる参加者に適用されます。
{% endhint %}

6. を選択 **インポートを開始**.

インポートが完了すると、確認メールが送信されます。キューの状況やファイルサイズによっては、インポートに最大30分かかる場合があります。

#### フィールド

ユーザーの一括インポートでは、アップロードファイル内の標準フィールドとカスタムフィールドの両方がサポートされます。 **フィールドは大文字と小文字を区別します。**

{% tabs %}
{% tab title="標準フィールド" %}
標準フィールドは、当社の [Open Endpoint User Upsert API 呼び出し](https://integrations.impact.com/integration-guides/for-brands/advocate/advocate-api/api-open-endpoints):

| フィールド                     | 種類   | 説明                                                                                                                                                                                                                                                                     |
| ------------------------- | ---- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| accountId（必須）             | 文字列  | この参加者が所属するアカウントの一意の識別子。                                                                                                                                                                                                                                                |
| id（必須）                    | 文字列  | この参加者に付与された一意の識別子。                                                                                                                                                                                                                                                     |
| firstName                 | 文字列  | 参加者の名。                                                                                                                                                                                                                                                                 |
| lastName                  | 文字列  | 参加者の姓。                                                                                                                                                                                                                                                                 |
| email                     | 文字列  | 参加者のメールアドレス。                                                                                                                                                                                                                                                           |
| referable                 | ブール値 | <p>impact.com が、その参加者が紹介可能かどうかを判断するために使用するフラグ。</p><p><strong>注:</strong> このフラグは、 <em>1つ</em> <code>r</code> だけで綴る必要があります。</p>                                                                                                                                          |
| locale                    | 文字列  | 参加者のロケール。次の用途に使用されます: [国際化](/brand/ja/what-would-you-like-to-learn-about/advocate-program/advocate-program-settings/translate-and-localize-your-advocate-program.md)。ロケールの形式は次のとおりである必要があります `language_COUNTRY` 。言語コードは小文字、国コードは大文字でなければなりません。区切り文字はアンダースコアである必要があります。 |
| countryCode               | 文字列  | 参加者のロケール。次の用途に使用されます: [国際化](/brand/ja/what-would-you-like-to-learn-about/advocate-program/advocate-program-settings/translate-and-localize-your-advocate-program.md)。ユーザーの国コード（例: CA）。                                                                                 |
| referredBy.code           | 文字列  | この参加者を紹介したカスタマーアドボケートの紹介コード。                                                                                                                                                                                                                                           |
| referralCodes.{programId} | 文字列  | 指定したプログラムでこの参加者が共有するためのバニティ紹介コード（含まれていない場合は自動生成されます）。                                                                                                                                                                                                                  |
| sharelinks.{programId}    | 文字列  | 指定したプログラムでこの参加者が共有するためのバニティ共有リンク（含まれていない場合は自動生成されます）。                                                                                                                                                                                                                  |
| dateCreated               | 文字列  | この参加者があなたの Advocate プログラムで作成された日付。                                                                                                                                                                                                                                     |
| imageUrl                  | 文字列  | ウィジェット、メール、テーマで任意に使用されます。絶対パスのプロフィール画像 URL を指定する場合、画像の最小サイズは 80px x 80px です。                                                                                                                                                                                           |
| dateUsTaxFormSubmitted    | 整数   | 参加者の W-9 税務フォームが収集済みとしてマークされた日付。設定されている場合は、テナントの W-9 コンプライアンスに使用されます。                                                                                                                                                                                                  |
| customFields.{fieldName}  | 文字列  | この構造を使用して、任意のカスタムフィールドを含めます。                                                                                                                                                                                                                                           |
| {% endtab %}              |      |                                                                                                                                                                                                                                                                        |

{% tab title="カスタム項目" %}
[カスタムユーザーフィールド](/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participants/custom-and-calculated-fields/custom-fields-for-advocate-explained.md) 参加者固有のデータを扱えます。カスタムユーザーフィールドの情報に基づいて、プログラムの目標をトリガーするように設定できます。

{% hint style="info" %}
**例**：参加者がサブスクリプション会員を更新したら報酬を付与します。まず、カスタムフィールド `customFields.subscriptionPaid` に次の値を設定します **はい**。次に、コンバージョン条件が `customFields.subscriptionPaid` に等しい **はい**.
{% endhint %}

カラムヘッダーにカスタムフィールドを追加するには、次の形式を使用します: `customFields.yourCustomFieldName`.

{% hint style="info" %}
**注:** カスタムフィールドでは配列やオブジェクトの値は使用できません。
{% endhint %}
{% endtab %}
{% endtabs %}

**結果**

インポートが完了するとメールでお知らせします。インポート結果は次の場所からダウンロードできます: ![](https://impact-1.gitbook.io/docs/emvxfLrwrlacc4y3y02Y/~gitbook/image?url=https%3A%2F%2F4048883401-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwMLlMoFBtKJa8ptd3zaw%252Fuploads%252Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%252Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg%3Falt%3Dmedia\&width=300\&dpr=3\&quality=100\&sign=71dd50ef\&sv=2) **\[Engage] → レポート → インポートとエクスポート** Advocate プログラム内のページ。

{% hint style="warning" %}
**警告：** ダウンロードリンクは30日後に期限切れになります。
{% endhint %}

{% tabs %}
{% tab title="アップロード成功" %}
インポートが正常に完了すると、参加者情報を含むファイルが生成され、メールで送信されます。これらの結果に含まれる情報は、次のレポートにある内容と同じです: [ユーザー詳細レポート](/brand/ja/what-would-you-like-to-learn-about/advocate-program/advocate-reporting-and-analytics/advocate-program-reports-explained.md).
{% endtab %}

{% tab title="エラー" %}
インポート中にエラーが発生した場合は、追加ファイルが生成されます。このエラーファイルには、発生した各エラーのエントリが含まれます。失敗したレコード（元のインポートファイル内）の行番号や、関連するエラーメッセージも含まれます。

| recordNumber | message                    | apiErrorCode | statusCode |
| ------------ | -------------------------- | ------------ | ---------- |
| 2            | このリクエストには、有効で空でない id が必要です | BAD\_REQUEST | 400        |

まれにシステムエラーが発生してインポートが中断された場合、インポートは **中止** として表示され、復旧しません。さらにサポートが必要な場合は、サポートチームまでお問い合わせください。
{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participants/import-advocate-participants-in-bulk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
