Skip to main content

Description

The Platform - Facebook dataset contains Facebook ad platform performance metrics and conversion reporting at the hourly, ad-level granularity.

Partition Keys

  • identifier
  • date
💡 Note: Leverage partition keys when querying the table to improve query efficiency.

Logical Primary Key

These fields uniquely identify a record. While data warehouses do not enforce primary key constraints, this combination functions as the logical primary key for the table.
  • identifier
  • date
  • utc_hour
  • ad_id

Field Reference


Nested Fields

The following fields are nested JSON objects keyed by Facebook conversion event name:
  • view_1d
  • click_1d
  • click_7d
  • view_1d_value
  • click_1d_value
  • click_7d_value
  • view_1d_value_usd
  • click_1d_value_usd
  • click_7d_value_usd

Example Stored Object

Snowflake - Querying Nested Fields

Extract a Single Event

Flatten All Events Into Rows

Redshift - Querying Nested Fields (SUPER type)

Extract a Single Event

Flatten All Events Into Rows

BigQuery - Querying Nested Fields (JSON type)

Extract a Single Event

Flatten All Events Into Rows