renyupeng 3 سال پیش
والد
کامیت
81b42722fb

+ 3 - 2
Apietl/bytedance_etl/report/MaterialImageDailyReport.py

@@ -113,7 +113,7 @@ replace into application.bytedance_material_image_report_daily_dw(account_id, ma
                                                                   average_video_play, avg_rank,
                                                                   submit_certification_count, approval_count,
                                                                   first_order_count, first_rental_order_count,
-                                                                  commute_first_pay_count)
+                                                                  commute_first_pay_count,image_url)
 
 select report.advertiser_id account_id,      #'账户ID'
        report.material_id,                   #头条素材id
@@ -302,7 +302,8 @@ select report.advertiser_id account_id,      #'账户ID'
        report.`approval_count`,
        report.`first_order_count`,
        report.`first_rental_order_count`,
-       report.`commute_first_pay_count`
+       report.`commute_first_pay_count`,
+       image.image_url
 from media_api.bytedance_material_report_daily report
          left join
      `media_api`.bytedance_file_image_get image

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

@@ -109,7 +109,7 @@ class MateirialVideoDailyReport:
                                                                   average_video_play, avg_rank,
                                                                   submit_certification_count, approval_count,
                                                                   first_order_count, first_rental_order_count,
-                                                                  commute_first_pay_count)
+                                                                  commute_first_pay_count,video_url, cover_url)
         select
        report.advertiser_id account_id,   #'账户ID'
        report.material_id,                #头条素材id
@@ -311,7 +311,8 @@ class MateirialVideoDailyReport:
        report.`approval_count`,
        report.`first_order_count`,
        report.`first_rental_order_count`,
-       report.`commute_first_pay_count`
+       report.`commute_first_pay_count`,
+       video.video_url, cmi.cover_url
 from media_api.bytedance_material_report_daily report
 inner join
 `media_api`.bytedance_file_video_get video