Google Merchant Center 價格基準資料表

總覽

BigQuery 中的價格基準資料可協助商家瞭解其他商家如何為相同產品定價。將 Google Merchant Center 報表資料轉移至 BigQuery 時,Products_PriceBenchmarks_ 資料表的格式會提供每個國家/地區和每項產品的每日價格基準。

如果您使用個別商家 ID,資料會寫入名為 Products_PriceBenchmarks_MERCHANT_ID 的表格;如果您使用 MCA 帳戶,資料會寫入名為 Products_PriceBenchmarks_AGGREGATOR_ID 的表格。

結構定義

Products_PriceBenchmarks 資料表具有下列結構定義:

BigQuery 資料類型 說明
product_id STRING 產品的 Content API REST ID,格式為:channel:content_language:feed_label:offer_id,類似於產品資料表結構定義中定義的方式。這個欄位是主鍵。
merchant_id INTEGER 商家帳戶 ID。
aggregator_id INTEGER 多重客戶帳戶的 Aggregator 帳戶 ID。
country_of_sale STRING 使用者在 Google 上執行查詢的國家/地區。
price_benchmark_value FLOAT 對於透過購物廣告宣傳特定產品的所有商家而言,該項產品的平均點擊加權價格。系統會依照全球交易品項識別碼比對產品。詳情請參閱這篇說明中心文章
price_benchmark_currency STRING 基準值的幣別。
price_benchmark_timestamp DATETIME 基準測試的時間戳記。

範例:比較產品價格與基準價格

以下 SQL 查詢會彙整 ProductsPrice Benchmarks 資料,傳回產品清單和相關基準。

WITH products AS
(
  SELECT
    _PARTITIONDATE AS date,
    *
  FROM
    dataset.Products_merchant_id
  WHERE
   _PARTITIONDATE >= 'YYYY-MM-DD'
),
benchmarks AS
(
  SELECT
    _PARTITIONDATE AS date,
    *
  FROM
    dataset.Products_PriceBenchmarks_merchant_id
  WHERE
    _PARTITIONDATE >= 'YYYY-MM-DD'
)
SELECT
  products.date,
  products.product_id,
  products.merchant_id,
  products.aggregator_id,
  products.price,
  products.sale_price,
  benchmarks.price_benchmark_value,
  benchmarks.price_benchmark_currency,
  benchmarks.country_of_sale
FROM
  products
INNER JOIN
  benchmarks
ON products.product_id = benchmarks.product_id AND
   products.merchant_id = benchmarks.merchant_id AND
   products.date = benchmarks.date