{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Google DFP DoubleClick for PublishersでProfiles APIを使用する","description":"Treasure AIのProfiles APIを使用してGoogle DFPで広告セグメントを管理する方法を解説します。セグメント設定、トークン作成、DFPとの連携手順を詳しく説明します。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]},"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":"google-dfp-doubleclick-for-publishersでprofiles-apiを使用する","__idx":0},"children":["Google DFP DoubleClick for PublishersでProfiles APIを使用する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure DataのProfiles APIトークンをGoogle DFP(DoubleClick for Publishers)と統合できます。この統合により、広告主はTreasure Dataで定義したセグメントに広告を掲載できます。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers#prerequisites"},"children":["前提条件"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers#create-the-profiles-api-token"},"children":["Profiles APIトークンの作成"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers#name-your-new-token"},"children":["新しいトークンに名前を付ける"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers#configure-the-token"},"children":["トークンの設定"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers#add-segments-to-the-token"},"children":["トークンへのセグメント追加"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers#integrating-the-profiles-api-token-with-google-dfp"},"children":["Profiles APIトークンとGoogle DFPの統合"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers#configure-google-dfp-for-use-with-the-profiles-api-token"},"children":["Profiles APIトークンで使用するGoogle DFPの設定"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers#create-javascript-dfp-and-treasure-data-tags"},"children":["JavaScript DFPとTreasure Dataタグの作成"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["JavaScriptとHTMLの基本知識"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataの基本知識"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data JavaScript SDKの基本知識"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data Profiles APIトークンの基本知識"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google DFP(DoubleClick for Publishers)の基本知識"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"profiles-apiトークンの作成","__idx":2},"children":["Profiles APIトークンの作成"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"新しいトークンに名前を付ける","__idx":3},"children":["新しいトークンに名前を付ける"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience Studioに移動してセグメントを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["フォルダーを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["新規作成を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Profiles APIトークンを選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/profileapitoken.bea076622b597c1a6dceff6cf17281c185891e4c46a25d693ec373a3e691613c.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["トークンの名前を入力し、オプションで説明を入力します。次へを選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"トークンの設定","__idx":4},"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":["ルックアップキー"]},"を入力します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ルックアップキーは、ペアレントセグメント内の一意の値を持つカラムです。このルックアップキーは正しいプロファイルを識別します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/note.767ca0ca6d076817a978148fbb7dd2a68ca7d067ced0ff61bfb3be582d0426d9.cf3845cb.png","alt":"Note"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["注:"]}," ルックアップキーの更新は、トークンワークフローが完了すると有効になります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td_global_id"]},"をルックアップキーとして使用する場合、Profiles APIはAPIリクエストのクエリパラメータではなく、ブラウザのCookieからルックアップ値を取得します。ブラウザ外でのテストまたは検証の目的(例: Postman)では、異なるカラムを使用してルックアップ値を手動で渡してください。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["(オプション)最大5つの属性を入力します。"," ","プロファイル属性は、クエリ時にプロファイルトークンから返すことができます"]}]},{"$$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":"li","attributes":{},"children":["作成を選択してトークンを設定します。(後でセグメントを追加することもできます。)"]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"トークンへのセグメント追加","__idx":5},"children":["トークンへのセグメント追加"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["以下のいずれかを選択します:"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["トークンの設定後、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["次へ"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience Studio > フォルダー > Profiles APIトークンに移動します。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Profiles APIトークンにセグメントを追加します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["保存"]},"を選択します。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"profiles-apiトークンとgoogle-dfpの統合","__idx":6},"children":["Profiles APIトークンとGoogle DFPの統合"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Profiles APIトークンとGoogle DFPを統合するには、以下のセクションの手順を完了してください:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers#h1_1644201065"},"children":["前提条件"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers#h1__441927612"},"children":["Profiles APIトークンの作成"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers#UsetheProfilesAPIwithGoogleDFPDoubleClickforPublishers-NameYourNewToken"},"children":["新しいトークンに名前を付ける"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers#UsetheProfilesAPIwithGoogleDFPDoubleClickforPublishers-ConfiguretheToken"},"children":["トークンの設定"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers#UsetheProfilesAPIwithGoogleDFPDoubleClickforPublishers-AddSegmentstotheToken"},"children":["トークンへのセグメント追加"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers#h1__115221623"},"children":["Profiles APIトークンとGoogle DFPの統合"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers#h2__631907321"},"children":["Profiles APIトークンで使用するGoogle DFPの設定"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers#h2_1416520366"},"children":["JavaScript DFPとTreasure Dataタグの作成"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"profiles-apiトークンで使用するgoogle-dfpの設定","__idx":7},"children":["Profiles APIトークンで使用するGoogle DFPの設定"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Webブラウザで、Google DFPに移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Inventory"]}," >",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Key-values"]},"に移動します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190817-005708.9caf71ecf421c74fe5ce429e2d969ff9de4c37c2c0936972a00f69651f6be527.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["New Keyを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["NameとDisplay nameフィールドを入力します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190817-005818.47386a6b5f18be7aba01eaa7dfd69765c3c421ea75e84a5e2004e5debc278637.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Add Valuesを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["すべてのTreasure DataセグメントIDを1行ずつリストします。例: 257, 258, 259。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190817-005915.1e9c6c7dbf16602d95d6248f7891e7a0d52ea4ab6d3a656320430d6d7c29491f.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Applyを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["オプションで、特定のセグメントIDにDisplay nameを追加します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190817-010000.34f47caab6ff96b4c23acceef14349d2b83dc28c006960bc2d3ed585735e4263.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Inventory"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Ad units"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Ad Unitを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["CodeとNameフィールドを入力します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190817-010148.7813a892ab085eda685d31b6eaa986e2ee70563add103d2af256a5d16ed7a925.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":12},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Saveを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Delivery > Ordersを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["New Orderを選択して新しいオーダーを作成します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190817-010418.dd6184319971de6160b9f1bd3e1a172f8481832223dc44d1d1f46ccfb0023363.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["フィールドを編集します。例: Name、Advertiser、Start time、End time、Quantity、Rate。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190817-010509.30703d5f0a3c29b020335f94a845d2c7aee61202cda51e19a85543b2a6fbff52.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["下にスクロールしてKey-valuesセクションを見つけます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["作成したKey-valueを指定します。例: td_kv_wp。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190817-010551.c63e2dc0750e6c64133a436e5f7398a84b706d9596adaf3102b12ecc815f98c6.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["作成したセグメントIDのリストを選択します。例:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190817-010637.6b9f71e14a56400e8a4479389b1823ab6cc45a0934af15b6c4d0d4a4d9672c8e.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Inventoryを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["作成した広告ユニットを選択します。例: td-dfp-test-ad。オーダーオブジェクトが作成されます。例:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190817-010727.db4a563ca99cc444be07e8ec62ba752f631472c9610bc84c5f5661e4ec0f0557.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Delivery > Line itemsに移動してクリエイティブを登録します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Add Creativesを選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190817-010829.2bd49e3936f50d4b9779bbe0bdfbded30e260a0c94484b7a818d0e11fcb415a7.cf3845cb.png","alt":""},"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/image-20190817-010915.c175a1bf871cd9d93255f50dfeb722878c4814b4ae105dff5635d1e8d226affa.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["NameとDestinationを指定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クリエイティブ用の画像ファイルをアップロードします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Destinationを指定します。例: https://www.treasuredata.com/。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191204-022437.44adf1069dd7bbe5307f06fc5bff8d42bc39dbdf04d6425bff485a8806ba0096.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"javascript-dfpとtreasure-dataタグの作成","__idx":8},"children":["JavaScript DFPとTreasure Dataタグの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google DFPのJavaScriptタグを生成するには:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Webブラウザで、Google DFPに移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Inventory > Ad unitsに移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Generate Tagsを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["作成した広告ユニットを選択します。例: td-dfp-test-ad。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190817-011046.27d2ee6034adbc0fd6bde98673dafa8f18413424e92946eb779581b9140b2809.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Tag TypeとしてGoogle Publisher Tagを選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190817-011142.727e1f8bc6d676624dc1e1d465236ca05364172fc0d14b1be75266b4de9bb595.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Continueを選択します。HTMLヘッダーとボディ用のJavaScriptタグが生成されます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191209-221112.81199d3a270674952c0267b946f3465606f1541dc2e8efbb7b6efd2f6db374b4.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["作業を保存します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["DFPタグとTreasure Data JavaScriptタグを組み合わせるには:"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure Data JavaScriptとDFPタグを組み合わせたいファイルを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["googletag.pubads().setTargeting()関数を呼び出して、Treasure DataのセグメントIDをGoogle DFPに渡します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["たとえば、以下のHTMLには、DFP JavaScriptタグとTD JavaScriptタグ間の統合コードが含まれています。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"html","header":{"controls":{"copy":{}}},"source":"<!-- Header Script Tag: Start-->\n<script>\nvar googletag = googletag || {};\ngoogletag.cmd = googletag.cmd || [];\n\nvar td = new Treasure({...})\nvar successCallback = function (values) {\n  var segIdAll = [];\n  for (var i = 0; i < values.length; i++) {\n    segIdAll = segIdAll.concat(values[i].values);\n  };\n  var segId = segIdAll.filter(function (x,i,self) {return self.indexOf(x) === i;});\n  console.log(JSON.stringify(segId));\n  googletag.cmd.push(function() {\n    googletag.defineSlot('/YOUR_NUMBER_/td-dfp-test-ad', [200, 200], 'div-gpt-ad-YOUR-XYZ-0').addService(googletag.pubads());\n    googletag.pubads().enableSingleRequest();\n    googletag.pubads().setTargeting('td_kv_wp',segId);\n    googletag.enableServices();\n    googletag.cmd.push(function() { googletag.display('div-gpt-ad-XYZ-0')});\n  });\n};\nvar errorCallback = function (error) { console.log(err); };\n\ntd.fetchUserSegments({\n  audienceToken: ['YOUR_PROFILES_API_TOKEN_1', 'YOUR_PROFILES_API_TOKEN_2'],\n  keys: {\n    key_column_1: 'someValue',\n    key_column_2: 'someOtherValue',\n  }\n}, successCallback, errorCallback)\n\n</script>\n<!-- Header Script Tag: End -->\n</head>\n\n<title>Web Profiles API</title>\n<body>\n<b>Hello Treasure Data!</b>\n\n<!-- DFP Body Tag: Start -->\n<div id='div-gpt-ad-YOUR-XYZ-0' style='height:200px; width:200px;'></div>\n<!-- DFP Body Tag: End -->\n\n</body>\n</html>\n","lang":"html"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["テストするには、上記のHTMLにアクセスして結果を確認します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191204-022522.638a506e9fb9031144c9f8d5ceeb325c05a08c460d82e5b2e2b31d3e79f0afd8.cf3845cb.png","alt":""},"children":[]}]}]},"headings":[{"value":"Google DFP DoubleClick for PublishersでProfiles APIを使用する","id":"google-dfp-doubleclick-for-publishersでprofiles-apiを使用する","depth":1},{"value":"前提条件","id":"前提条件","depth":1},{"value":"Profiles APIトークンの作成","id":"profiles-apiトークンの作成","depth":1},{"value":"新しいトークンに名前を付ける","id":"新しいトークンに名前を付ける","depth":2},{"value":"トークンの設定","id":"トークンの設定","depth":2},{"value":"トークンへのセグメント追加","id":"トークンへのセグメント追加","depth":2},{"value":"Profiles APIトークンとGoogle DFPの統合","id":"profiles-apiトークンとgoogle-dfpの統合","depth":1},{"value":"Profiles APIトークンで使用するGoogle DFPの設定","id":"profiles-apiトークンで使用するgoogle-dfpの設定","depth":2},{"value":"JavaScript DFPとTreasure Dataタグの作成","id":"javascript-dfpとtreasure-dataタグの作成","depth":2}],"frontmatter":{"seo":{"title":"Google DFP DoubleClick for PublishersでProfiles APIを使用する","description":"Treasure AIのProfiles APIを使用してGoogle DFPで広告セグメントを管理する方法を解説します。セグメント設定、トークン作成、DFPとの連携手順を詳しく説明します。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/audience-studio/profiles/use-the-profiles-api-with-google-dfp-doubleclick-for-publishers","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}