{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["partial","tabs","tab","admonition"]},"type":"markdown"},"seo":{"title":"Shopify Import Custom Query 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-custom-query-integration-v2","__idx":0},"children":["Shopify Import Custom Query Integration V2"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Shopify Import Connector V2—カスタムクエリは、ShopifyのGraphQL Admin APIと連携し、ユーザーが独自の必要なクエリを定義できるように設計されています。Shopify Import Integration V2で以前実装された機能を引き続き開発します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"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":["4種類のクエリをサポート："]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリ - 複数形のオブジェクトからの通常クエリ"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリ - 単数形のオブジェクトからの通常クエリ（idなどの必須フィールドによるフィルタが必要）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["複数形のNODESを使用したクエリ"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["単数形のNODEを使用したクエリ"]}]},{"$$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":["Metafieldインポートの制限",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品ごとに最大250個のmetafield"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品バリアントごとに最大250個のmetafield"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Product Variantsのインポートは、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":"パラメータ"},"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":[{"$$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 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":"パラメータ"},"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 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/screenshot-2025-05-06-at-13.27.54.44a6e83a7378638f2f5f2c2f736373c846ea1e278ef39ecfd801bb4608e3afd4.41035e72.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":["Product"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Product Variants"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Meta Fields"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Custom Query"]}]},{"$$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":["Custom data filter field"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データフィルタに使用するタイムスタンプを選択します。Custom Queryソースでは、定義されたカスタムクエリで{{date_filter}}を使用してデータをフィルタすることをサポートしています：",{"$$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":["Custom Query"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ユーザー独自のカスタムクエリを設計します。2つのプレースホルダーオプションを使用できます：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["{{incremental_filter}}"]},":"]},"** カスタムクエリで使用して増分を使用します（必須）。開始日と終了日を入力します（オプション）。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{ products(first: 250, query: \"{{incremental_filter}}\") { pageInfo { hasNextPage  endCursor } .... } }\n"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["{{date_filter}}:"]}]}," カスタムクエリで使用して日付フィルタを使用します（オプション）。開始日と終了日を入力します（オプション）。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{ products(first: 250, query: \"{{date_filter}}\") { pageInfo { hasNextPageendCursor } .... } }\n"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["注意："]}," カスタムクエリでページネーションを使用する場合は、カスタムクエリに追加してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"pageInfo {hasNextPageendCursor }\n"},"children":[]}]}]}]}]}]}]}]},{"$$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":"img","attributes":{"src":"/assets/screenshot-2025-05-06-at-13.46.15.7052b5e417d51ffd1e1d8602a21c89a49c88d50b63521022d86774165e33483f.41035e72.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":["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":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Schema Settings"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スキーマはサンプルデータから推測されました。PREVIEWとRUNの前にタイプと形式を変更できます。"]}]}]}]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["注意："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["JSONフィールドのトップレベル1のみをサポートします。JSONオブジェクトのキーと値のペアの解析はサポートしていません。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データを取得するには、JSONフィールドをstringからJSONデータタイプに変更することを忘れないでください。通常、推測されたフィールドデータタイプはstringです。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["必要がない場合は、フィールド名を変更しないでください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["カスタムクエリで何かを変更した後は、スキーマ設定を再度確認して編集する必要があります。"]}]}]}]},{"$$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":"ワークフロー経由でshopifyレポートをインポートする","__idx":15},"children":["ワークフロー経由で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":"cli-toolbelt-を使用した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: custom_query\n  store_name: xxxxxxx\n  from_date: '2024-12-31T17:00:00.000Z'\n  incremental_field: created_at\n  incremental: true\n  query: |\n    {\n      products(first: 10, query: \"{{incremental_filter}}\") {\n        pageInfo {\n            hasNextPage\n            endCursor\n          }\n          edges {\n            node {\n              id\n              title\n              productType\n              createdAt\n              ...\n            }\n          }\n        }\n    }\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: custom_query\n  store_name: xxxxxxx\n  from_date: '2024-12-31T17:00:00.000Z'\n  incremental_field: created_at\n  incremental: true\n  query: |\n    {\n      products(first: 10, query: \"{{incremental_filter}}\") {\n        pageInfo {\n            hasNextPage\n            endCursor\n          }\n          edges {\n            node {\n              id\n              title\n              productType\n              createdAt\n              ...\n            }\n          }\n        }\n    }\nout:\n  mode: replace\n","lang":"yaml"},"children":[]}]}]},{"$$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":"名前"},"children":["名前"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"値"},"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":["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":["はい"]}]},{"$$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":["いいえ"]}]},{"$$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":["はい（",{"$$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":["はい（",{"$$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":["はい（",{"$$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":"code","attributes":{},"children":["\"custom_query\""]}]},{"$$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":"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":["はい"]}]}]},{"$$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":["いいえ"]}]},{"$$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":"code","attributes":{},"children":["\"created_at\""]}," または ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"updated_at\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["created_at"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["いいえ"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["date_filter_field"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["定義されたカスタムクエリで ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{{date_filter}}"]}," を使用してデータをフィルタリングするために使用するタイムスタンプ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"created_at\""]}," または ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"updated_at\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["created_at"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["いいえ"]}]},{"$$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":["いいえ"]}]},{"$$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":["いいえ"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["query"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ユーザー独自に設計したカスタムクエリ。2つのプレースホルダーオプションが使用できます:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{{incremental_filter}}"]},": カスタムクエリで増分を使用するために使用します（必須）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{{date_filter}}"]},": カスタムクエリで日付フィルタを使用するために使用します（オプション）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["注意:"]}," カスタムクエリでページネーションを使用する場合は、カスタムクエリに追加してください。"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["はい"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データを推測するには、"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:guess"]}," ","コマンドを使用します。(最初にguessを使用してスキーマを推測し、\"columns\"プロパティで期待通りにスキーマを変更する必要があります)。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ td connector:guess guess.yml\n","lang":"bash"},"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: custom_query\n  store_name: xxxxxxx\n  from_date: '2024-12-31T17:00:00.000Z'\n  incremental_field: created_at\n  incremental: true\n  query: |\n    {\n      products(first: 10, query: \"{{incremental_filter}}\") {\n        pageInfo {\n            hasNextPage\n            endCursor\n          }\n          edges {\n            node {\n              id\n              title\n              productType\n              createdAt\n              ...\n              ...\n              ...\n            }\n          }\n        }\n    }\nout:\n  mode: replace\n","lang":"yaml"},"children":[]},{"$$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のストレージは時間で分割されているため、--time-columnオプションを指定することをお勧めします(",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-partitioning-in-treasure-data"},"children":["データパーティショニング"]},"を参照)。このオプションが指定されていない場合、データコネクタは最初の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コマンドは、データベース(td_sample_db)とテーブル(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":["モード"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]},{"$$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":["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のストレージは時間で分割されているため、--time-columnオプションを指定することもお勧めします(",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-partitioning-in-treasure-data"},"children":["データパーティショニング"]},"を参照)。"]},{"$$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パラメータは、@hourly、@daily、@monthlyの3つの特別なオプションも受け入れます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デフォルトでは、スケジュールはUTCタイムゾーンで設定されます。-tまたは--timezoneオプションを使用して、タイムゾーンでスケジュールを設定できます。--timezoneオプションは、Asia/Tokyo、America/Los_Angelesなどの拡張タイムゾーン形式のみをサポートします。PST、CSTなどのタイムゾーン略語はサポートされておらず、予期しないスケジュールになる可能性があります。"]}]},"headings":[{"value":"Shopify Import Custom Query Integration V2","id":"shopify-import-custom-query-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":"ワークフロー経由でShopifyレポートをインポートする","id":"ワークフロー経由でshopifyレポートをインポートする","depth":2},{"value":"ソースを使用する","id":"ソースを使用する","depth":3},{"value":".ymlファイルを使用する","id":"ymlファイルを使用する","depth":3},{"value":"サンプルワークフローコード","id":"サンプルワークフローコード","depth":4},{"value":"CLI (Toolbelt) を使用したShopifyからのインポート","id":"cli-toolbelt-を使用した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 Custom Query Integration V2"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/shopify-import-custom-query-integration-v2","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}