renyupeng 3 年之前
父节点
当前提交
c3f2d19cce

+ 3 - 2
Apietl/kwai_etl/report/AccountDailyReport.py

@@ -61,7 +61,7 @@ class AccountDailyReport:
  ad_photo_played_75percent_ratio, key_action_ratio, event_ad_watch_times_cost, event_add_shopping_cart, key_action,
  ad_photo_played_75percent_ratio, key_action_ratio, event_ad_watch_times_cost, event_add_shopping_cart, key_action,
  event_multi_conversion, event_wechat_connected, event_dsp_gift_form, event_intention_confirmed,
  event_multi_conversion, event_wechat_connected, event_dsp_gift_form, event_intention_confirmed,
  event_phone_get_through, event_multi_conversion_ratio, event_measurement_house, ad_photo_played_2s_ratio,
  event_phone_get_through, event_multi_conversion_ratio, event_measurement_house, ad_photo_played_2s_ratio,
- event_outbound_call_ratio, event_ad_watch_times)
+ event_outbound_call_ratio, event_ad_watch_times,event_pay_purchase_amount_one_day_by_conversion)
         select report.advertiser_id as account_id,
         select report.advertiser_id as account_id,
                stat_date,
                stat_date,
                project_id,
                project_id,
@@ -201,7 +201,8 @@ class AccountDailyReport:
                event_measurement_house,
                event_measurement_house,
                ad_photo_played_2s_ratio,
                ad_photo_played_2s_ratio,
                event_outbound_call_ratio,
                event_outbound_call_ratio,
-               event_ad_watch_times
+               event_ad_watch_times,
+               event_pay_purchase_amount_one_day_by_conversion
         from media_api.kuaishou_account_report_daily report
         from media_api.kuaishou_account_report_daily report
                  left join
                  left join
              `jeecg-boot`.ctop_account_attribution_info sys
              `jeecg-boot`.ctop_account_attribution_info sys

+ 3 - 2
Apietl/kwai_etl/report/AccountHourlyReport.py

@@ -61,7 +61,7 @@ class AccountHourlyReport:
  ad_photo_played_75percent_ratio, key_action_ratio, event_ad_watch_times_cost, event_add_shopping_cart, key_action,
  ad_photo_played_75percent_ratio, key_action_ratio, event_ad_watch_times_cost, event_add_shopping_cart, key_action,
  event_multi_conversion, event_wechat_connected, event_dsp_gift_form, event_intention_confirmed,
  event_multi_conversion, event_wechat_connected, event_dsp_gift_form, event_intention_confirmed,
  event_phone_get_through, event_multi_conversion_ratio, event_measurement_house, ad_photo_played_2s_ratio,
  event_phone_get_through, event_multi_conversion_ratio, event_measurement_house, ad_photo_played_2s_ratio,
- event_outbound_call_ratio, event_ad_watch_times)
+ event_outbound_call_ratio, event_ad_watch_times,event_pay_purchase_amount_one_day_by_conversion)
         select report.advertiser_id as account_id,
         select report.advertiser_id as account_id,
                stat_date,
                stat_date,
                 `hour`,
                 `hour`,
@@ -202,7 +202,8 @@ class AccountHourlyReport:
                event_measurement_house,
                event_measurement_house,
                ad_photo_played_2s_ratio,
                ad_photo_played_2s_ratio,
                event_outbound_call_ratio,
                event_outbound_call_ratio,
-               event_ad_watch_times
+               event_ad_watch_times,
+               event_pay_purchase_amount_one_day_by_conversion
         from media_api.kuaishou_account_report_hourly report
         from media_api.kuaishou_account_report_hourly report
                  left join
                  left join
              `jeecg-boot`.ctop_account_attribution_info sys
              `jeecg-boot`.ctop_account_attribution_info sys

+ 4 - 2
Apietl/kwai_etl/report/AccountHourlySumToDayReport.py

@@ -162,7 +162,8 @@ report.event_multi_conversion_ratio,
 report.event_measurement_house,
 report.event_measurement_house,
 report.ad_photo_played_2s_ratio,
 report.ad_photo_played_2s_ratio,
 report.event_outbound_call_ratio,
 report.event_outbound_call_ratio,
-report.event_ad_watch_times
+report.event_ad_watch_times,
+report.event_pay_purchase_amount_one_day_by_conversion
 from 
 from 
 (select
 (select
         stat_date,
         stat_date,
@@ -291,7 +292,8 @@ ifnull(round(sum(event_multi_conversion)/sum(activation)*100,3),0)  event_multi_
 sum(event_measurement_house) event_measurement_house,
 sum(event_measurement_house) event_measurement_house,
 ifnull(round(sum(ad_photo_played_2s_ratio)*100,3),0) ad_photo_played_2s_ratio,
 ifnull(round(sum(ad_photo_played_2s_ratio)*100,3),0) ad_photo_played_2s_ratio,
 ifnull(round(sum(event_outbound_call_ratio)/sum(activation)*100,3),0) event_outbound_call_ratio,
 ifnull(round(sum(event_outbound_call_ratio)/sum(activation)*100,3),0) event_outbound_call_ratio,
-sum(event_ad_watch_times) event_ad_watch_times
+sum(event_ad_watch_times) event_ad_watch_times,
+sum(event_pay_purchase_amount_one_day_by_conversion) as event_pay_purchase_amount_one_day_by_conversion
 from 
 from 
  media_api.kuaishou_account_report_hourly a
  media_api.kuaishou_account_report_hourly a
  where stat_date={stat_date}
  where stat_date={stat_date}

+ 6 - 4
Apietl/kwai_etl/report/AccountReport.py

@@ -49,7 +49,7 @@ class AccountReport:
  ad_photo_played_75percent_ratio, key_action_ratio, event_ad_watch_times_cost, event_add_shopping_cart, key_action,
  ad_photo_played_75percent_ratio, key_action_ratio, event_ad_watch_times_cost, event_add_shopping_cart, key_action,
  event_multi_conversion, event_wechat_connected, event_dsp_gift_form, event_intention_confirmed,
  event_multi_conversion, event_wechat_connected, event_dsp_gift_form, event_intention_confirmed,
  event_phone_get_through, event_multi_conversion_ratio, event_measurement_house, ad_photo_played_2s_ratio,
  event_phone_get_through, event_multi_conversion_ratio, event_measurement_house, ad_photo_played_2s_ratio,
- event_outbound_call_ratio, event_ad_watch_times)
+ event_outbound_call_ratio, event_ad_watch_times,event_pay_purchase_amount_one_day_by_conversion)
         select report.advertiser_id as account_id,
         select report.advertiser_id as account_id,
                stat_date,
                stat_date,
                project_id,
                project_id,
@@ -189,7 +189,8 @@ class AccountReport:
                event_measurement_house,
                event_measurement_house,
                ad_photo_played_2s_ratio,
                ad_photo_played_2s_ratio,
                event_outbound_call_ratio,
                event_outbound_call_ratio,
-               event_ad_watch_times
+               event_ad_watch_times,
+               event_pay_purchase_amount_one_day_by_conversion
         from media_api.kuaishou_account_report_daily report
         from media_api.kuaishou_account_report_daily report
                  left join
                  left join
              `jeecg-boot`.ctop_account_attribution_info sys
              `jeecg-boot`.ctop_account_attribution_info sys
@@ -236,7 +237,7 @@ class AccountReport:
  ad_photo_played_75percent_ratio, key_action_ratio, event_ad_watch_times_cost, event_add_shopping_cart, key_action,
  ad_photo_played_75percent_ratio, key_action_ratio, event_ad_watch_times_cost, event_add_shopping_cart, key_action,
  event_multi_conversion, event_wechat_connected, event_dsp_gift_form, event_intention_confirmed,
  event_multi_conversion, event_wechat_connected, event_dsp_gift_form, event_intention_confirmed,
  event_phone_get_through, event_multi_conversion_ratio, event_measurement_house, ad_photo_played_2s_ratio,
  event_phone_get_through, event_multi_conversion_ratio, event_measurement_house, ad_photo_played_2s_ratio,
- event_outbound_call_ratio, event_ad_watch_times)
+ event_outbound_call_ratio, event_ad_watch_times,event_pay_purchase_amount_one_day_by_conversion)
         select report.advertiser_id as account_id,
         select report.advertiser_id as account_id,
                stat_date,
                stat_date,
                `hour`,
                `hour`,
@@ -377,7 +378,8 @@ class AccountReport:
                event_measurement_house,
                event_measurement_house,
                ad_photo_played_2s_ratio,
                ad_photo_played_2s_ratio,
                event_outbound_call_ratio,
                event_outbound_call_ratio,
-               event_ad_watch_times
+               event_ad_watch_times,
+               event_pay_purchase_amount_one_day_by_conversion
         from media_api.kuaishou_account_report_hourly report
         from media_api.kuaishou_account_report_hourly report
                  left join
                  left join
              `jeecg-boot`.ctop_account_attribution_info sys
              `jeecg-boot`.ctop_account_attribution_info sys