{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"The Trade Desk Export Integration","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":"the-trade-desk-export-integration","__idx":0},"children":["The Trade Desk Export Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataからジョブの結果をThe Trade Deskに直接書き込むことができます。The Trade Deskでは、各DSPターゲティングセグメントに広告を配信できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]},"を含むTreasure Dataの基本知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The Trade Deskのアカウント"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The Trade DeskへのTreasure アカウントアクセスの承認"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"制限事項","__idx":2},"children":["制限事項"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Trade Desk Export Integrationは個人識別情報(PII)データをサポートしていません。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"インテグレーション概要","__idx":3},"children":["インテグレーション概要"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このインテグレーションは2つのパートで構成されています:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The Trade Desk DMPとTreasure Data CDP間のCookie同期"]}," — これはThe Trade Desk DMP IDとTreasure DataのIDであるtd_global_id間のマッピングを作成するために必要です。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure Data CPDからThe Trade Desk DMPへのデータエクスポート"]}," — Cookie同期時に作成されたマッピングに基づいて、Treasure DataのIDは、自身のIDをキーとしたセグメントをThe Trade Desk DMPをキーとしたセグメントに変換します。その後、Treasure Dataの出力データコネクタを使用して、変換されたセグメントデータをThe Trade Deskアカウントにエクスポートできます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The Trade DeskとTreasure Data間のCookie同期"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/trade-desk-integration.39f65762f4f5a83713aa583e6ca314a1e694e6f42e666d2d4d5e263438f457cb.7f5c9654.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure DataからThe Trade Deskへのデータ転送"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/ttddataxfer.139600ac80280f4591a0d02797e91707aa19cd5d20a96abb3aeb3eaa74ec9be9.7f5c9654.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cookie同期タグの実装","__idx":4},"children":["Cookie同期タグの実装"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["まず、前のセクションで説明し、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/enabling-cross-domain-tracking-with-javascript-sdk"},"children":["JavaScriptSDKを使用したクロスドメイントラッキング"]},"に記載されているように、Treasure DataのJavaScriptタグtd_global_idを設定する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["TTD Syncタグは各リージョンごとに提供されます。アクセスすると、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://in.treasuredata.com/postback/v3/event/ttd/sync?td_format=pixel&td_write_key=%%TTD_PUID%%&td_global_id=td_global_id&td_ip=td_ip&ttd_id=%%TTD_TDID%%&td_ua=td_ua"]},"にリダイレクトされます。これは",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ttd"]},"(DB)",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sync"]},"(テーブル)に保存されます。お客様はタグを実装する前にこれらを作成する必要があります。TD Write APIKEYはURLエンコードする必要があります。/を%2Fに変更してください。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["USリージョン: https://match.adsrvr.org/track/cmf/generic?ttd_pid=01qhnrr&ttd_tpi=1&ttd_puid={TD Write API KEYを貼り付けてください}"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["EU01リージョン: https://match.adsrvr.org/track/cmf/generic?ttd_pid=996ppa1&ttd_tpi=1&ttd_puid={TD Write API KEYを貼り付けてください}"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Tokyoリージョン: https://match.adsrvr.org/track/cmf/generic?ttd_pid=6nh6mgj&ttd_tpi=1&ttd_puid={TD Write API KEYを貼り付けてください}"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Trade Desk DMPのタグがすでにインストールされているWebサイトに、以下のようなコードを追加します。以下のコードはEU01リージョンの例です。要件に基づいてコードを更新してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"html","header":{"controls":{"copy":{}}},"source":"<script type=\"text/javascript\">\n!function(t,e){if(void 0===e[t]){e[t]=function(){e[t].clients.push(this),this._init=[Array.prototype.slice.call(arguments)]},e[t].clients=[];for(var r=[\"addRecord\",\"blockEvents\",\"fetchServerCookie\",\"fetchGlobalID\",\"fetchUserSegments\",\"resetUUID\",\"ready\",\"setSignedMode\",\"setAnonymousMode\",\"set\",\"trackEvent\",\"trackPageview\",\"trackClicks\",\"unblockEvents\"],s=0;s<r.length;s++){var c=r[s];e[t].prototype[c]=function(t){return function(){return this[\"_\"+t]=this[\"_\"+t]||[],this[\"_\"+t].push(Array.prototype.slice.call(arguments)),this}}(c)}var n=document.createElement(\"script\");n.type=\"text/javascript\",n.async=!0,n.src=(\"https:\"===document.location.protocol?\"https:\":\"http:\")+\"//cdn.treasuredata.com/sdk/4.0/td.min.js\";var o=document.getElementsByTagName(\"script\")[0];o.parentNode.insertBefore(n,o)}}(\"Treasure\",this);\n\nfunction createIframe(iframeSrc) {\n  var gdpr = false;\n  var gdpr_consent = '';\n\n  // The parameter value provides information about vendor consent.\n  // iframe not necessary but a recommendation given by The Trade Desk\n  var iframe = document.createElement('iframe');\n  iframe.src = iframeSrc;\n  iframe.height = 1;\n  iframe.width = 1;\n  iframe.style.border = 'none';\n  document.body.appendChild(iframe);\n\n  function loadPixel(pixelSrc) {\n    var pixel = document.createElement('img');\n    pixel.src = pixelSrc;\n    pixel.width = 1;\n    pixel.height = 1;\n    pixel.style.display = 'none';\n    iframe.contentWindow.document.body.appendChild(pixel);\n  }\n\n  // new TTD URL\n  var ttd_url = 'https://match.adsrvr.org/track/cmf/generic?';\n  var params = [\n    'ttd_pid=996ppa1',\n    'ttd_tpi=1',\n    'ttd_puid=' + 'your td api key',\n    `gdpr=${gdpr ? 1 : 0}`,\n    `gdpr_consent=${gdpr ? gdpr_consent : ''}`,\n    `domain=${(window != window.parent) ? (new URL(document.referrer).hostname) : window.location.host}`\n  ];\n  loadPixel(ttd_url + params.join('&'));\n}\n\nvar iframeSrc = 'about:blank';\nvar td = new Treasure({\n  host: 'eu01.in.treasuredata.com',\n  writeKey: 'your td api key',\n  database: '{{name}}_ttd', // db where you will store pageviews\n  startInSignedMode: true,\n  trackCrossDomain: true,\n  cdpHost: 'cdp-eu01.in.treasuredata.com'\n});\nvar tbl = 'sync';\ntd.setSignedMode();\ntd.set('$global', 'td_global_id', 'td_global_id');\ntd.trackPageview(tbl, createIframe(iframeSrc));\n</script>\n","lang":"html"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソールを使用した接続の作成","__idx":5},"children":["Treasure コンソールを使用した接続の作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソールを使用して接続を構成できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"the-trade-deskでの作業-secret-keyの取得","__idx":6},"children":["The Trade Deskでの作業: Secret Keyの取得"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Your Advertiser > Preferences"]},"に移動し、スクロールダウンして",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Secret Key"]},"を取得してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/ttd_advertiser_pref.9cd11bf875f9a1d64b3e98413e570d333b0e0721c545c31e7c2d34c2bf56c183.7f5c9654.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"treasure-dataでの作業-新しい接続の作成","__idx":7},"children":["Treasure Dataでの作業: 新しい接続の作成"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールから、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integration Hub"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Catalog"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The Trade Desk"]},"出力コネクタを検索して選択します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/tradedeskoutput.9a703415a16009d454fe7e47c9a8d7b03d10d4ee5b4a1585afa37dd8f19ca476.7f5c9654.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Authentication"]},"を選択します。"," ","New Authenticationダイアログが開きます。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/tradedeskauthdialog2.2e6573bbefd15353cc941478944c0d93b9dd499e682694eb51110489ae0cccde.7f5c9654.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The Trade Deskから取得したSecret Keyを入力し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["接続の名前を入力します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/tradedesknewauthb.1c83a3cb0dcb352f1b606312d0876c7ef00c89eb9f6f015a6d45062a4b51db64.7f5c9654.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Trade Desk出力コネクタが作成されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"データ接続でのエクスポート結果の構成","__idx":8},"children":["データ接続でのエクスポート結果の構成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このステップでは、クエリを作成または再利用します。クエリでは、データ接続を構成します。場合によっては、クエリでカラムマッピングを定義する必要があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"パラメータを指定した接続の構成","__idx":9},"children":["パラメータを指定した接続の構成"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールにアクセスし、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench > Queries"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データのエクスポートに使用するクエリを見つけて選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリエディタの上部にある",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export Results"]},"を選択します。"," ","Choose Integrationダイアログが表示されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["検索ボックスにThe Trade Desk接続名を入力してフィルタリングし、接続を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["パラメータを指定します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["パラメータ"]},":"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Advertiser ID"]},"(必須): あなたのAdvertiser IDです。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select host name"]},"(必須): キャンペーンのターゲットユーザーの場所に最も近いホスト名を使用してください。デフォルト: TOK(Tokyo)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Recency targeting"]},"(オプション): ターゲットオーディエンスの対象となるユーザーにタグが付けられるUTCタイムスタンプです。このフィールドを省略すると、The Trade Deskがデータを処理するとすぐにユーザーがセグメントに追加されたとみなされます。または、ユーザーがデータセグメントの対象となる日時を指定できます。UTCでタイムスタンプを指定してください。形式は yyyy-MM-dd HH:mm です。MMは月(分ではない)を表し、HHは24時間(12時間ではない)を表します。デフォルト: 空白"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data remains active in a duration of"]},"(必須): Recency targetingを基準として、ユーザーがアクティブなまま保持される期間を指定します。期間が経過すると、データはターゲティングに使用されなくなります。Time-to-live(TTL)を分単位で指定してください。時間は259200分(180日)を超えることはできません。推奨される最小時間は2880分(48時間)です。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Max records per batch request"]},"(オプション): 各バッチでアップロードするレコードの最大数です。デフォルト: 5000"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Sleep Per API request in Milliseconds"]},"(オプション): システムが各リクエストでスリープする時間をミリ秒単位で指定します。デフォルト: 2000(2秒に相当)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Retry Limit"]},"(オプション): システムが諦めるまでのリトライ回数です。デフォルト: 7"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"サンプル構成は以下の通りです","__idx":10},"children":["サンプル構成は以下の通りです:"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"the-trade-deskにデータを送信するクエリの例","__idx":11},"children":["The Trade Deskにデータを送信するクエリの例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataから、以下のクエリを実行し、The Trade Desk接続に結果を出力します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["TDIDのクエリ例"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT id AS tdid,\nname AS dataname\nFROM your_table;\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["DAIDのクエリ例"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT id AS daid,\nname AS dataname\nFROM your_table;\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["UID2のクエリ例"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT id AS uid2,\nname AS dataname\nFROM your_table;\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["RampIDのクエリ例"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT id AS rampid,\nname AS dataname\nFROM your_table;\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"オプション-query-export-ジョブをスケジュールする","__idx":12},"children":["(オプション) Query Export ジョブをスケジュールする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Scheduled Jobs と Result Export を使用して、指定したターゲット宛先に出力結果を定期的に書き込むことができます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data のスケジューラー機能は、高可用性を実現するために定期的なクエリ実行をサポートしています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["2 つの仕様が競合するスケジュール仕様を提供する場合、より頻繁に実行するよう要求する仕様が優先され、もう一方のスケジュール仕様は無視されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例えば、cron スケジュールが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1 * 1'"]}," の場合、「月の日」の仕様と「週の曜日」が矛盾します。前者の仕様は毎月 1 日の午前 0 時 (00:00) に実行することを要求し、後者の仕様は毎週月曜日の午前 0 時 (00:00) に実行することを要求するためです。後者の仕様が優先されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"treasure-コンソール-を使用してジョブをスケジュールする","__idx":13},"children":["Treasure コンソール を使用してジョブをスケジュールする"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench > Queries"]}," に移動します"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいクエリを作成するか、既存のクエリを選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," の横にある None を選択します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-28-51.f1b242f6ecc7666a0097fdf37edd1682786ec11ef80eff68c66f091bc405c371.0f87d8d4.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ドロップダウンで、次のスケジュールオプションのいずれかを選択します:"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-29-47.45289a1c99256f125f4d887e501e204ed61f02223fde0927af5f425a89ace0c0.0f87d8d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"ドロップダウン値"},"children":["ドロップダウン値"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Custom cron..."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#custom-cron-details"},"children":["Custom cron... の詳細"]},"を参照してください。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["@daily (midnight)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["指定されたタイムゾーンで 1 日 1 回午前 0 時 (00:00 am) に実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["@hourly (:00)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎時 00 分に実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スケジュールなし。"]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"custom-cron-の詳細","__idx":14},"children":["Custom cron... の詳細"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-30-23.0f94a8aa5f75ea03e3fec0c25b0640cd59ee48d1804a83701e5f2372deae466c.0f87d8d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cron 値"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 * * * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1 時間に 1 回実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 * * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1 日 1 回午前 0 時に実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 1 * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日の午前 0 時に 1 回実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\"\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スケジュールされた実行時刻のないジョブを作成します。"]}]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":" *    *    *    *    *\n -    -    -    -    -\n |    |    |    |    |\n |    |    |    |    +----- day of week (0 - 6) (Sunday=0)\n |    |    |    +---------- month (1 - 12)\n |    |    +--------------- day of month (1 - 31)\n |    +-------------------- hour (0 - 23)\n +------------------------- min (0 - 59)\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次の名前付きエントリを使用できます:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Day of Week: sun, mon, tue, wed, thu, fri, sat."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Month: jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["各フィールド間には単一のスペースが必要です。各フィールドの値は、次のもので構成できます:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"fixed-table"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"35%","data-label":"フィールド値"},"children":["フィールド値 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"20%","data-label":"例"},"children":["例 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"45%","data-label":"例の説明"},"children":["例の説明 "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["各フィールドに対して上記で表示された制限内の単一の値。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["フィールドに基づく制限がないことを示すワイルドカード"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*'"]},"。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日の午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["範囲 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2-5'"]}," ","フィールドの許可される値の範囲を示します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1-10 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日から 10 日までの午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["カンマ区切りの値のリスト ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2,3,4,5'"]}," ","フィールドの許可される値のリストを示します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 1,11,21 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日、11 日、21 日の午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["周期性インジケータ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*/5'"]}," ","フィールドの有効な値の範囲に基づいて、"," ","スケジュールが実行を許可される頻度を表現します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'30 */2 1 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日、00:30 から 2 時間ごとに実行するようにスケジュールを設定します。"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 */5 * *'"]}," は、毎月 5 日から 5 日ごとに午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*'"]}," ","ワイルドカードを除く上記の"," ","いずれかのカンマ区切りリストもサポートされています"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2,*/5,8-10'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 5,*/10,25 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 5 日、10 日、20 日、25 日の午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["(オプション) Delay execution を有効にすることで、クエリの開始時刻を遅延させることができます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クエリを実行する","__idx":15},"children":["クエリを実行する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリに名前を付けて保存して実行するか、単にクエリを実行します。クエリが正常に完了すると、クエリ結果は指定された宛先に自動的にエクスポートされます。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定エラーにより継続的に失敗するスケジュールジョブは、複数回通知された後、システム側で無効化される場合があります。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["(オプション) Delay execution を有効にすることで、クエリの開始時刻を遅延させることができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"audience-studio-で-segment-をアクティベートする","__idx":16},"children":["Audience Studio で Segment をアクティベートする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Audience Studio で activation を作成することで、segment データをターゲットプラットフォームに送信することもできます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Audience Studio"]}," に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["parent segment を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ターゲット segment を開き、右クリックして、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Activation"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Details"]}," パネルで、Activation 名を入力し、前述の Configuration Parameters のセクションに従って activation を設定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Output Mapping"]}," パネルで activation 出力をカスタマイズします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/ouput.b2c7f1d909c4f98ed10f5300df858a4b19f71a3b0834df952f5fb24018a5ea78.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Attribute Columns",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export All Columns"]}," を選択すると、変更を加えずにすべての列をエクスポートできます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," を選択して、エクスポート用の特定の列を追加します。Output Column Name には、Source 列名と同じ名前があらかじめ入力されます。Output Column Name を更新できます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," を選択し続けて、activation 出力用の新しい列を追加します。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String Builder",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add string"]}," を選択して、エクスポート用の文字列を作成します。次の値から選択します:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String: 任意の値を選択します。テキストを使用してカスタム値を作成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Timestamp: エクスポートの日時。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Id: segment ID 番号。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Name: segment 名。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience Id: parent segment 番号。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," を設定します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/snippet-output-connector-on-audience-studio-2024-08-28.a99525173709da1eb537f839019fa7876ffae95045154c8f2941b030022f792c.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["スケジュールを定義する値を選択し、オプションでメール通知を含めます。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["batch journey の activation を作成する必要がある場合は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/journey-orchestration/batch/creating-a-batch-journey-activation"},"children":["Creating a Batch Journey Activation"]}," を参照してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ワークフローでのエクスポート結果の構成オプション","__idx":17},"children":["ワークフローでのエクスポート結果の構成(オプション)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure ワークフロー内で、このデータコネクターを使用してデータを出力するように指定できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"timezone: UTC\n\n_export:\n  td:\n    database: sample_datasets\n\n+td-result-into-target:\n  td>: queries/sample.sql\n  result_connection: your_connections_name\n  result_settings:\n    secret_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n    advertiser_id: xxxxxx\n    data_activation_duration: 43200\n    ....\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データをエクスポートするには、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/using-integrations-to-import-data-with-td-workflows"},"children":["Workflowでデータコネクターを使用する方法の情報"]},"を確認してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"td-toolbeltとthe-trade-desk接続の使用","__idx":18},"children":["TD ToolbeltとThe Trade Desk接続の使用"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CLIからTD Toolbeltを使用して、The Trade Deskにエクスポートできます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["TDIDの例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n  --result '{\n    \"type\": \"thetradedesk\",\n    \"secret_key\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n    \"advertiser_id\": xxxxxx,\n    \"data_activation_duration\": 43200\n  }' \\\n  -d sample_datasets \\\n  \"SELECT tdid, dataname FROM (\n     VALUES\n       ('d46a3975-c267-404e-89ae-0a9ff0cdce5f', 'demo-segment'),\n       ('244d97ec-c258-4359-ae80-c67bf92bd294', 'demo-segment'),\n       ('f749cd45-c6e2-4a82-87fe-afb7d2cd1188', 'demo-segment')\n   ) AS tbl (tdid, dataname)\" \\\n  -T presto\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["DAIDの例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ td query --result '{\"type\":\"thetradedesk\",\"secret_key\":\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\"advertiser_id\":xxxxxx,\"data_activation_duration\":43200}' -d sample_datasets \"SELECT daid, dataname FROM (\n VALUES ('d46a3975-c267-404e-89ae-0a9ff0cdce5f','demo-segment'),\n ('244d97ec-c258-4359-ae80-c67bf92bd294','demo-segment'),\n ('f749cd45-c6e2-4a82-87fe-afb7d2cd1188','demo-segment')\n) tbl (daid, dataname)\" -T presto\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["DAIDの例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n  --result '{\n    \"type\": \"thetradedesk\",\n    \"secret_key\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n    \"advertiser_id\": xxxxxx,\n    \"data_activation_duration\": 43200\n  }' \\\n  -d sample_datasets \\\n  \"SELECT daid, dataname FROM (\n     VALUES\n       ('d46a3975-c267-404e-89ae-0a9ff0cdce5f', 'demo-segment'),\n       ('244d97ec-c258-4359-ae80-c67bf92bd294', 'demo-segment'),\n       ('f749cd45-c6e2-4a82-87fe-afb7d2cd1188', 'demo-segment')\n   ) AS tbl (daid, dataname)\" \\\n  -T presto\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["RampIDの例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n  --result '{\n    \"type\": \"thetradedesk\",\n    \"secret_key\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n    \"advertiser_id\": xxxxxx,\n    \"data_activation_duration\": 43200\n  }' \\\n  -d sample_datasets \\\n  \"SELECT rampid, dataname FROM (\n     VALUES\n       ('XY1005wXyWPB1SgpMUKIpzA0I3UaLEz-2lg0wFAr1PWK7FMhs', 'demo-segment'),\n       ('XY1005wXyWPB1SgpMUKIpzA0I3UaLEz-2lg0wFAr1PWK7FMhs', 'demo-segment'),\n       ('XY1005wXyWPB1SgpMUKIpzA0I3UaLEz-2lg0wFAr1PWK7FMhs', 'demo-segment')\n   ) AS tbl (rampid, dataname)\" \\\n  -T presto\n","lang":"bash"},"children":[]}]},"headings":[{"value":"The Trade Desk Export Integration","id":"the-trade-desk-export-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"制限事項","id":"制限事項","depth":2},{"value":"インテグレーション概要","id":"インテグレーション概要","depth":2},{"value":"Cookie同期タグの実装","id":"cookie同期タグの実装","depth":2},{"value":"Treasure コンソールを使用した接続の作成","id":"treasure-コンソールを使用した接続の作成","depth":2},{"value":"The Trade Deskでの作業: Secret Keyの取得","id":"the-trade-deskでの作業-secret-keyの取得","depth":3},{"value":"Treasure Dataでの作業: 新しい接続の作成","id":"treasure-dataでの作業-新しい接続の作成","depth":3},{"value":"データ接続でのエクスポート結果の構成","id":"データ接続でのエクスポート結果の構成","depth":3},{"value":"パラメータを指定した接続の構成","id":"パラメータを指定した接続の構成","depth":3},{"value":"サンプル構成は以下の通りです:","id":"サンプル構成は以下の通りです","depth":3},{"value":"The Trade Deskにデータを送信するクエリの例","id":"the-trade-deskにデータを送信するクエリの例","depth":4},{"value":"(オプション) Query Export ジョブをスケジュールする","id":"オプション-query-export-ジョブをスケジュールする","depth":3},{"value":"Treasure コンソール を使用してジョブをスケジュールする","id":"treasure-コンソール-を使用してジョブをスケジュールする","depth":4},{"value":"Custom cron... の詳細","id":"custom-cron-の詳細","depth":4},{"value":"クエリを実行する","id":"クエリを実行する","depth":3},{"value":"Audience Studio で Segment をアクティベートする","id":"audience-studio-で-segment-をアクティベートする","depth":2},{"value":"ワークフローでのエクスポート結果の構成(オプション)","id":"ワークフローでのエクスポート結果の構成オプション","depth":2},{"value":"TD ToolbeltとThe Trade Desk接続の使用","id":"td-toolbeltとthe-trade-desk接続の使用","depth":2}],"frontmatter":{"seo":{"title":"The Trade Desk Export Integration"}},"lastModified":"2026-06-01T09:47:58.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/the-trade-desk-export-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}