{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["partial","tabs","tab","admonition"]},"type":"markdown"},"seo":{"title":"Shopify Import Integration V2","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"shopify-import-integration-v2","__idx":0},"children":["Shopify Import Integration V2"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Shopify Import Connector V2は、ShopifyのGraphQL Admin APIで動作するように特別に設計されたShopifyコネクタの新しいバージョンです。このバージョンは、Shopifyが複数のREST APIエンドポイント（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/products"]},"と",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/variants"]},"を含む）を廃止し、GraphQLの対応するエンドポイントに置き換えることに対応して開発されました。その結果、継続的な機能性と将来の互換性を確保するために、API廃止の影響を受けるリソースのデータインポートを処理するこのV2コネクタを開発しました。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["V2コネクタは、以前はREST APIで管理されていた次のインポート操作を特別に処理します:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品データインポート",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["基本的な製品情報"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品バリアント"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品ステータスと可視性設定"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品オプションとバリアント設定"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品バリアントデータインポート",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["バリアント固有の属性"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["SKU情報"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["価格詳細"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["在庫追跡情報"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["メタフィールドインポート",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品メタフィールド"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品バリアントメタフィールド"]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次の場合はV1バージョンのコネクタを引き続き使用してください:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["在庫レベルインポート"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["在庫アイテムインポート"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ロケーションデータインポート"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["コレクションメタフィールドインポート"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品画像メタフィールドインポート"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["V2の範囲にリストされていない他のリソースタイプ"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ただし、次の場合はV2コネクタを使用してください:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品データのインポート"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品バリアントデータのインポート"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品メタフィールドのインポート"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品バリアントメタフィールドのインポート"]}]},{"$$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":["Shopifyの基本知識"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"必要なapiスコープ","__idx":2},"children":["必要なAPIスコープ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Shopifyアプリを設定する際は、インポートするターゲットに応じて以下のAPIスコープが付与されていることを確認してください。"]},{"$$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":"Target"},"children":["Target"]},{"$$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":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["products"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["read_products"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["product_variants"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["read_products"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["read_inventory"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["read_translations"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["meta_fields"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["read_products"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["custom_query"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クエリで参照されているすべてのShopify Admin APIリソースに対応する",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["read_*"]},"スコープが必要です。たとえば、製品と在庫レベルを読み取るクエリには、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["read_products"]},"と",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["read_inventory"]},"の両方が必要です。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://shopify.dev/docs/api/usage/access-scopes"},"children":["Shopify APIアクセススコープ"]},"を参照してください。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"要件と制限事項","__idx":3},"children":["要件と制限事項"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["メタフィールドインポートの制限",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品ごとに最大250個のメタフィールド"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品バリアントごとに最大250個のメタフィールド"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品バリアントインポートは、created_atタイムスタンプによる増分読み込みをサポートしなくなりました。updated_atタイムスタンプによる読み込みのみをサポートします。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-data-integration-の静的-ip-アドレス","__idx":4},"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":"treasure-コンソール経由でshopifyレポートをインポート","__idx":5},"children":["Treasure コンソール経由でShopifyレポートをインポート"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"認証の作成","__idx":6},"children":["認証の作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["最初のステップは、資格情報のセットで新しい認証を作成することです。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Catalog"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/integrationshub-catalog2.e33c0a4c7d81c40cc83dd056c2143b97b1406220e213cab14ef349d69412ffef.eedebb45.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["CatalogでShopifyを検索し、アイコンの上にマウスを置いて",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Authentication"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/shopifyi1.4f504665b75eb5d2d1b5f353f6a747aa3f7c1b5d2e55c08b2da6278ecd120a7b.fdf07543.png","alt":""},"children":[]}," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/shopifyi2.63ac6cca8a3716b1317b6e19b72e58c952551c47e5b05c6eac4063d4d346b6a2.fdf07543.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Credentials"]},"タブが選択されていることを確認してから、統合の資格情報を入力します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20260318-191500.a79b3b0325aad6fd06372f8d3cf2b4d0cfbab8161891cb02456e16925d0784c3.fdf07543.png","alt":""},"children":[]}," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20260318-191519.0555658164ec12cf7d03b38e544c9d47949037c8af58bdfa4d26b54e1d38d2e4.fdf07543.png","alt":""},"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":"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":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Store name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Shopifyストアのストア識別子。これは2つの形式で入力できます:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["完全なストアURL: 例 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://mountbaker.myshopify.com"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ストア名のみ: 例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mountbaker"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ストア名のみを使用している場合は、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".myshopify.com"]},"ドメインなしのストアの一意の識別子である必要があります。"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Auth method"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["使用する認証方法を選択します:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Static Token"]}," — 2026年1月1日以前に作成されたレガシーアプリの永続的なAdmin APIアクセストークンを使用します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client Credentials"]}," — Shopify Dev DashboardによってサポートされるClient IDとClient Secretを使用します（2026年1月1日以降に作成された新しいアプリに必要）。"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Admin API access token"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["（Auth methodがStatic Tokenの場合に必須）"]}," ShopifyのAdmin APIで認証するために使用される永続的なアクセストークン。このトークンは、Shopify管理パネルの",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Apps > Develop apps > Create an app > Configure Admin API scopes"]},"から生成できます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Client ID"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["（Auth methodがClient Credentialsの場合に必須）"]}," アプリのShopify Dev DashboardによってサポートされるClient ID。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Client Secret"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["（Auth methodがClient Credentialsの場合に必須）"]}," アプリのShopify Dev DashboardによってサポートされるClient Secret。"]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["認証の名前を入力し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ソースの作成","__idx":7},"children":["ソースの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証がコンソールで利用可能になった後、インポートジョブを設定します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Hub > Authentications"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Shopify認証を見つけて",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Source"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"接続の作成","__idx":8},"children":["接続の作成"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Transfer Nameフィールドにソース名を入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択します。"]}]},{"$$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 Transfer Name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["転送の名前を入力します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Authentication"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["このフィールドには、Shopifyとの接続に使用される認証の名前が含まれます。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ソーステーブルの識別","__idx":9},"children":["ソーステーブルの識別"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ソーステーブルのフィールドを設定します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/shopify1.00e4b17b4ab59809b279b9ef36404abe622b914f74831fa36e488eea8c7459cb.fdf07543.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":"Field"},"children":["Field"]},{"$$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":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Source"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次のShopifyオブジェクトを含むドロップダウンメニュー:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["products"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["product_variants"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["meta_fields"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Shopifyストアからインポートしたいデータを含むShopifyオブジェクトを選択します。"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Incremental?"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["有効にすると、コネクタは最後のインポート実行以降の新しいまたは更新されたデータのみをインポートし、後続のインポートをより効率的にします。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Incremental field"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["増分読み込みに使用するタイムスタンプを選択します:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["created_at — 作成日で製品をフィルタリングします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["updated_at — 最終変更日で製品をフィルタリングします。"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Start date"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データをエクスポートする開始タイムスタンプ（形式: dd/mm/yyyy, hh:mm）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["End date"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データのエクスポートを終了する終了タイムスタンプ（形式: dd/mm/yyyy, hh:mm）。空のままにすると、終了日は現在時刻になります。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Include image?"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["有効にすると、製品画像データがレスポンスに含まれます。これによりクエリコストが増加することに注意してください。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Resource"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["メタフィールドのリソースタイプを指定するには",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["product"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Objects"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["メタフィールドのオブジェクトタイプを選択します:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["product : 製品に関連付けられたメタフィールドを取得します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["product variant : 製品バリアントに関連付けられたメタフィールドを取得します。"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Product ID"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このフィールドは必須です。メタフィールドを取得したい製品IDのカンマ区切りリストを入力します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["product variantが選択されている場合、フィールド名はVariant IDに変わります。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"データ設定の定義","__idx":10},"children":["データ設定の定義"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","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":"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":["Retry Limit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["インポートが失敗するまでの再試行回数。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Initial retry time wait in millis"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["再試行前に待機する初期時間（ミリ秒）。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Max retry wait in millis"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["再試行前に待機する最大時間（ミリ秒）。"]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-preview","__idx":11},"children":["Data Preview"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インポートを実行する前に、Generate Preview を選択してデータの",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/integration-hub/batch/import/previewing-your-source-data"},"children":["プレビュー"]},"を表示できます。Data preview はオプションであり、選択した場合はダイアログの次のページに安全にスキップできます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Data Preview ページが開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データをプレビューする場合は、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Generate Preview"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データを確認します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-placement","__idx":12},"children":["Data Placement"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データの配置について、データを配置したいターゲット database と table を選択し、インポートを実行する頻度を指定します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Storage の下で、インポートされたデータを配置する新しい database を作成するか、既存の database を選択し、新しい table を作成するか、既存の table を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Database"]}," を選択 > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select an existing"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create New Database"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、database 名を入力します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Table"]}," を選択 > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select an existing"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create New Table"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、table 名を入力します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データをインポートする方法を選択します。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Append"]}," (デフォルト) - データインポートの結果は table に追加されます。"," ","table が存在しない場合は作成されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Always Replace"]}," - 既存の table の全体の内容をクエリの結果出力で置き換えます。table が存在しない場合は、新しい table が作成されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Replace on New Data"]}," - 新しいデータがある場合のみ、既存の table の全体の内容をクエリの結果出力で置き換えます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timestamp-based Partition Key"]}," 列を選択します。"," ","デフォルトキーとは異なるパーティションキーシードを設定したい場合は、long または timestamp 列をパーティショニング時刻として指定できます。デフォルトの時刻列として、add_time フィルターで upload_time を使用します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データストレージの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timezone"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," の下で、このクエリを実行するタイミングと頻度を選択できます。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"一度だけ実行","__idx":13},"children":["一度だけ実行"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Off"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scheduling Timezone"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run Now"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"定期的に繰り返す","__idx":14},"children":["定期的に繰り返す"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["On"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," を選択します。UI では、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@monthly"]},"、またはカスタム ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["cron"]}," の 4 つのオプションが提供されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Delay Transfer"]}," を選択して、実行時間の遅延を追加することもできます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scheduling Timezone"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run Now"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["転送が実行された後、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Databases"]}," で転送の結果を確認できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"workflow経由でshopifyレポートからインポート","__idx":15},"children":["Workflow経由でShopifyレポートからインポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td_load>: src_idを使用してワークフロー経由でShopifyレポートからデータをインポートできます。すでにソースを作成している場合は実行できます。ソースを作成したくない場合は、.ymlファイルを使用してインポートできます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ソースを使用","__idx":16},"children":["ソースを使用"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub > Sources"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["画面の右端にあるFiltersペインで、Integration Typeドロップダウンメニューを使用して",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Shopify V2"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Sourcesペインで、使用したいソースを含む行を特定し、その行のmoreドロップダウンメニュー（•••アイコン）を使用して",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Copy Unique ID"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/26617502.09d9b84b0f1f752c7c95b0bc1c2d8e8b7302e5b91c6a3cb5f01309dadf53a604.25ec5a77.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ワークフロータスクを定義し、td_load>:にステップ3でコピーしたIDを使用します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+load:\n   td_load>: unique_id_of_your_source\n   database: ${td.dest_db}\n   table: ${td.dest_table}\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ワークフローを実行します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ymlファイルを使用","__idx":17},"children":[".ymlファイルを使用"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[".ymlファイルを特定します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[".ymlファイルを作成する必要がある場合は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/amazon-s3-import-integration-v2#AmazonS3ImportIntegrationv2-CreateSeedConfigFile(seed.yml)"},"children":["Create Seed Config File (seed.yml)"]},"にある手順を参照してください。"," ","2. ワークフロータスクを定義し、td_load>:に.ymlファイルを指定します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+load:\n   td_load>: config/daily_load.yml\n   database: ${td.dest_db}\n   table: ${td.dest_table}\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ワークフローを実行します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"サンプルワークフローコード","__idx":18},"children":["サンプルワークフローコード"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["サンプルワークフローコードについては、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/treasure-data/treasure-boxes/tree/master/td_load/s3"},"children":["Treasure Boxes"]},"をご覧ください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"clitoolbelt経由でshopifyからインポート","__idx":19},"children":["CLI（Toolbelt）経由でShopifyからインポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["統合を設定する前に、最新バージョンの",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]},"をインストールしてください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ロードファイルの準備","__idx":20},"children":["ロードファイルの準備"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"Static Token (Legacy)","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n   type: shopify_v2\n   admin_api_access_token: xxxxxxxx\n   target: products\n   store_name: xxxxxxx\n   from_date: '2024-12-31T17:00:00.000Z'\n   incremental_field: created_at\nout:\n   mode: replace\n","lang":"yaml"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Client Credentials (OAuth)","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n   type: shopify_v2\n   auth_method: CLIENT_CREDENTIALS\n   client_id: xxxxxxxx\n   client_secret: xxxxxxxx\n   target: products\n   store_name: xxxxxxx\n   from_date: '2024-12-31T17:00:00.000Z'\n   incremental_field: created_at\nout:\n   mode: replace\n","lang":"yaml"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この例では、Shopify Productオブジェクトのリストを取得します。from_dateは、データの取得を開始する日付を指定します。この場合、インポートは2024年12月31日17:00からデータのプルを開始します。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"認証方法"},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Static Token"]},": 2026年1月1日以前に作成されたレガシーカスタムアプリには",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["admin_api_access_token"]},"を使用します。これがデフォルトです（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["auth_method"]},"のデフォルトは",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["STATIC_TOKEN"]},"）。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client Credentials"]},": 2026年1月1日以降、Shopifyはレガシーカスタムアプリによる永続的なトークンの作成を許可しなくなりました。新しいアプリは、Shopify Dev DashboardからのClient IDとClient Secretと共に",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["auth_method: CLIENT_CREDENTIALS"]},"を使用する必要があります。トークンはコネクタによって自動的に更新されます。"]}]}]},{"$$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":"Name"},"children":["Name"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Default Value"},"children":["Default Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["インポートのソース。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"shopify_v2\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["auth_method"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["使用する認証方法。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String。次のいずれか:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"STATIC_TOKEN\""]}," — 永続的なAdmin APIアクセストークンを使用します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"CLIENT_CREDENTIALS\""]}," — Client IDとClient Secretを使用します（OAuth 2.0 Client Credentials Grant）。"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"STATIC_TOKEN\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["admin_api_access_token"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ShopifyのAdmin APIで認証するために使用される永続的なアクセストークン。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["auth_method"]},"が",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["STATIC_TOKEN"]},"の場合に必須。このトークンは、Shopify管理パネルの",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Apps > Develop apps > Create an app > Configure Admin API scopes"]},"から生成できます。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["auth_method"]},"が",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["STATIC_TOKEN"]},"の場合）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Shopify Dev DashboardによってサポートされるClient ID。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["auth_method"]},"が",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CLIENT_CREDENTIALS"]},"の場合に必須。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["auth_method"]},"が",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CLIENT_CREDENTIALS"]},"の場合）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_secret"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Shopify Dev DashboardによってサポートされるClient Secret。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["auth_method"]},"が",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CLIENT_CREDENTIALS"]},"の場合に必須。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["auth_method"]},"が",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CLIENT_CREDENTIALS"]},"の場合）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["target"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データを収集するソース"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String。有効なターゲット:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["products"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["product_variants"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["meta_fields"]}]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["store_name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Shopifyストアのストア識別子。これは2つの形式で入力できます:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["完全なストアURL: 例 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://mountbaker.myshopify.com"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ストア名のみ: 例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mountbaker"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ストア名のみを使用している場合は、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".myshopify.com"]},"ドメインなしのストアの一意の識別子である必要があります。"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Yes"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["incremental"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["レポートをグループ化するメトリクスのリスト。許可される値はレポートタイプによって異なります。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["incremental_field"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["増分読み込みに使用するタイムスタンプ。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["created_at"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["start_date"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データをエクスポートする開始タイムスタンプ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String。形式: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["yyyy-MM-dd'T'HH:mm:ss.SS'Z'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["end_date"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データのエクスポートを終了する終了タイムスタンプ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String。形式: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["yyyy-MM-dd'T'HH:mm:ss.SS'Z'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["metafield_resource"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["メタフィールドのターゲット"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String。値は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"product\""]}," になります。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes（ターゲットが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["meta_fields"]}," の場合）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["metafield_object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["メタフィールドオブジェクト"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String。値は次のいずれかです:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["product"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["product_variant"]}]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes（ターゲットが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["meta_fields"]}," の場合）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["product_ids"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["メタフィールドを取得したい製品IDのカンマ区切りリスト"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String。例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"gid://shopify/Product/8472042950, gid://shopify/Product/8472044230\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes（metafield_objectが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["product"]}," の場合）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["product_variant_ids"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["メタフィールドを取得したい製品バリアントIDのカンマ区切りリスト"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String。例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"gid://shopify/ProductVariant/28753686918, gid://shopify/ProductVariant/28753705670\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes（metafield_objectが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["product_variant"]}," の場合）"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データをプレビューするには、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:preview"]},"コマンドを使用します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"td connector:preview load.yml\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ロードジョブの実行","__idx":21},"children":["ロードジョブの実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データのサイズによっては数時間かかる場合があります。データを保存するTreasure Dataデータベースとテーブルを必ず指定してください。"," ","Treasure Dataのストレージは時間でパーティション化されているため、Treasure Dataでは--time-columnオプションを指定することも推奨しています（",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-partitioning-in-treasure-data"},"children":["data partitioning"]},"を参照）。このオプションが提供されていない場合、データコネクタは最初のlongまたはtimestamp列をパーティション化時間として選択します。--time-columnで指定する列のタイプは、longおよびtimestampタイプのいずれかである必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データに時間列がない場合は、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["add_time"]},"フィルターオプションを使用して時間列を追加できます。詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/add_time-filter-function"},"children":["add_time Filter Function"]},"のドキュメントを参照してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table --time-column created_at\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["connector:issueコマンドは、すでにdatabase(td_sample_db)とtable(td_sample_table)を作成していることを前提としています。データベースまたはテーブルがTDに存在しない場合、このコマンドは失敗します。データベースとテーブルを手動で作成するか、td connector:issueコマンドで--auto-create-tableオプションを使用してデータベースとテーブルを自動作成してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table--time-column created_at --auto-create-table\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データコネクタはサーバー側でレコードをソートしません。時間ベースのパーティション化を効果的に使用するには、事前にファイル内のレコードをソートしてください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["timeというフィールドがある場合は、--time-columnオプションを指定する必要はありません。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"インポートモード","__idx":22},"children":["インポートモード"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["load.ymlファイルのout:セクションでファイルインポートモードを指定します。out:セクションは、Treasure Dataテーブルへのデータのインポート方法を制御します。たとえば、データを追加するか、既存のテーブルのデータを置き換えるかを選択できます。"]},{"$$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":"strong","attributes":{},"children":["Mode"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Examples"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Append"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["レコードはターゲットテーブルに追加されます。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  ...\nout:\n  mode: append\n","lang":"yaml"},"children":[]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Always Replace"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ターゲットテーブルのデータを置き換えます。ターゲットテーブルに加えられた手動スキーマ変更はそのまま残ります。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  ...\nout:\n  mode: replace\n","lang":"yaml"},"children":[]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Replace on new data"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["インポートする新しいデータがある場合にのみ、ターゲットテーブルのデータを置き換えます。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  ...\nout:\n  mode: replace_on_new_data\n","lang":"yaml"},"children":[]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"実行のスケジューリング","__idx":23},"children":["実行のスケジューリング"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["増分ファイルインポートのために定期的なデータコネクタの実行をスケジュールできます。Treasure Dataスケジューラーは、高可用性を確保するために最適化されています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["スケジュールされたインポートの場合、指定されたプレフィックスと次の条件のいずれかに一致するすべてのファイルをインポートできます:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["use_modified_timeが無効になっている場合、次の実行のために最後のパスが保存されます。2回目以降の実行では、統合はアルファベット順で最後のパスの後に来るファイルのみをインポートします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["それ以外の場合、ジョブが実行された時刻が次の実行のために保存されます。2回目以降の実行では、コネクタはその実行時刻以降にアルファベット順で変更されたファイルのみをインポートします。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"td-toolbeltを使用してスケジュールを作成","__idx":24},"children":["TD Toolbeltを使用してスケジュールを作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:createコマンドを使用して新しいスケジュールを作成できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:create daily_import \"10 0 * * *\" td_sample_db td_sample_table load.yml\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataのストレージは時間でパーティション化されているため、Treasure Dataでは--time-columnオプションを指定することも推奨しています（",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-partitioning-in-treasure-data"},"children":["data partitioning"]},"を参照）。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:create daily_import \"10 0 * * *\" td_sample_db td_sample_table load.yml --time-column created_at\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["cronパラメータは、3つの特別なオプション: @hourly、@daily、および@monthlyも受け入れます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デフォルトでは、スケジュールはUTCタイムゾーンで設定されます。-tまたは--timezoneオプションを使用して、タイムゾーンでスケジュールを設定できます。--timezoneオプションは、Asia/Tokyo、America/Los_Angelesなどの拡張タイムゾーン形式のみをサポートします。PST、CSTなどのタイムゾーンの略語はサポートされておらず、予期しないスケジュールになる可能性があります。"]}]},"headings":[{"value":"Shopify Import Integration V2","id":"shopify-import-integration-v2","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"必要なAPIスコープ","id":"必要なapiスコープ","depth":2},{"value":"要件と制限事項","id":"要件と制限事項","depth":2},{"value":"Treasure Data Integration の静的 IP アドレス","id":"treasure-data-integration-の静的-ip-アドレス","depth":2},{"value":"Treasure コンソール経由でShopifyレポートをインポート","id":"treasure-コンソール経由でshopifyレポートをインポート","depth":2},{"value":"認証の作成","id":"認証の作成","depth":3},{"value":"ソースの作成","id":"ソースの作成","depth":3},{"value":"接続の作成","id":"接続の作成","depth":3},{"value":"ソーステーブルの識別","id":"ソーステーブルの識別","depth":3},{"value":"データ設定の定義","id":"データ設定の定義","depth":3},{"value":"Data Preview","id":"data-preview","depth":3},{"value":"Data Placement","id":"data-placement","depth":3},{"value":"一度だけ実行","id":"一度だけ実行","depth":4},{"value":"定期的に繰り返す","id":"定期的に繰り返す","depth":4},{"value":"Workflow経由でShopifyレポートからインポート","id":"workflow経由でshopifyレポートからインポート","depth":2},{"value":"ソースを使用","id":"ソースを使用","depth":3},{"value":".ymlファイルを使用","id":"ymlファイルを使用","depth":3},{"value":"サンプルワークフローコード","id":"サンプルワークフローコード","depth":4},{"value":"CLI（Toolbelt）経由でShopifyからインポート","id":"clitoolbelt経由でshopifyからインポート","depth":2},{"value":"ロードファイルの準備","id":"ロードファイルの準備","depth":3},{"value":"ロードジョブの実行","id":"ロードジョブの実行","depth":3},{"value":"インポートモード","id":"インポートモード","depth":3},{"value":"実行のスケジューリング","id":"実行のスケジューリング","depth":3},{"value":"TD Toolbeltを使用してスケジュールを作成","id":"td-toolbeltを使用してスケジュールを作成","depth":3}],"frontmatter":{"seo":{"title":"Shopify Import Integration V2"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/shopify-import-integration-v2","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}