{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["tabs","tab","admonition"]},"type":"markdown"},"seo":{"title":"Airship Export Integration","description":"Treasure AIのクエリ結果をAirshipのオーディエンスリストに直接エクスポートし、特定のユーザーをターゲティングするための統合ガイドです。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"airship-export-integration","__idx":0},"children":["Airship Export Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataのジョブ結果をAirshipのオーディエンスリストに直接書き込むことができます。Airshipでは、これらのリストを使用して特定のユーザーをターゲットにすることができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure Dataの基本知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Airship、Airshipオーディエンスリスト、属性、カスタムイベントの基本知識"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-data-integration-の静的-ip-アドレス","__idx":2},"children":["Treasure Data Integration の静的 IP アドレス"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["セキュリティポリシーで IP ホワイトリストが必要な場合は、接続を成功させるために Treasure Data の IP アドレスを許可リストに追加する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["リージョンごとに整理された静的 IP アドレスの完全なリストは、次のリンクにあります:"," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/endpoints/ip-addresses-integrations-result-workers"},"children":["IP Addresses for Integrations"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"制限事項","__idx":3},"children":["制限事項"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["最大1,000万レコードまでアップロードできます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["最大100個のアップロードリストを作成できます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["APIの制限により、リストのコンテンツを上書きすることはできますが、リストに追加することはできません。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"新しい認証の作成","__idx":4},"children":["新しい認証の作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataでは、クエリを実行する前にデータ接続を作成および設定する必要があります。データ接続の一部として、インテグレーションにアクセスするための認証情報を提供します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure コンソール"]},"を開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub"]}," >  ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Catalog"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Catalog画面の右端にある検索アイコンをクリックし、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Airship"]},"と入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["AirShipコネクタにカーソルを合わせ、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Authentication"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/airship.c54cea610f705e1019f4414c31acda543ac6a3560d0191d4ec1189cfbe4e2612.429f9851.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["New Authenticationダイアログが開きます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20201013-025608.b2164a61ee462d6af79cb89dcb9f74f0180bbbb797a40d3010ced7f657a735b6.429f9851.png","alt":""},"children":[]}," ","5. Base URLを入力します:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Airship North Americanクラウドサイト: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://go.urbanairship.com/"},"children":["https://go.urbanairship.com"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Airship Europeanクラウドサイト: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://go.airship.eu/"},"children":["https://go.airship.eu"]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["次のいずれかの認証方法を選択します"]}]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Basic Authentication","disable":false},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In the Airship project dashboard, select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["APIs & Integrations."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Enter the App key, App secret, and App master secret."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20201001-105225.8c36beeab1beaa336666eeb2b7e31823e05fb2749a86343da7bb5d31070a7609.429f9851.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Access Token","disable":false},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["APIs & Integrations"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Tokens"]}," in the Airship project dashboard."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Create a new token and grant ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Audience Modification"]}," or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["All-access Role"]},"."," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20201001-110148.02affccc2dabc28ee51534b28b5607998e557003533835501ef7c7fd4b7cab7a.429f9851.png","alt":""},"children":[]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["認証情報を入力します。カスタムイベントアップロードの認証の場合は、App keyを使用したアクセストークン方式が必要です。App key、App secret、tokenの取得方法については、以下を参照してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["接続の名前を入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"データ接続でエクスポート結果を設定する","__idx":5},"children":["データ接続でエクスポート結果を設定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このインテグレーションは、ユーザーがAirshipにさまざまなタイプのデータを同期することをサポートします。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Configurations"},"children":["Configurations"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Options"},"children":["Options"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Data Type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Static List"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Airship Audience Listsに静的リストをアップロードします（ターゲットが存在しない場合は、静的リストが自動的に作成されます）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Non-JSON Attributes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Airshipのテキスト、数値、日時属性に値を同期します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON Attributes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Airshipのjson属性に値を同期します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Custom Events"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Airshipにカスタムイベントを同期します"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インテグレーションを設定するには:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure コンソール"]},"を開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Queries"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Query"]},"をクリックして新しいクエリを作成するか、データのエクスポートに使用する予定の保存されたクエリを検索します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリエディタの上部にある",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export Results"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"airship-audience-listsに静的リストをアップロードする","__idx":6},"children":["Airship Audience Listsに静的リストをアップロードする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下のサンプルクエリを参照して、ユーザーとチャネルのリストをAirshipオーディエンスリストにアップロードするエクスポートジョブの設定方法を確認してください。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Data Type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Static list"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["List Name (required)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Audience listの名前"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Description (optional)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Audience listの説明"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Skip Empty Records (optional)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["デフォルトはTrueです。クエリ結果に空またはnullの列が含まれている場合、その行はスキップされます。それ以外の場合、ジョブは失敗し、空のレコードを手動で削除する必要があります。"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["サンプルクエリ"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"SELECT identifier_type, identifier FROM table my_table\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["サンプルクエリ結果"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"identifier_type, identifiernamed_user,customer-42named_user,room-27ios_channel,5i4c91s5-9tg2-k5zc-m592150z5634web_channel,d132f5b7-abcf-4920-aeb3-9132ddac3d5aandroid_channel,52b2b587-0152-4134-a8a0-38ae6933c88aemail_channel,ab1a81e3-5af3-4c04-a7ae-d676960e6684open_channel,6bcf3e63-a38a-44d8-8b0d-2fb5941e74absms_channel,ab1a81e3-aaf3-ac04-a7ae-a676960e6684\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"airshipのテキスト数値日時属性に値を同期する","__idx":7},"children":["Airshipのテキスト、数値、日時属性に値を同期する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下のサンプルクエリを参照して、テキスト、数値、または日時属性の値をAirshipオーディエンスリストに同期する方法を確認してください。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Data Type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Non-JSON attributes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Target"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Named UsersまたはChannelのいずれかを選択します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Action"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["- ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Batch CSV upload"]}," -- Treasure Dataは、大量のレコードに対してBatch CSV uploadを推奨します。このモードは、カスタム属性の値の追加と更新にのみ使用されます。 - ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Set"]},"または",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Remove"]}," -- これらのオプションは、レコードごとに1回のアップロード呼び出しを使用します。これにより、Airship上でのデータの伝播が高速化されますが、全体的な実行時間は遅くなります。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Skip Empty Records (optional)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["デフォルトはTrueです。クエリ結果に空またはnullの列が含まれている場合、その行はスキップされます。それ以外の場合、ジョブは失敗し、空のレコードを手動で削除する必要があります。"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Named Usersのサンプルクエリ"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この例では、fav_colorとfav_sportはAirship上で属性キーとして定義されている必要があります。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT n.named_user AS named_user,       a.fav_color as fav_color,       a.fav_sport as fav_sportFROM named_users n    JOIN attributes a        ON n.id = a.id\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["サンプルクエリ結果"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"named_user, fav_color, fav_sportcustomer-42, red, footballcustomer-22, black, tennis\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Channelsのサンプルクエリ"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この例では:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["fav_color、fav_sportはAirship上で属性キーとして定義されている必要があります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Identifier_typeは次のいずれかを指定します: amazon_channel、android_channel、channel、email_address、ios_channel、sms_id、web_channel"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["identifier_typeがsms_idの場合、追加情報が必要なため、sender列が必要です。(それ以外の場合、そのレコードは無効です。)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Identifer_valueはそのチャンネルのIDを指定します"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT c.channel_id AS identifier_value,       'email_address' AS identifier_type,       a.fav_color as fav_color,       a.fav_sport as fav_sportFROM channels c    JOIN attributes a        ON c.id = a.id\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["サンプルクエリ結果"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"identifier_type, identifier_value, fav_color, fav_sportemail_address, customer11@email.com, red, footballemail_address, customer21@email.com, black, football\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"airship上のjson属性に値を同期する","__idx":8},"children":["Airship上のJSON属性に値を同期する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["AirshipオーディエンスリストにJSON属性を同期する方法については、以下のサンプルクエリを参照してください。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"パラメータ"},"children":["パラメータ"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Data Type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON Attributes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Target"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Named UsersまたはChannelのいずれかを選択"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Action"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["- ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Set"]},"または",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Remove"]}," -- これらのオプションは、レコードごとに単一のアップロードコールを使用します。これにより、Airship上でのデータの伝播が高速化される可能性がありますが、全体的な実行時間は遅くなります。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Attribute name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON属性の名前。一度に設定できる属性は1つのみです。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Skip Empty Records (optional)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["デフォルトはTrueです。クエリ結果に空またはnullの列が含まれている場合、その行はスキップされます。そうでない場合、ジョブは失敗し、空のレコードを手動で削除する必要があります。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Json Composer (optional)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["デフォルトはtrueです。Json composerは、提供されたプロパティフィールドからjson値を構成します。それ以外の場合は、有効なjson値を持つプロパティフィールドが必要です。プロパティフィールド名は、更新する属性名と同じである必要があります。"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["サンプルクエリ"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この例では、統合はクエリの出力がピボットまたは水平形式で構造化されていることを想定しています。これは、各予約のデータが単一の行に表示され、その予約に関連するフライトのさまざまな属性を表す複数の列があることを意味します。たとえば、顧客が2つのフライトを持っている場合、出力は両方のフライトに関連するすべての詳細を単一の行にリストし、各フライトの属性に特別に指定された列を含みます(例: flights[0].departure_port、flights[1].departure_portなど)。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このアプローチは、各フライトの詳細が別々の行にリストされる垂直形式とは対照的です。ただし、バッチでレコードを収集する場合、オブジェクトの配列のレコードが垂直に記述されていると、同じオブジェクトに属する配列アイテムの収集が漏れる可能性があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["統合は、Airshipに送信されるJSONオブジェクトを作成することに注意してください。json composerフラグがオフの場合、JSON形式の値を持つ「属性名」の列名が必要です。有効な値は属性としてAirshipに送信されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Json composerがオンの場合"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"WITH flights_with_index AS (\n  SELECT\n    f.reservation_id,\n    f.departure_port,\n    f.departure_time,\n    f.arrival_port,\n    f.arrival_time,\n    ROW_NUMBER() OVER (\n      PARTITION BY f.reservation_id\n      ORDER BY f.departure_time\n    ) - 1 AS flight_index\n  FROM flights f\n  JOIN reservations r\n    ON f.reservation_id = r.reservation_id\n)\nSELECT\n  'named_users' AS identifier_type,\n  r.customer_name AS identifier_value,\n  t.reservation_id AS instance_id,\n  MAX(CASE WHEN t.flight_index = 0 THEN t.departure_port END) AS \"flights[0].departure_port\",\n  MAX(CASE WHEN t.flight_index = 0 THEN t.departure_time END) AS \"flights[0].departure_time\",\n  MAX(CASE WHEN t.flight_index = 0 THEN t.arrival_port END) AS \"flights[0].arrival_port\",\n  MAX(CASE WHEN t.flight_index = 0 THEN t.arrival_time END) AS \"flights[0].arrival_time\",\n  MAX(CASE WHEN t.flight_index = 1 THEN t.departure_port END) AS \"flights[1].departure_port\",\n  MAX(CASE WHEN t.flight_index = 1 THEN t.departure_time END) AS \"flights[1].departure_time\",\n  MAX(CASE WHEN t.flight_index = 1 THEN t.arrival_port END) AS \"flights[1].arrival_port\",\n  MAX(CASE WHEN t.flight_index = 1 THEN t.arrival_time END) AS \"flights[1].arrival_time\"\nFROM flights_with_index t\nJOIN reservations r\n  ON t.reservation_id = r.reservation_id\nGROUP BY\n  r.customer_name,\n  t.reservation_id\nORDER BY\n  instance_id;\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["結果"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"identifier_type"},"children":["identifier_type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"identifier_value"},"children":["identifier_value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"instance_id"},"children":["instance_id"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"flights[0].departure_port"},"children":["flights[0].departure_port"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"flights[0].departure_time"},"children":["flights[0].departure_time"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"flights[0].arrival_port"},"children":["flights[0].arrival_port"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"flights[0].arrival_time"},"children":["flights[0].arrival_time"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"flights[1].departure_port"},"children":["flights[1].departure_port"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"flights[1].departure_time"},"children":["flights[1].departure_time"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"flights[1].arrival_port"},"children":["flights[1].arrival_port"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"flights[1].arrival_time"},"children":["flights[1].arrival_time"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["named_users"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["customer-1"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["rev1"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["PDX"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-08 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["LAX"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-09 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["LAX"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-09 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["PDX"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-10 00:00:00.000"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["named_users"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["customer-2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["rev2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SGN"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-08 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BKK"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-09 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BKK"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-09 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SGN"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-10 00:00:00.000"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["named_users"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["customer-3"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["rev3"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SGN"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-08 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TDN"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-09 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TDN"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-09 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SGN"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-10 00:00:00.000"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["named_users"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["customer-4"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["rev4"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BKK"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-09 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TST"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-10 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["named_users"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["customer-5"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["rev5"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ABC"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-09 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["XTZ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-10 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["named_users"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["customer-6"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["rev6"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SSN"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-09 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BKK"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-10 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Json composerがオフの場合"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT\n  named_user,\n  instance_id,\n  booking\nFROM (\n  VALUES\n    (\n      'customer-1',\n      'u111',\n      '{\"flights\":[{\"departure_port\":\"PDX\",\"departure_time\":\"2025-01-08 00:00:00.000\",\"arrival_port\":\"LAX\",\"arrival_time\":\"2025-01-09 00:00:00.000\"},{\"departure_port\":\"LAX\",\"departure_time\":\"2025-01-09 00:00:00.000\",\"arrival_port\":\"PDX\",\"arrival_time\":\"2025-01-10 00:00:00.000\"}]}'\n    ),\n    (\n      'customer-2',\n      'u222',\n      '{\"flights\":[{\"departure_port\":\"PDX\",\"departure_time\":\"2025-01-08 00:00:00.000\",\"arrival_port\":\"LAX\",\"arrival_time\":\"2025-01-09 00:00:00.000\"},{\"departure_port\":\"LAX\",\"departure_time\":\"2025-01-09 00:00:00.000\",\"arrival_port\":\"PDX\",\"arrival_time\":\"2025-01-10 00:00:00.000\"}]}'\n    )\n) AS tbl(named_user, instance_id, booking);\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["結果"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"named_user"},"children":["named_user"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"instance_id"},"children":["instance_id"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"booking"},"children":["booking"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["customer-1"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["u111"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["{\"flights\":[{\"departure_port\":\"PDX\",\"departure_time\":\"2025-01-08 00:00:00.000\",\"arrival_port\":\"LAX\",\"arrival_time\":\"2025-01-09 00:00:00.000\"},{\"departure_port\":\"LAX\",\"departure_time\":\"2025-01-09 00:00:00.000\",\"arrival_port\":\"PDX\",\"arrival_time\":\"2025-01-10 00:00:00.000\"}]}"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["customer-2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["u222"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["{\"flights\":[{\"departure_port\":\"PDX\",\"departure_time\":\"2025-01-08 00:00:00.000\",\"arrival_port\":\"LAX\",\"arrival_time\":\"2025-01-09 00:00:00.000\"},{\"departure_port\":\"LAX\",\"departure_time\":\"2025-01-09 00:00:00.000\",\"arrival_port\":\"PDX\",\"arrival_time\":\"2025-01-10 00:00:00.000\"}]}"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"カスタムイベントをairshipに同期","__idx":9},"children":["カスタムイベントをAirshipに同期"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下のサンプルクエリを参照して、カスタムイベントをAirshipに同期する方法を確認してください。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"パラメータ"},"children":["パラメータ"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Data Type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Custom Events"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":[" Json Composer (optional)"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["デフォルトはfalseです。有効なjson値を持つpropertiesフィールドが必要です。それ以外の場合、json composerは提供されたpropertiesフィールドからjson値を構成します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Skip Empty Records (optional)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["デフォルトはTrueです。クエリ結果に空またはnullのカラムが含まれている場合、その行はスキップされます。それ以外の場合、ジョブは失敗し、空のレコードを手動で削除する必要があります。"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["サンプルクエリ"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この例では、インテグレーションはクエリの出力がピボット形式または水平形式で構造化されることを想定しています。これは、各購入のデータが単一の行で表示され、その購入に関連付けられた異なる項目の異なる属性を表す複数のカラムがあることを意味します。たとえば、顧客が2つの項目を持っている場合、出力は両方の項目に関する関連するすべての詳細を単一の行にリストし、各項目の属性専用に指定されたカラム（例：items[0].text、items[1].textなど）があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このアプローチは、各項目の詳細が別々の行にリストされる垂直形式とは対照的です。ただし、バッチでレコードを収集する際、オブジェクトの配列のレコードが垂直に記述されている場合、同じオブジェクトに属する配列項目の収集に漏れが発生する可能性があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インテグレーションがAirshipに送信されるJSONオブジェクトを作成することに注意してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"WITH items_with_index AS (\n  SELECT\n    f.purchase_id,\n    f.text,\n    f.price,\n    ROW_NUMBER() OVER (\n      PARTITION BY f.purchase_id\n      ORDER BY f.text\n    ) - 1 AS item_index\n  FROM purchase_items f\n)\nSELECT\n  r.identifier_type,\n  r.identifier_value,\n  r.name,\n  r.interaction_id,\n  r.interaction_type,\n  r.brand AS \"properties.brand\",\n  r.value,\n  r.unique_id,\n  r.occurred,\n  MAX(CASE WHEN t.item_index = 0 THEN t.text END) AS \"properties.items[0].text\",\n  MAX(CASE WHEN t.item_index = 0 THEN t.price END) AS \"properties.items[0].price\",\n  MAX(CASE WHEN t.item_index = 1 THEN t.text END) AS \"properties.items[1].text\",\n  MAX(CASE WHEN t.item_index = 1 THEN t.price END) AS \"properties.items[1].price\",\n  MAX(CASE WHEN t.item_index = 2 THEN t.text END) AS \"properties.items[2].text\",\n  MAX(CASE WHEN t.item_index = 2 THEN t.price END) AS \"properties.items[2].price\"\nFROM items_with_index t\nJOIN purchase r\n  ON t.purchase_id = r.id\nGROUP BY\n  r.identifier_type,\n  r.identifier_value,\n  r.name,\n  r.interaction_id,\n  r.interaction_type,\n  r.brand,\n  r.value,\n  r.unique_id,\n  r.occurred;\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["サンプルクエリの結果"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"identifier_type"},"children":["identifier_type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"identifier_value"},"children":["identifier_value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"name"},"children":["name"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"interaction_id"},"children":["interaction_id"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"interaction_type"},"children":["interaction_type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"properties.brand"},"children":["properties.brand"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"value"},"children":["value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"unique_id"},"children":["unique_id"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"occurred"},"children":["occurred"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"properties.items[0].text"},"children":["properties.items[0].text"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"properties.items[0].price"},"children":["properties.items[0].price"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"properties.items[1].text"},"children":["properties.items[1].text"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"properties.items[1].price"},"children":["properties.items[1].price"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"properties.items[2].text"},"children":["properties.items[2].text"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"properties.items[2].price"},"children":["properties.items[2].price"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["named_user_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["customer-1"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["purchase 1"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["interaction 1"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["url"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Brand 1"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["10.5"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["unique id 1"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-09 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["text 1 purchase 1"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["4.0"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["text 2 purchase 1"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2.6"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["text 3 purchase 1"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["3.5"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["named_user_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["customer-2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["purchase 2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["interaction 2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["url"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Brand 2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["34.0"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["unique id 2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2025-01-09 00:00:00.000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["text 1 purchase 2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["6.7"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["text 2 purchase 2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["4.9"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NULL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NULL"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"audience-studio-で-segment-をアクティベートする","__idx":10},"children":["Audience Studio で Segment をアクティベートする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Audience Studio で activation を作成することで、segment データをターゲットプラットフォームに送信することもできます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Audience Studio"]}," に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["parent segment を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ターゲット segment を開き、右クリックして、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Activation"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Details"]}," パネルで、Activation 名を入力し、前述の Configuration Parameters のセクションに従って activation を設定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Output Mapping"]}," パネルで activation 出力をカスタマイズします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/ouput.b2c7f1d909c4f98ed10f5300df858a4b19f71a3b0834df952f5fb24018a5ea78.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Attribute Columns",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export All Columns"]}," を選択すると、変更を加えずにすべての列をエクスポートできます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," を選択して、エクスポート用の特定の列を追加します。Output Column Name には、Source 列名と同じ名前があらかじめ入力されます。Output Column Name を更新できます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," を選択し続けて、activation 出力用の新しい列を追加します。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String Builder",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add string"]}," を選択して、エクスポート用の文字列を作成します。次の値から選択します:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String: 任意の値を選択します。テキストを使用してカスタム値を作成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Timestamp: エクスポートの日時。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Id: segment ID 番号。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Name: segment 名。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience Id: parent segment 番号。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," を設定します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/snippet-output-connector-on-audience-studio-2024-08-28.a99525173709da1eb537f839019fa7876ffae95045154c8f2941b030022f792c.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["スケジュールを定義する値を選択し、オプションでメール通知を含めます。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["batch journey の activation を作成する必要がある場合は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/journey-orchestration/batch/creating-a-batch-journey-activation"},"children":["Creating a Batch Journey Activation"]}," を参照してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"クエリエクスポートジョブのスケジュール設定-オプション","__idx":11},"children":["クエリエクスポートジョブのスケジュール設定 (オプション)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["結果エクスポートと組み合わせたスケジュールジョブを使用して、出力結果を定期的に特定のターゲット先に書き込むことができます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataのスケジューラー機能は、高可用性を実現するために定期的なクエリ実行をサポートしています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["2つの仕様が競合するスケジュール仕様を提供する場合、より頻繁に実行することを要求する仕様が優先され、もう一方のスケジュール仕様は無視されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["たとえば、cronスケジュールが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1 * 1'"]}," の場合、「日」の仕様と「曜日」の仕様は矛盾しています。前者の仕様では毎月1日の深夜0時(00:00)に実行することを要求し、後者の仕様では毎週月曜日の深夜0時(00:00)に実行することを要求しているためです。この場合、後者の仕様が優先されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"オプション-query-export-ジョブをスケジュールする","__idx":12},"children":["(オプション) Query Export ジョブをスケジュールする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Scheduled Jobs と Result Export を使用して、指定したターゲット宛先に出力結果を定期的に書き込むことができます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data のスケジューラー機能は、高可用性を実現するために定期的なクエリ実行をサポートしています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["2 つの仕様が競合するスケジュール仕様を提供する場合、より頻繁に実行するよう要求する仕様が優先され、もう一方のスケジュール仕様は無視されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例えば、cron スケジュールが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1 * 1'"]}," の場合、「月の日」の仕様と「週の曜日」が矛盾します。前者の仕様は毎月 1 日の午前 0 時 (00:00) に実行することを要求し、後者の仕様は毎週月曜日の午前 0 時 (00:00) に実行することを要求するためです。後者の仕様が優先されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"treasure-コンソール-を使用してジョブをスケジュールする","__idx":13},"children":["Treasure コンソール を使用してジョブをスケジュールする"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench > Queries"]}," に移動します"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいクエリを作成するか、既存のクエリを選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," の横にある None を選択します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-28-51.f1b242f6ecc7666a0097fdf37edd1682786ec11ef80eff68c66f091bc405c371.0f87d8d4.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ドロップダウンで、次のスケジュールオプションのいずれかを選択します:"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-29-47.45289a1c99256f125f4d887e501e204ed61f02223fde0927af5f425a89ace0c0.0f87d8d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"ドロップダウン値"},"children":["ドロップダウン値"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Custom cron..."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#custom-cron-details"},"children":["Custom cron... の詳細"]},"を参照してください。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["@daily (midnight)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["指定されたタイムゾーンで 1 日 1 回午前 0 時 (00:00 am) に実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["@hourly (:00)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎時 00 分に実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スケジュールなし。"]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"custom-cron-の詳細","__idx":14},"children":["Custom cron... の詳細"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-30-23.0f94a8aa5f75ea03e3fec0c25b0640cd59ee48d1804a83701e5f2372deae466c.0f87d8d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Cron 値"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cron 値"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 * * * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1 時間に 1 回実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 * * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1 日 1 回午前 0 時に実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 1 * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日の午前 0 時に 1 回実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\"\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スケジュールされた実行時刻のないジョブを作成します。"]}]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":" *    *    *    *    *\n -    -    -    -    -\n |    |    |    |    |\n |    |    |    |    +----- day of week (0 - 6) (Sunday=0)\n |    |    |    +---------- month (1 - 12)\n |    |    +--------------- day of month (1 - 31)\n |    +-------------------- hour (0 - 23)\n +------------------------- min (0 - 59)\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次の名前付きエントリを使用できます:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Day of Week: sun, mon, tue, wed, thu, fri, sat."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Month: jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["各フィールド間には単一のスペースが必要です。各フィールドの値は、次のもので構成できます:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"fixed-table"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"35%","data-label":"フィールド値"},"children":["フィールド値 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"20%","data-label":"例"},"children":["例 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"45%","data-label":"例の説明"},"children":["例の説明 "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["各フィールドに対して上記で表示された制限内の単一の値。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["フィールドに基づく制限がないことを示すワイルドカード"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*'"]},"。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日の午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["範囲 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2-5'"]}," ","フィールドの許可される値の範囲を示します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1-10 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日から 10 日までの午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["カンマ区切りの値のリスト ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2,3,4,5'"]}," ","フィールドの許可される値のリストを示します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 1,11,21 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日、11 日、21 日の午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["周期性インジケータ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*/5'"]}," ","フィールドの有効な値の範囲に基づいて、"," ","スケジュールが実行を許可される頻度を表現します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'30 */2 1 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日、00:30 から 2 時間ごとに実行するようにスケジュールを設定します。"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 */5 * *'"]}," は、毎月 5 日から 5 日ごとに午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*'"]}," ","ワイルドカードを除く上記の"," ","いずれかのカンマ区切りリストもサポートされています"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2,*/5,8-10'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 5,*/10,25 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 5 日、10 日、20 日、25 日の午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["(オプション) Delay execution を有効にすることで、クエリの開始時刻を遅延させることができます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クエリを実行する","__idx":15},"children":["クエリを実行する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリに名前を付けて保存して実行するか、単にクエリを実行します。クエリが正常に完了すると、クエリ結果は指定された宛先に自動的にエクスポートされます。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定エラーにより継続的に失敗するスケジュールジョブは、複数回通知された後、システム側で無効化される場合があります。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["(オプション) Delay execution を有効にすることで、クエリの開始時刻を遅延させることができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"audience-studio-で-segment-をアクティベートする-1","__idx":16},"children":["Audience Studio で Segment をアクティベートする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Audience Studio で activation を作成することで、segment データをターゲットプラットフォームに送信することもできます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Audience Studio"]}," に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["parent segment を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ターゲット segment を開き、右クリックして、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Activation"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Details"]}," パネルで、Activation 名を入力し、前述の Configuration Parameters のセクションに従って activation を設定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Output Mapping"]}," パネルで activation 出力をカスタマイズします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/ouput.b2c7f1d909c4f98ed10f5300df858a4b19f71a3b0834df952f5fb24018a5ea78.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Attribute Columns",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export All Columns"]}," を選択すると、変更を加えずにすべての列をエクスポートできます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," を選択して、エクスポート用の特定の列を追加します。Output Column Name には、Source 列名と同じ名前があらかじめ入力されます。Output Column Name を更新できます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," を選択し続けて、activation 出力用の新しい列を追加します。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String Builder",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add string"]}," を選択して、エクスポート用の文字列を作成します。次の値から選択します:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String: 任意の値を選択します。テキストを使用してカスタム値を作成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Timestamp: エクスポートの日時。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Id: segment ID 番号。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Name: segment 名。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience Id: parent segment 番号。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," を設定します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/snippet-output-connector-on-audience-studio-2024-08-28.a99525173709da1eb537f839019fa7876ffae95045154c8f2941b030022f792c.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["スケジュールを定義する値を選択し、オプションでメール通知を含めます。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["batch journey の activation を作成する必要がある場合は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/journey-orchestration/batch/creating-a-batch-journey-activation"},"children":["Creating a Batch Journey Activation"]}," を参照してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"workflowでエクスポート結果を設定する-オプション","__idx":17},"children":["Workflowでエクスポート結果を設定する (オプション)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure ワークフロー内で、データコネクタを使用してデータをエクスポートすることを指定できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tools/cli-and-sdks/api#workflow-commands"},"children":["TD Toolbeltを使用してワークフローでデータをエクスポートする"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Static List用のWorkflow設定サンプル"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"timezone: UTC\n_export:\n  td:\n    database:\n     sample_datasets\n\n+td-result-into-target:\n  td>: queries/sample.sql\n  result_connection: airship  result_settings:\n    list_name: 'td uploaded list'    list_description: 'ios and android channels'\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Attributes Update用のWorkflow設定サンプル"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"timezone: UTC\n_export:\n  td:\n   database: sample_datasets\n\n+td-result-into-target:\n  td>: queries/sample.sql\n  result_connection: airship\n  result_settings:\n    data_type: non_json_attributes\n    non_json_target: named_users\n    non_json_action: batch_csv\n    skip_invalid_nonjson_att: true\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"custom-events用のworkflow設定サンプル","__idx":18},"children":["Custom Events用のWorkflow設定サンプル"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"timezone: UTC\n\n_export:\n  td:\n    database: sample_datasets\n\n+td-result-into-target:\n  td>: queries/sample.sql\n  result_connection: airship\n  result_settings:\n    data_type: custom_events\n    json_composer_custom_events: true\n    skip_invalid_custom_events: true\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cliによるエクスポートの実行-オプション","__idx":19},"children":["CLIによるエクスポートの実行 (オプション)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/airship-export-integration-cli"},"children":["Airship Export Integration CLI"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"関連項目","__idx":20},"children":["関連項目"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Airship APIドキュメント:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.airship.com/api/ua/?openapi=http#operation-api-named_users-named_user_id-attributes-post"},"children":["Set or remove attributes on Named Users"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.airship.com/api/ua/?openapi=http#operation-api-channels-attributes-post"},"children":["Set or remove attributes on channels"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.airship.com/api/ua/?openapi=http#operation-api-attribute-lists-list_name-csv-put"},"children":["Upload Attribute list"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.airship.com/guides/messaging/user-guide/audience/segmentation/attributes/setting/"},"children":["Setting attributes guide"]}]}]}]},"headings":[{"value":"Airship Export Integration","id":"airship-export-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"Treasure Data Integration の静的 IP アドレス","id":"treasure-data-integration-の静的-ip-アドレス","depth":2},{"value":"制限事項","id":"制限事項","depth":2},{"value":"新しい認証の作成","id":"新しい認証の作成","depth":2},{"value":"データ接続でエクスポート結果を設定する","id":"データ接続でエクスポート結果を設定する","depth":2},{"value":"Airship Audience Listsに静的リストをアップロードする","id":"airship-audience-listsに静的リストをアップロードする","depth":3},{"value":"Airshipのテキスト、数値、日時属性に値を同期する","id":"airshipのテキスト数値日時属性に値を同期する","depth":3},{"value":"Airship上のJSON属性に値を同期する","id":"airship上のjson属性に値を同期する","depth":3},{"value":"カスタムイベントをAirshipに同期","id":"カスタムイベントをairshipに同期","depth":3},{"value":"Audience Studio で Segment をアクティベートする","id":"audience-studio-で-segment-をアクティベートする","depth":2},{"value":"クエリエクスポートジョブのスケジュール設定 (オプション)","id":"クエリエクスポートジョブのスケジュール設定-オプション","depth":2},{"value":"(オプション) Query Export ジョブをスケジュールする","id":"オプション-query-export-ジョブをスケジュールする","depth":3},{"value":"Treasure コンソール を使用してジョブをスケジュールする","id":"treasure-コンソール-を使用してジョブをスケジュールする","depth":4},{"value":"Custom cron... の詳細","id":"custom-cron-の詳細","depth":4},{"value":"クエリを実行する","id":"クエリを実行する","depth":3},{"value":"Audience Studio で Segment をアクティベートする","id":"audience-studio-で-segment-をアクティベートする-1","depth":2},{"value":"Workflowでエクスポート結果を設定する (オプション)","id":"workflowでエクスポート結果を設定する-オプション","depth":2},{"value":"Custom Events用のWorkflow設定サンプル","id":"custom-events用のworkflow設定サンプル","depth":3},{"value":"CLIによるエクスポートの実行 (オプション)","id":"cliによるエクスポートの実行-オプション","depth":2},{"value":"関連項目","id":"関連項目","depth":2}],"frontmatter":{"seo":{"title":"Airship Export Integration","description":"Treasure AIのクエリ結果をAirshipのオーディエンスリストに直接エクスポートし、特定のユーザーをターゲティングするための統合ガイドです。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/airship-export-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}