{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Google AD Manager Via Data Transfer Reports Import Integration","description":"Google Ad Manager のデータを Treasure AI にインポートする手順と設定方法を詳しく解説。ネットワークコードの設定や認証方法を紹介します。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"google-ad-manager-via-data-transfer-reports-import-integration","__idx":0},"children":["Google AD Manager Via Data Transfer Reports Import Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Doubleclick for Publisher (DFP) のデータオブジェクトを Treasure Data にインポートできます。"]},{"$$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":["Google DFP の基礎知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["認証済みの Treasure Data Service Account から Google DFP アカウントへのアクセス"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-data-へのアクセス許可","__idx":2},"children":["Treasure Data へのアクセス許可"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data の DFP input connector は、Google DFP アカウントからデータを読み取るための権限が必要です。"," ","Google DFP コンソールから「Admin」テーブルをクリックし、「Global settings」を選択してから「All network settings」を選択すると、右側のパネルの「Service account user」セクションに service account user へのアクセスを許可するボタンが表示されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["弊社の service account email (google-dfp@affable-beach-161802.iam.gserviceaccount.com) へのアクセスを許可した後、以下の手順を実行してデータをインポートします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソール-の使用","__idx":3},"children":["Treasure コンソール の使用"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Integrations Hub > Catalog に移動し、Google Ad Manager via Data Transfer Reports for Import を検索して選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ダイアログが開きます。Google DFP コンソールで「Admin」>「Global settings」>「All network settings」>「Network code」をクリックすると確認できる DFP ネットワーク情報を入力します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-07-26-at-19.19.57.5c48407f83f8dc37f0ae3f82d019928b0bc907c8dac0ce8c875e87017a08d4b9.7be277cd.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"command-line--workflow-の使用","__idx":4},"children":["Command Line / Workflow の使用"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"設定ファイルの作成","__idx":5},"children":["設定ファイルの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の例に示すように、Google DFP アカウントのアクセス情報を含む設定ファイル (例: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["load.yml"]},") を準備します:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: google_dfp\n  target: order\n  network_code: 1234567\n  auth_method: SERVICE_ACCOUNT\n  start_date: 2017-01-02T12:00:00\n  end_date: 2017-11-10T10:00:00\nout:\n  mode: replace\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この例は、Google DFP の ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Order"]}," データオブジェクトをダンプします:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["target"]},": インポートする Google DFP データオブジェクト。",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["利用可能な ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["target"]}," のリストについては、付録を参照してください。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["network_code"]},": Google DFP ネットワークコード"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["auth_method"]},": Google service account による認証をサポート (必須、サポートされる値: SERVICE_ACCOUNT)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["start_date"]},": この日付からデータをインポート (オプション)、フォーマット: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["yyyy-MM-dd'T'hh:mm:ss"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["end_date"]},": この日付からデータをインポート (オプション)、フォーマット: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["yyyy-MM-dd'T'hh:mm:ss"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["start_date"]}," と ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["end_date"]}," は、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Order"]}," target で利用可能 (かつオプション) です。各 target で利用可能なすべてのオプションのリストについては、付録を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["利用可能な ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["out"]}," モードの詳細については、付録を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"append-デフォルト","__idx":6},"children":["append (デフォルト)"]},{"$$mdtype":"Tag","name":"p","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":"Heading","attributes":{"level":3,"id":"replace-td-01110-以降","__idx":7},"children":["replace (td 0.11.10 以降)"]},{"$$mdtype":"Tag","name":"p","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":"Heading","attributes":{"level":3,"id":"利用可能な-targets","__idx":8},"children":["利用可能な Targets"]},{"$$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":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Target"]}]},{"$$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":["company"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Company データオブジェクト"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["creative"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Creative データオブジェクト"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["inventory_adunit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Inventory AdUnit データオブジェクト"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["line_item"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Line Item データオブジェクト"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["order"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Order データオブジェクト"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["placement"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Placement データオブジェクト"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["report"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["保存されたレポートクエリを使用したレポート"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"利用可能な-target-オプション","__idx":9},"children":["利用可能な Target オプション"]},{"$$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  Options"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Target  Options"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"start_date"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["start_date"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"end_date"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["end_date"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"report_query"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["report_query"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"last_fetched_datetime"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["last_fetched_datetime"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["company"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["x"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["creative"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["x"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["inventory_adunit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["x"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["line_item"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["x"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["x"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["x"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["order"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["x"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["x"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["x"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["placement"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["x"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["report"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["x"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]}]}]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["start_date"]}," (オプション): この日付からデータをインポート (オプション)、フォーマット: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["yyyy-MM-dd'T'hh:mm:ss"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["end_date"]}," (オプション): この日付からデータをインポート (オプション)、フォーマット: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["yyyy-MM-dd'T'hh:mm:ss"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["report_query"]}," (必須): Google DFP コンソールで保存されたレポートクエリのクエリ名 (または ID)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["last_fetched_datetime"]}," (オプション): この日時以降 (これを含まない) に最終更新時刻があるデータのみをインポートします。この値は epoch ミリ秒形式です。例: '1509511116000' (2017年11月8日 15:33:20)"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"report-target","__idx":10},"children":["Report Target"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["report target は、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["report_query"]}," で指定されたクエリを実行してレポートを取得し、データをデータベースにインポートします。したがって、クエリは事前に弊社のシステムからアクセス可能である必要があります。「User able to edit」フィールドで、弊社の Google DFP service account email (",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://web.archive.org/web/20221208083905/mailto:google-dfp@affable-beach-161802.iam.gserviceaccount.com"},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["google-dfp@affable-beach-161802.iam.gserviceaccount.com"]}]},") にアクセスを許可できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["レポートクエリで使用している日付範囲に注意してください。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.google.com/ad-manager/api/reference/v201911/ReportService.DateRangeType?hl=th"},"children":["こちら"]},"から、Google API でサポートされている動的日付範囲のリストを確認できます。"]}]},"headings":[{"value":"Google AD Manager Via Data Transfer Reports Import Integration","id":"google-ad-manager-via-data-transfer-reports-import-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"Treasure Data へのアクセス許可","id":"treasure-data-へのアクセス許可","depth":2},{"value":"Treasure コンソール の使用","id":"treasure-コンソール-の使用","depth":2},{"value":"Command Line / Workflow の使用","id":"command-line--workflow-の使用","depth":2},{"value":"設定ファイルの作成","id":"設定ファイルの作成","depth":3},{"value":"append (デフォルト)","id":"append-デフォルト","depth":3},{"value":"replace (td 0.11.10 以降)","id":"replace-td-01110-以降","depth":3},{"value":"利用可能な Targets","id":"利用可能な-targets","depth":3},{"value":"利用可能な Target オプション","id":"利用可能な-target-オプション","depth":3},{"value":"Report Target","id":"report-target","depth":3}],"frontmatter":{"seo":{"title":"Google AD Manager Via Data Transfer Reports Import Integration","description":"Google Ad Manager のデータを Treasure AI にインポートする手順と設定方法を詳しく解説。ネットワークコードの設定や認証方法を紹介します。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/google-ad-manager-via-data-transfer-reports-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}