renyupeng 1 gadu atpakaļ
vecāks
revīzija
0697c78c7d

+ 5 - 2
Apietl/bytedance_etl/report/MaterialVideoDailyReport.py

@@ -111,7 +111,8 @@ class MateirialVideoDailyReport:
                                                                                       average_video_play, avg_rank,
                                                                                       submit_certification_count, approval_count,
                                                                                       first_order_count, first_rental_order_count,
-                                                                                      commute_first_pay_count,video_url, cover_url)
+                                                                                      commute_first_pay_count,video_url, cover_url,
+                                                                                     shot_leader_id, shot_leader_name)
                             select
                            report.advertiser_id account_id,   #'账户ID'
                            report.material_id,                #头条素材id
@@ -314,7 +315,9 @@ class MateirialVideoDailyReport:
                            report.`first_order_count`,
                            report.`first_rental_order_count`,
                            report.`commute_first_pay_count`,
-                           ifnull(concat('http://i.snssdk.com/video/code/1/toutiao/',video.id),'-') as video_url, cmi.cover_url
+                           ifnull(concat('http://i.snssdk.com/video/code/1/toutiao/',video.id),'-') as video_url, cmi.cover_url,
+                           cma.shot_leader_id,
+                           cma.shot_leader_name
                     from media_api.bytedance_material_report_daily report
                     left join
                     `media_api`.bytedance_file_video_get video

+ 4 - 2
Apietl/bytedance_etl/report/NewMaterialVideoDailyReport.py

@@ -78,7 +78,7 @@ class NewMaterialVideoDailyReport:
                                                                   in_app_detail_uv,
                                                                   in_app_cart,
                                                                   in_app_pay,
-                                                                  in_app_order, video_url, cover_url)
+                                                                  in_app_order, video_url, cover_url,shot_leader_id,shot_leader_name)
 select report.advertiser_id                                                                      account_id,      #'账户ID'
        report.material_id,                                                                                        #头条素材id
        ''                                                                                     as image_mode,      #素材类型
@@ -152,7 +152,9 @@ select report.advertiser_id
        in_app_pay,
        in_app_order,
        ifnull(concat('http://i.snssdk.com/video/code/1/toutiao/',video.id),'-') as video_url ,
-       cmi.cover_url
+       cmi.cover_url,
+       cma.shot_leader_id,
+       cma.shot_leader_name
 from media_api.bytedance_material_video_daily report
          left join
      `media_api`.bytedance_file_video_get video

+ 6 - 2
Apietl/kwai_etl/report/MateirialVideoDailyReport.py

@@ -115,7 +115,9 @@ class MateirialVideoDailyReport:
        video_name,
        channel_name,
        clip_company_id,
-       play_3s_count)
+       play_3s_count,
+      shot_leader_id,
+       shot_leader_name)
 select report.advertiser_id                                                                     as account_id,
        cp.id                                                                                    as project_id,
        product.id                                                                               as product_id,
@@ -274,7 +276,9 @@ select report.advertiser_id
        case when cmi.material_name is not null then cmi.material_name else video.photo_name end as video_name,
        case when video.channel_type = 1 then '素造' else '内部' end,
        uc.company_id,
-       round(play_3s_ratio*aclick) as play_3s_count
+       round(play_3s_ratio*aclick) as play_3s_count,
+       cma.shot_leader_id,
+       cma.shot_leader_name
 from media_api.kuaishou_material_video_report_daily report
          left join media_api.kuaishou_video_list video
                     on report.advertiser_id = video.account_id and report.photo_id = video.photo_id