Tabella dei benchmark dei prezzi di Google Merchant Center

Panoramica

I dati dei benchmark dei prezzi in BigQuery aiutano i commercianti a capire come gli altri commercianti stanno fissando il prezzo dello stesso prodotto. Quando i dati dei report di Google Merchant Center vengono trasferiti a BigQuery, il formato della tabella Products_PriceBenchmarks_ fornisce un benchmark giornaliero dei prezzi per paese e per prodotto.

I dati vengono scritti in una tabella denominata Products_PriceBenchmarks_MERCHANT_ID se utilizzi un ID commerciante individuale o Products_PriceBenchmarks_AGGREGATOR_ID se utilizzi un account AMC.

Schema

La tabella Products_PriceBenchmarks ha lo schema seguente:

Colonna Tipo di dati BigQuery Descrizione
product_id STRING L'ID REST dell'API Content del prodotto nel formato: channel:content_language:feed_label:offer_id, simile al modo in cui è definito nello schema della tabella products. Questo campo è una chiave primaria.
merchant_id INTEGER ID account commerciante.
aggregator_id INTEGER ID account aggregatore per gli account multi-cliente.
country_of_sale STRING Paese in cui l'utente ha eseguito la query su Google.
price_benchmark_value FLOAT Il prezzo medio ponderato per clic di un determinato prodotto per tutti i commercianti che pubblicizzano lo stesso prodotto utilizzando gli annunci Shopping. I prodotti vengono abbinati in base al loro GTIN. Per ulteriori dettagli, consulta questo articolo del Centro assistenza.
price_benchmark_currency STRING Valuta del valore di benchmark.
price_benchmark_timestamp DATETIME Timestamp del benchmark.

Esempio: confronta i prezzi dei prodotti con i benchmark

La seguente query SQL unisce i dati di Products e Price Benchmarks per restituire l'elenco dei prodotti e dei benchmark associati.

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