Skip to content

creative_refresh_log_v2

Full reference: paidteam-data-warehouse.customer_ads_suse.creative_refresh_log_v2Type: Logging | Rows: 48 | Size: < 0.1 MB

Creative refresh script execution log. Tracks all staging-to-final creative MERGE operations including row counts for matched (updated), inserted (new), and total rows. Essential for monitoring creative pipeline health.

Schema

ColumnTypeNullableDescription
run_idSTRINGYesUnique identifier for the creative refresh run
run_timestampTIMESTAMPYesTimestamp when the MERGE operation was executed
platformSTRINGYesPlatform name (linkedin, reddit, etc.)
staging_rowsINTEGERYesNumber of rows in the creative staging table
rows_matchedINTEGERYesNumber of existing rows updated (WHEN MATCHED)
rows_insertedINTEGERYesNumber of new rows inserted (WHEN NOT MATCHED)
final_total_rowsINTEGERYesTotal row count in the creative final table after MERGE
statusSTRINGYesExecution status: SUCCESS or ERROR
detailsSTRINGYesAdditional details or error message

Partitioning & Clustering

  • Partitioned by: None
  • Clustering: None

Usage

Check Recent Creative Refresh Status

sql
SELECT *
FROM `paidteam-data-warehouse.customer_ads_suse.creative_refresh_log_v2`
WHERE run_timestamp >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 24 HOUR)
ORDER BY run_timestamp DESC;

Track Creative Growth Over Time

sql
SELECT
  platform,
  run_timestamp,
  staging_rows,
  rows_matched,
  rows_inserted,
  final_total_rows
FROM `paidteam-data-warehouse.customer_ads_suse.creative_refresh_log_v2`
WHERE status = 'SUCCESS'
ORDER BY run_timestamp DESC
LIMIT 30;

Identify Creative Refresh Failures

sql
SELECT
  run_timestamp,
  platform,
  status,
  details
FROM `paidteam-data-warehouse.customer_ads_suse.creative_refresh_log_v2`
WHERE status = 'ERROR'
ORDER BY run_timestamp DESC;

Notes

  • Each execution of the creative refresh script generates one row per platform that has creative tables (currently LinkedIn and Reddit).
  • rows_matched indicates how many existing creatives were updated with new metadata. A high match count with zero inserts means no new creatives were found.
  • rows_inserted indicates truly new creatives that were not previously in the final table.
  • final_total_rows is the total count after the MERGE completes. This number should only grow over time (or stay constant) since the MERGE does not delete rows.
  • The creative refresh script is separate from the adlevel refresh script and runs on its own schedule.
  • The run_id links all platform entries from the same script execution.

SUSE Paid Advertising Data Warehouse V2