ファイルを取得しています
DTv2 の取り込みプロセスは DTv1 に似ていますが、いくつか重要なことが必要になります
  いくつかあります。
ファイルを処理しています
 DTv2 は、時間単位のファイル(インプレッション、クリック、リッチメディア)と日次ファイル(アクティビティ テーブルとマッチテーブル)を処理します。
時間単位のファイル(ファイル名に YYYYMMDDHH を含む)は UTC 時間で処理されます。日次ファイル(ファイル名に「YYYYMMDD」を含む)は、現地のレポート時刻に処理されます。
  ゾーン。ファイル名の形式を参照。現地時間と UTC のオフセットは、現在地によって異なります。
また、ファイルは個別に処理されるため、処理にかかる時間は状況によって異なります。一般的に、
  (たとえば、5 時間前の 6 時間前など)に処理を終了します。
  取り込み処理をファイルの順序に頼らないでください。処理が停滞する可能性があります。
イベントは、イベント時間に関連する、処理された前または後のファイルに表示されます。
  イベントは、必ずしも発生した時刻に処理されるわけではありません。
列の順序
ファイルを使用するメカニズムとして列の順序に依存しないでください。
Google では、処理の変更に対する復元力を確保する必要があります。追加の列をリクエストした場合
また、今後変更が行われると、レポートの列の順序や列の数が変わる可能性があります。
各ファイルのヘッダー行を読み取り、これをデータ ウェアハウスのフィールドにマッピングしてから、
データを書き込みます。
重複ファイル
同じ日時に重複するファイルが書き込まれることがあります。複数のファイルに
  同じ日付/時間のスタンプを使用します。ファイル名に基づいて、最新の分 / 秒のものを使用します。
  あります。バックエンド プロセスに問題があったと判断され、重複するファイルが作成される
  変換します
フィールド
フィールド名とフィールド名の形式がすべて変更されましたが、古い形式から新しい形式へのマッピングがあります。
  (利用可能な場合)は、マッチテーブルを含む DCM フィールドの移行時に適用されます。
  DBM ユーザーでない場合は空白になります。無視してかまいません。
また、ファイル内に DBM フィールドが表示される場合もあります。これらのフィールドは DBM ユーザーのみに入力されます
  広告主がリンクされている DBM 広告主レベルで関連する権限が付与されている場合。
新旧バージョン(利用可能な場合)の対応表については、DBM フィールドの移行をご覧ください。DBM エンティティ読み取りファイル
  マッピングには引き続き使用されます。
バケット名
DTv1 と DTv2 の命名規則は異なります。具体的には、
DTv2 バケット名を確認します。バケット名は、Cloud Storage バケットから
サポート担当者にお問い合わせください。
一般に、DTv2 バケット名は gs://dcdt_-dcm_account1234 のようになります。
ブラウザでバケットの内容を確認するには、
  https://cloud.google.com/console#/storage/browser/dcdt_-dcm_account1234
各ファイル名には数字の文字列が含まれます。例:
dcm_account1234_impression_2016022601_20160225_234912_218211994.csv.gz
2016022601 は YYYYMMDDHH 形式です。これは、その地域のイベントの UTC 時間です。
  (時間の番号は 0 ~ 23)になります。
20160225_234912 は YYYYMMDD_HHMMSS 形式です。レポートが作成された日時です。
  生成されます。
218211994 は、ファイル ID です。
アクティビティ ファイル
1 日に 1 つのアクティビティ ファイルが生成されます。ファイル名は次のようになります。
 dcm_account1234_activity_20160727_20160728_035750_268669761.csv.gz
このファイルには、2016 年 7 月 27 日のデータが含まれており、2016 年 7 月 28 日の 3:57:50 に生成されたものです。
[ファイル] をクリックします。
1 日に 24 個のクリック ファイルが生成されます。ファイル名は以下のようになります。
dcm_account1234_click_2016072717_20160728_012331_268381796.csv.gz
ファイル名の日付文字列の後の UTC 時間に注意してください。時間には 0 から 23 まで番号が振られているので、
  ここでの 17 は、このファイルのイベントが 17:00 から 17:59(24 時間制)または 5:00pm から 6:00pm であることを示します。
このファイルには、2016 年 7 月 27 日午後 5 時 00 分から午後 6 時 00 分までのデータが含まれ、1:23:31 に生成された
  2016 年 7 月 28 日
インプレッション ファイル
1 日に 24 個のインプレッション ファイルが生成されます。ファイル名は以下のようになります。
dcm_account7312_impression_2016072717_20160728_012355_268381795.csv.gz
ファイル名以外は、Click Files と同じように動作します。
マッチテーブル ファイル
マッチテーブル ファイルは 1 日に 1 回生成されます。ファイル名は次のようになります。
dcm_account1234_match_table_activity_cats_20160727_20160728_032226_268648829.csv.gz
  このファイルは、2016 年 7 月 27 日のデータで、2016 年 7 月 28 日 3:22:26 に生成されたものです。
注: 一部の新しいマッチテーブルでは、データが静的であり、毎日ダウンロード可能なファイルは作成されません。
リファレンス ページからこれらのファイルのデータを取得できます。たとえば、
Rich Media 標準イベントタイプ。
Data Transfer フィールド
  
    | 1.0 フィールド名 | 
    DT v2.0 フィールド名 | 
  
  
    | 時間 | 
    非推奨 | 
  
  
    | User-ID | 
    ユーザー ID | 
  
  
    | 広告主 ID | 
    広告主 ID | 
  
  
    | 購入 ID | 
    非推奨 | 
  
  
    | 注文 ID | 
    キャンペーン ID | 
  
  
    | 広告 ID | 
    広告 ID | 
  
  
    | クリエイティブ ID | 
    レンダリング ID | 
  
  
    | クリエイティブ バージョン | 
    広告パターン | 
  
  
    | クリエイティブ サイズ ID | 
    サポート終了(クリエイティブ ピクセルサイズとしてマッチテーブルから取得) | 
  
  
    | サイト ID | 
    サイト ID(DCM) | 
  
  
    | ページ ID | 
    プレースメント ID | 
  
  
    | キーワード | 
    非推奨 | 
  
  
    | 国 ID | 
    国コード | 
  
  
    | 都道府県 | 
    都道府県 | 
  
  
    | エリアコード | 
    非推奨 | 
  
  
    | ブラウザ ID | 
    ブラウザ / プラットフォーム ID | 
  
  
    | Browser-Version | 
    ブラウザ / プラットフォームのバージョン | 
  
  
    | OS-ID | 
    オペレーティング システム ID | 
  
  
    | DMA-ID | 
    指定マーケット エリア(DMA)ID | 
  
  
    | 市区町村 ID | 
    都市 ID | 
  
  
    | 郵便番号 | 
    郵便番号 | 
  
  
    | 時間 - UTC 秒 | 
    非推奨 | 
  
  
    | ローカル ユーザー ID | 
    非推奨 | 
  
  
    | アクティビティ タイプ | 
    非推奨(「activity_cats」マッチテーブルから取得) | 
  
  
    | アクティビティのサブタイプ | 
    非推奨(「activity_cats」マッチテーブルから取得) | 
  
  
    | その他のデータ | 
    その他のデータ | 
  
  
    | 序数 | 
    ORD 値 | 
  
  
    | クリックの日時 | 
    接点の時間 | 
  
  
    | イベント ID | 
    コンバージョン ID | 
  
  
    | SV1 | 
    セグメント値 1 | 
  
  
    | PartnerID1 | 
    パートナー 1 ID | 
  
  
    | PartnerID2 | 
    パートナー 2 ID | 
  
  
    | 数量 | 
    (合計コンバージョン数) | 
  
  
    | 収益 | 
    Total Revenue | 
  
マッチテーブルのファイル名
  
    | 1.0 ファイル名 | 
    2.0 ファイル名 | 
  
  
    activity_cat | 
    activity_cats | 
  
  
    activity_type | 
    activity_types | 
  
  
    ad | 
    ads | 
  
  
    ad_page_assignments | 
    ad_placement_assignments | 
  
  
    advertiser | 
    advertisers | 
  
  
    browser | 
    browsers | 
  
  
    campaign | 
    campaigns | 
  
  
    cities | 
    cities | 
  
  
    countries | 
    countries | 
  
  
    creative | 
    creatives | 
  
  
    creative_ad_assignments | 
    creative_ad_assignments | 
  
  
    custom_creative_fields | 
    custom_creative_fields | 
  
  
    dartsearch | 
    paid_search | 
  
  
    designated_market_area | 
    designated_market_areas | 
  
  
    keyval | 
    keyword_values | 
  
  
    met_event | 
    rich_media_events | 
  
  
    operating_system | 
    operating_systems | 
  
  
    page | 
    placements | 
  
  
    page_cost/page_flight_cost | 
    placement_cost | 
  
  
    site | 
    sites | 
  
  
    states | 
    states | 
  
  
    user-defined_spot_vars | 
    custom_floodlight_variables | 
  
マッチテーブルのフィールド
activity_cats
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Spot-ID | 
    Floodlight Configuration | 
    integer | 
  
  
    Activity-Type-ID | 
    Activity Group ID | 
    integer | 
  
  
    Activity-Type | 
    Activity Type | 
    文字列 | 
  
  
    Activity-ID | 
    Activity ID | 
    整数 | 
  
  
    Activity Sub-Type | 
    Activity Sub-Type | 
    文字列 | 
  
  
    Report-Name | 
    Activity | 
    文字列 | 
  
  
    Tag-Method-ID | 
    Tag Counting Method ID | 
    integer | 
  
activity_types
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Spot-ID | 
    Floodlight Configuration | 
    integer | 
  
  
    Activity-Group-ID | 
    Activity Group ID | 
    integer | 
  
  
    Activity-Type | 
    Activity Type | 
    文字列 | 
  
  
    Report-Name | 
    Activity Group | 
    文字列 | 
  
ads
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Advertiser-ID | 
    Advertiser ID | 
    integer | 
  
  
    Buy-ID | 
    Campaign ID | 
    integer | 
  
  
    Ad-ID | 
    Ad ID | 
    integer | 
  
  
    Ad-Description | 
    Ad | 
    文字列 | 
  
  
    Click-URL | 
    Ad Click URL | 
    文字列 | 
  
  
    Ad-Type | 
    Ad Type | 
    文字列 | 
  
  
    Creative-Size-ID | 
    Creative Pixel Size | 
    文字列 | 
  
  
    Ad-Comments | 
    Ad Comments | 
    文字列 | 
  
ad_placement_assignments
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Ad-ID | 
    Ad ID | 
    integer | 
  
  
    Page-ID | 
    Placement ID | 
    integer | 
  
広告主
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Spot-ID | 
    Floodlight Configuration | 
    integer | 
  
  
    Advertiser-ID | 
    Advertiser ID | 
    integer | 
  
  
    Advertiser | 
    Advertiser | 
    文字列 | 
  
  
    Advertiser-Group-ID | 
    Advertiser Group ID | 
    整数 | 
  
  
    Advertiser-Group | 
    Advertiser Group | 
    文字列 | 
  
ブラウザ
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Browser-ID | 
    Browser/Platform ID | 
    integer | 
  
  
    Browser | 
    Browswer/Platform | 
    文字列 | 
  
キャンペーン
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Advertiser-ID | 
    Advertiser ID | 
    integer | 
  
  
    | 
       
        Order-ID
        (旧称:
        Buy-ID
        )
       
     | 
    Campaign ID | 
    integer | 
  
  
    Order(旧 Buy) | 
    Campaign | 
    文字列 | 
  
  
    Start-Date | 
    Campaign Start Date | 
    date | 
  
  
    End-Date | 
    Campaign End Date | 
    date | 
  
  
    Billing-Invoice-Code | 
    Billing Invoice Code | 
    文字列 | 
  
cities
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    City-ID | 
    City ID | 
    integer | 
  
  
    City | 
    City | 
    文字列 | 
  
   
    Creative-Library-Enabled | 
    Deprecated (now always 1) | 
    integer | 
  
実施国数
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Country-ID | 
    Deprecated | 
    integer | 
  
  
    Country | 
    Deprecated | 
    文字列 | 
  
クリエイティブ
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Advertiser-ID | 
    Advertiser ID | 
    integer | 
  
  
    Rendering-ID | 
    Rendering ID | 
    integer | 
  
  
    UI-Creative-ID | 
    サポート終了 | 
    integer | 
  
  
    Creative | 
    Creative | 
    文字列 | 
  
  
    Last-Modified-Date | 
    Creative Last Modified Date | 
    date | 
  
  
    Creative-Type | 
    Creative Type | 
    文字列 | 
  
  
    Creative-Sub-Type | 
    Deprecated | 
    文字列 | 
  
  
    Creative-Size-ID | 
    Creative Pixel Size | 
    文字列 | 
  
  
    Image-URL | 
    Creative Image URL | 
    文字列 | 
  
  
    Creative-Version | 
    Creative Version | 
    integer | 
  
creative_ad_assignments
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Ad-ID | 
    Ad ID | 
    integer | 
  
  
    Creative-ID | 
    Creative ID | 
    integer | 
  
  
    Start-Date | 
    Creative Start Date | 
    date | 
  
  
    End-Date | 
    Creative End Date | 
    date | 
  
  
    Rotation-Type | 
    Creative Rotation Type | 
    文字列 | 
  
  
    Creative-Group-1 | 
    Creative Groups 1 | 
    文字列 | 
  
  
    Creative-Group-2 | 
    Creative Groups 2 | 
    文字列 | 
  
  
    Click-URL | 
    Ad Click URL | 
    文字列 | 
  
custom_creative_fields
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Advertiser-ID | 
    Advertiser ID | 
    integer | 
  
  
    Creative-ID | 
    Creative ID | 
    integer | 
  
  
    Custom-Field-Number | 
    Creative Custom Field Number | 
    integer | 
  
  
    Custom-Field-Name | 
    Creative Custom Field Name | 
    文字列 | 
  
  
    Custom-Field-Value | 
    Creative Custom Field Value | 
    文字列 | 
  
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Advertiser-ID | 
    Advertiser ID | 
    integer | 
  
  
    Met-Event-ID | 
    Rich Media Event ID | 
    integer | 
  
  
    Met-Event-Name | 
    Rich Media Event | 
    文字列 | 
  
  
    Met-Event-Type-ID | 
    Rich Media Event Type ID | 
    整数 | 
  
  
    Met-Event-Type-Name | 
    Rich Media Event Type | 
    文字列 | 
  
designated_market_areas
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    DMA-ID | 
    Designated Market Area (DMA) ID | 
    integer | 
  
  
    DMA | 
    Designated Market Area | 
    文字列 | 
  
keyword_values
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Ad-ID | 
    Ad ID | 
    integer | 
  
  
    Keyword-Expression | 
    Keyword | 
    文字列 | 
  
paid_search
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Ad-ID | 
    Ad ID | 
    integer | 
  
  
    Advertiser-ID | 
    Advertiser ID | 
    integer | 
  
  
    Buy-ID | 
    Campaign ID | 
    integer | 
  
  
    DS-Ad-ID | 
    Paid Search Ad ID | 
    integer | 
  
  
    Extended-Keyword-ID | 
    Paid Search Keyword ID | 
    integer | 
  
  
    Keyword-ID | 
    Paid Search Legacy Keyword ID | 
    integer | 
  
  
    DS-Campaign-Name | 
    Paid Search Campaign | 
    文字列 | 
  
  
    KW-Ad-Group-Name | 
    Paid Search Ad Group | 
    文字列 | 
  
  
    Bid-Strategy-Name | 
    Paid Search Bid Strategy | 
    文字列 | 
  
  
    Landing-Page-URL | 
    Paid Search Landing Page URL | 
    文字列 | 
  
  
    Keyword-Name | 
    Paid Search Keyword | 
    文字列 | 
  
  
    Match-Type | 
    Paid Search Match Type | 
    文字列 | 
  
operating_systems
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    OS-ID | 
    Operating System ID | 
    integer | 
  
  
    OS | 
    Operating System | 
    文字列 | 
  
プレースメント
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Buy-ID | 
    Campaign ID | 
    integer | 
  
  
    Site-ID | 
    Site ID (DCM) | 
    integer | 
  
  
    Page-ID | 
    Placement ID | 
    integer | 
  
  
    Page | 
    Site keyname | 
    文字列 | 
  
  
    Site-Placement | 
    Placement | 
    文字列 | 
  
  
    Content-Category | 
    Content Category | 
    文字列 | 
  
  
    Strategy | 
    Placement Strategy | 
    文字列 | 
  
  
    Start-Date | 
    Placement Start Date | 
    date | 
  
  
    End-Date | 
    Placement End Date | 
    date | 
  
  
    Group-Type | 
    プレースメント グループ タイプ | 
    文字列 | 
  
  
    Group-Parent-ID | 
    パッケージ/ロードブロッキング ID | 
    integer | 
  
  
    Price-Type | 
    Placement Cost Structure | 
    文字列 | 
  
  
    Cap-Cost | 
    Placement Cap Cost Option | 
    float | 
  
  
    CPA-Activity-ID | 
    Activity ID | 
    integer | 
  
placement_cost
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Page-ID | 
    Placement ID | 
    integer | 
  
  
    Effective-Date | 
    Placement Start Date | 
    date | 
  
  
    End-Date | 
    Placement End Date | 
    date | 
  
  
    Units | 
    Placement Total Booked Units | 
    integer | 
  
  
    Rate | 
    Placement Rate | 
    浮動小数点数 | 
  
  
    Comments | 
    Placement Comments | 
    文字列 | 
  
サイト
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Site-ID | 
    Site ID (DCM) | 
    integer | 
  
  
    Site | 
    Site (DCM) | 
    文字列 | 
  
  
    Directory-Site-ID | 
    Site ID (Site Directory) | 
    整数 | 
  
  
    Directory-Site | 
    Site (Site Directory) | 
    文字列 | 
  
州
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    State/Province | 
    State/Region | 
    文字列 | 
  
  
    State/Province Name | 
    State/Region Full Name | 
    文字列 | 
  
custom_floodlight_variables
  
    | 1.0 フィールド名 | 
    2.0 フィールド名 | 
    タイプ | 
  
  
    Spot-ID | 
    Floodlight Configuration ID | 
    integer | 
  
  
    Variable-ID | 
    Floodlight Variable ID | 
    文字列 | 
  
  
    Variable-Name | 
    Floodlight Variable Name | 
    文字列 |