Add distribution_id to firefox_android_clients. (#5325)
* Add distribution_id to firefox_android_clients. * Update tests schemas.
This commit is contained in:
Родитель
76883c8637
Коммит
3705f4e1d1
|
@ -154,6 +154,11 @@ first_session_ping AS (
|
|||
ORDER BY
|
||||
submission_timestamp ASC
|
||||
)[SAFE_OFFSET(0)] AS play_store_attribution_install_referrer_response,
|
||||
ARRAY_AGG(
|
||||
metrics.string.first_session_distribution_id IGNORE NULLS
|
||||
ORDER BY
|
||||
submission_timestamp ASC
|
||||
)[SAFE_OFFSET(0)] AS distribution_id,
|
||||
FROM
|
||||
fenix.first_session AS fenix_first_session
|
||||
LEFT JOIN
|
||||
|
@ -223,6 +228,11 @@ metrics_ping AS (
|
|||
ORDER BY
|
||||
submission_timestamp DESC
|
||||
)[SAFE_OFFSET(0)] AS last_reported_adjust_campaign,
|
||||
ARRAY_AGG(
|
||||
metrics.string.metrics_distribution_id IGNORE NULLS
|
||||
ORDER BY
|
||||
submission_timestamp ASC
|
||||
)[SAFE_OFFSET(0)] AS distribution_id,
|
||||
FROM
|
||||
fenix.metrics AS fenix_metrics
|
||||
WHERE
|
||||
|
@ -286,6 +296,7 @@ _current AS (
|
|||
first_session.play_store_attribution_source,
|
||||
first_session.play_store_attribution_term,
|
||||
first_session.play_store_attribution_install_referrer_response,
|
||||
COALESCE(first_session.distribution_id, metrics.distribution_id) AS distribution_id,
|
||||
metrics.last_reported_adjust_campaign AS last_reported_adjust_campaign,
|
||||
metrics.last_reported_adjust_ad_group AS last_reported_adjust_ad_group,
|
||||
metrics.last_reported_adjust_creative AS last_reported_adjust_creative,
|
||||
|
@ -439,6 +450,7 @@ SELECT
|
|||
COALESCE(_previous.adjust_creative, _current.adjust_creative) AS adjust_creative,
|
||||
COALESCE(_previous.adjust_network, _current.adjust_network) AS adjust_network,
|
||||
COALESCE(_previous.install_source, _current.install_source) AS install_source,
|
||||
COALESCE(_previous.distribution_id, _current.distribution_id) AS distribution_id,
|
||||
COALESCE(
|
||||
_previous.play_store_attribution_campaign,
|
||||
_current.play_store_attribution_campaign
|
||||
|
|
|
@ -76,6 +76,9 @@ fields:
|
|||
mode: NULLABLE
|
||||
name: install_source
|
||||
type: STRING
|
||||
- description: The id of the browser distribution made available in installation sources.
|
||||
name: distribution_id
|
||||
type: STRING
|
||||
- description: The utm_campaign this install is attributed to. Reported by the install referrer service, not Adjust.
|
||||
mode: NULLABLE
|
||||
name: play_store_attribution_campaign
|
||||
|
|
|
@ -57,6 +57,10 @@
|
|||
"type": "STRING",
|
||||
"name": "first_session_creative"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"name": "first_session_distribution_id"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"name": "play_store_attribution_campaign"
|
||||
|
|
|
@ -44,6 +44,10 @@
|
|||
{
|
||||
"type": "STRING",
|
||||
"name": "metrics_install_source"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"name": "metrics_distribution_id"
|
||||
}
|
||||
],
|
||||
"name": "string",
|
||||
|
|
|
@ -75,6 +75,10 @@
|
|||
"type": "STRING",
|
||||
"name": "install_source"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"name": "distribution_id"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"name": "play_store_attribution_campaign"
|
||||
|
|
Загрузка…
Ссылка в новой задаче