|
@@ -78,10 +78,10 @@ t2.unit_num as all_ad_num,
|
|
|
t2.unit_num new_ad_num,
|
|
|
t3.day_num as all_video_num,
|
|
|
t3.day_num new_video_num,
|
|
|
-ifnull(t4.new_eff_material,0) as effect_num,
|
|
|
-ifnull(t4.new_eff_material,0) as new_effect_num,
|
|
|
-ifnull(t5.new_hot_material,0) as hot_num,
|
|
|
-ifnull(t5.new_hot_material,0) as new_hot_num,
|
|
|
+0 as effect_num,
|
|
|
+0 as new_effect_num,
|
|
|
+0 as hot_num,
|
|
|
+0 as new_hot_num,
|
|
|
0 put_campaign_num,
|
|
|
0 put_unit_num,
|
|
|
trush_cam_num,
|
|
@@ -101,22 +101,6 @@ left join
|
|
|
where date_format(stat_date,'%Y%m%d')={date_time} group by account_id) t3
|
|
|
on t1.account_id=t3.account_id
|
|
|
left join
|
|
|
-(select t2.account_id,count(distinct t1.material_id) new_eff_material from
|
|
|
-(select material_id from application.app_kuaishou_material_info where effect_date={date_time}) t1
|
|
|
-left join
|
|
|
-(select distinct account_id,signature from `media_api`.kuaishou_video_list where date_format(stat_date,'%Y%m%d')>=
|
|
|
-date_sub({date_time},INTERVAL 29 DAY)) t2
|
|
|
-on t1.material_id=t2.signature group by t2.account_id) t4
|
|
|
-on t1.account_id=t4.account_id
|
|
|
-left join
|
|
|
-(select t2.account_id,count(distinct t1.material_id) new_hot_material from
|
|
|
-(select material_id from application.app_kuaishou_material_info where faddish_date={date_time}) t1
|
|
|
-left join
|
|
|
-(select distinct account_id,signature from `media_api`.kuaishou_video_list where date_format(stat_date,'%Y%m%d')>=
|
|
|
-date_sub({date_time},INTERVAL 29 DAY)) t2
|
|
|
-on t1.material_id=t2.signature group by t2.account_id) t5
|
|
|
-on t1.account_id=t5.account_id
|
|
|
-left join
|
|
|
(
|
|
|
select advertiser_id account_id,count(unit_id) trush_unit_num, count(distinct campaign_id) trush_cam_num from `media_api`.kuaishou_ad_unit_list where date_format(create_time,'%Y%m%d')={date_time}
|
|
|
and unit_source=1
|