Skip to content

Commit 0307d9f

Browse files
authored
cross reference with last day events for smart bidding activation (#336)
1 parent 07bc9a8 commit 0307d9f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/activation_query/lead_score_propensity_vbb_query_template.sqlx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ WITH user_prediction_decile AS (
1010
ELSE TIMESTAMP_SUB(b.event_timestamp, INTERVAL 1 MICROSECOND)
1111
END AS inference_date
1212
FROM
13-
`${mds_project_id}.marketing_ga4_v1_${mds_dataset_suffix}.latest_event_per_user_last_24_hours` b,
13+
`${mds_project_id}.marketing_ga4_v1_${mds_dataset_suffix}.latest_event_per_user_last_event_day` b,
1414
`{{source_table}}` a
1515
WHERE
1616
COALESCE(a.user_id, "") = COALESCE(b.user_id, "")

templates/activation_query/purchase_propensity_vbb_query_template.sqlx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ WITH user_prediction_decile AS (
1010
ELSE TIMESTAMP_SUB(b.event_timestamp, INTERVAL 1 MICROSECOND)
1111
END AS inference_date
1212
FROM
13-
`${mds_project_id}.marketing_ga4_v1_${mds_dataset_suffix}.latest_event_per_user_last_24_hours` b,
13+
`${mds_project_id}.marketing_ga4_v1_${mds_dataset_suffix}.latest_event_per_user_last_event_day` b,
1414
`{{source_table}}` a
1515
WHERE
1616
COALESCE(a.user_id, "") = COALESCE(b.user_id, "")

0 commit comments

Comments
 (0)