|
@@ -4,25 +4,25 @@
|
|
<select id="bytedanceCreativeDailyReport" parameterType="Map"
|
|
<select id="bytedanceCreativeDailyReport" parameterType="Map"
|
|
resultType="com.xxl.job.executor.report.entity.BytedanceCreativeDailyReport">
|
|
resultType="com.xxl.job.executor.report.entity.BytedanceCreativeDailyReport">
|
|
select
|
|
select
|
|
- t2.creative_id as creativeId, <!-- 素材id -->
|
|
|
|
- t4.video_url as videoUrl, <!-- 视频url -->
|
|
|
|
- sum(t2.show_num) as showNum, <!-- 展示量 -->
|
|
|
|
- sum(t2.click) as click, <!-- 点击量 -->
|
|
|
|
- sum(t2.convert_num) as convertNum, <!-- 转化量 -->
|
|
|
|
- sum(t2.cost) as cost, <!-- 总花费 -->
|
|
|
|
- sum(t2.active) as active, <!-- 应用下载-激活 -->
|
|
|
|
- sum(t2.download_finish) as downloadFinish, <!-- 应用下载-安卓下载完成 -->
|
|
|
|
- sum(t2.click_install) as clickInstall, <!-- 应用下载-点击安装数 -->
|
|
|
|
- sum(t2.in_app_pay) as inAppPay, <!-- 应用下载-付费 -->
|
|
|
|
- sum(t2.total_play) as totalPlay, <!-- 视频-总播放 -->
|
|
|
|
- sum(t2.valid_play) as validPlay, <!-- 视频-有效播放 -->
|
|
|
|
- sum(t2.wifi_play) as wifiPlay, <!-- 视频-wifi播放 -->
|
|
|
|
- sum(t2.play100_feed_break) as play100FeedBreak, <!-- 视频-播放100%进度总数 -->
|
|
|
|
- sum(t2.play75_feed_break) as play75FeedBreak, <!-- 视频-播放75%进度总数 -->
|
|
|
|
- sum(t2.comment) as comment, <!-- 互动数据-评论数 -->
|
|
|
|
- AVG(t2.next_day_open) as nextDayOpen, <!-- 次留数 -->
|
|
|
|
- AVG(t2.next_day_open_rate) as nextDayOpenRate, <!-- 次留率 -->
|
|
|
|
- AVG(t2.next_day_open_cost) as nextDayOpenCost <!-- 次留成本 -->
|
|
|
|
|
|
+ t2.creative_id as creativeId,
|
|
|
|
+ t4.video_url as videoUrl,
|
|
|
|
+ sum(t2.show_num) as showNum,
|
|
|
|
+ sum(t2.click) as click,
|
|
|
|
+ sum(t2.convert_num) as convertNum,
|
|
|
|
+ sum(t2.cost) as cost,
|
|
|
|
+ sum(t2.active) as active,
|
|
|
|
+ sum(t2.download_finish) as downloadFinish,
|
|
|
|
+ sum(t2.click_install) as clickInstall,
|
|
|
|
+ sum(t2.in_app_pay) as inAppPay,
|
|
|
|
+ sum(t2.total_play) as totalPlay,
|
|
|
|
+ sum(t2.valid_play) as validPlay,
|
|
|
|
+ sum(t2.wifi_play) as wifiPlay,
|
|
|
|
+ sum(t2.play100_feed_break) as play100FeedBreak,
|
|
|
|
+ sum(t2.play75_feed_break) as play75FeedBreak,
|
|
|
|
+ sum(t2.comment) as comment,
|
|
|
|
+ AVG(t2.next_day_open) as nextDayOpen,
|
|
|
|
+ AVG(t2.next_day_open_rate) as nextDayOpenRate,
|
|
|
|
+ AVG(t2.next_day_open_cost) as nextDayOpenCost
|
|
from
|
|
from
|
|
ctop_user_allocation t1
|
|
ctop_user_allocation t1
|
|
left join ctop_bytedance_report_creative_daily t2 on t1.account_id = t2.advertiser_id
|
|
left join ctop_bytedance_report_creative_daily t2 on t1.account_id = t2.advertiser_id
|
|
@@ -49,25 +49,25 @@
|
|
<select id="bytedanceCreativeAccountReport" parameterType="Map"
|
|
<select id="bytedanceCreativeAccountReport" parameterType="Map"
|
|
resultType="com.xxl.job.executor.report.entity.BytedanceCreativeDailyReport">
|
|
resultType="com.xxl.job.executor.report.entity.BytedanceCreativeDailyReport">
|
|
select
|
|
select
|
|
- t2.creative_id as creativeId, <!-- 素材id -->
|
|
|
|
- t4.video_url as videoUrl, <!-- 视频url -->
|
|
|
|
- sum(t2.show_num) as showNum, <!-- 展示量 -->
|
|
|
|
- sum(t2.click) as click, <!-- 点击量 -->
|
|
|
|
- sum(t2.convert_num) as convertNum, <!-- 转化量 -->
|
|
|
|
- sum(t2.cost) as cost, <!-- 总花费 -->
|
|
|
|
- sum(t2.active) as active, <!-- 应用下载-激活 -->
|
|
|
|
- sum(t2.download_finish) as downloadFinish, <!-- 应用下载-安卓下载完成 -->
|
|
|
|
- sum(t2.click_install) as clickInstall, <!-- 应用下载-点击安装数 -->
|
|
|
|
- sum(t2.in_app_pay) as inAppPay, <!-- 应用下载-付费 -->
|
|
|
|
- sum(t2.total_play) as totalPlay, <!-- 视频-总播放 -->
|
|
|
|
- sum(t2.valid_play) as validPlay, <!-- 视频-有效播放 -->
|
|
|
|
- sum(t2.wifi_play) as wifiPlay, <!-- 视频-wifi播放 -->
|
|
|
|
- sum(t2.play100_feed_break) as play100FeedBreak, <!-- 视频-播放100%进度总数 -->
|
|
|
|
- sum(t2.play75_feed_break) as play75FeedBreak, <!-- 视频-播放75%进度总数 -->
|
|
|
|
- sum(t2.comment) as comment, <!-- 互动数据-评论数 -->
|
|
|
|
- AVG(t2.next_day_open) as nextDayOpen, <!-- 次留数 -->
|
|
|
|
- AVG(t2.next_day_open_rate) as nextDayOpenRate, <!-- 次留率 -->
|
|
|
|
- AVG(t2.next_day_open_cost) as nextDayOpenCost <!-- 次留成本 -->
|
|
|
|
|
|
+ t2.creative_id as creativeId,
|
|
|
|
+ t4.video_url as videoUrl,
|
|
|
|
+ sum(t2.show_num) as showNum,
|
|
|
|
+ sum(t2.click) as click,
|
|
|
|
+ sum(t2.convert_num) as convertNum,
|
|
|
|
+ sum(t2.cost) as cost,
|
|
|
|
+ sum(t2.active) as active,
|
|
|
|
+ sum(t2.download_finish) as downloadFinish,
|
|
|
|
+ sum(t2.click_install) as clickInstall,
|
|
|
|
+ sum(t2.in_app_pay) as inAppPay,
|
|
|
|
+ sum(t2.total_play) as totalPlay,
|
|
|
|
+ sum(t2.valid_play) as validPlay,
|
|
|
|
+ sum(t2.wifi_play) as wifiPlay,
|
|
|
|
+ sum(t2.play100_feed_break) as play100FeedBreak,
|
|
|
|
+ sum(t2.play75_feed_break) as play75FeedBreak,
|
|
|
|
+ sum(t2.comment) as comment,
|
|
|
|
+ AVG(t2.next_day_open) as nextDayOpen,
|
|
|
|
+ AVG(t2.next_day_open_rate) as nextDayOpenRate,
|
|
|
|
+ AVG(t2.next_day_open_cost) as nextDayOpenCost
|
|
from
|
|
from
|
|
ctop_user_allocation t1
|
|
ctop_user_allocation t1
|
|
left join ctop_bytedance_report_creative_daily t2 on t1.account_id = t2.advertiser_id
|
|
left join ctop_bytedance_report_creative_daily t2 on t1.account_id = t2.advertiser_id
|