|
|
@@ -69,6 +69,74 @@
|
|
|
)
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
+
|
|
|
+ <insert id="addsHourListSD">
|
|
|
+ insert into adq_creative_report_hour (
|
|
|
+ advertiser_id,
|
|
|
+ adgroup_id,
|
|
|
+ adgroup_name,
|
|
|
+ dynamic_creative_id,
|
|
|
+ dynamic_creative_name,
|
|
|
+ stat_time_day,
|
|
|
+ `hour`,
|
|
|
+ cost,
|
|
|
+ view_count,
|
|
|
+ valid_click_count,
|
|
|
+ conversions_count,
|
|
|
+ deep_conversions_count,
|
|
|
+ activated_count,
|
|
|
+ reg_pv,
|
|
|
+ retention_count,
|
|
|
+ video_outer_play_count,
|
|
|
+ video_outer_play100_count,
|
|
|
+ key_behavior_conversions_count,
|
|
|
+ purchase_pv,
|
|
|
+ purchase_amount,
|
|
|
+ first_pay_count,
|
|
|
+ ad_monetization_amount,
|
|
|
+ app_ad_paying_users,
|
|
|
+ income_pv_pla,
|
|
|
+ income_val_1,
|
|
|
+ ad_paying_users_d1,
|
|
|
+ income_pv_1d_pla,
|
|
|
+ income_val_3
|
|
|
+ )
|
|
|
+ values
|
|
|
+ <foreach collection="adds" item="item" separator=",">
|
|
|
+ (
|
|
|
+
|
|
|
+ #{item.advertiserId},
|
|
|
+ #{item.adgroupId},
|
|
|
+ #{item.adgroupName},
|
|
|
+ #{item.dynamicCreativeId},
|
|
|
+ #{item.dynamicCreativeName},
|
|
|
+ #{item.statTimeDay},
|
|
|
+ #{item.hour},
|
|
|
+ #{item.cost},
|
|
|
+ #{item.viewCount},
|
|
|
+ #{item.validClickCount},
|
|
|
+ #{item.conversionsCount},
|
|
|
+ #{item.deepConversionsCount},
|
|
|
+ #{item.activatedCount},
|
|
|
+ #{item.regPv},
|
|
|
+ #{item.retentionCount},
|
|
|
+ #{item.videoOuterPlayCount},
|
|
|
+ #{item.videoOuterPlay100Count},
|
|
|
+ #{item.keyBehaviorConversionsCount},
|
|
|
+ #{item.purchasePv},
|
|
|
+ #{item.purchaseAmount},
|
|
|
+ #{item.firstPayCount},
|
|
|
+ #{item.adMonetizationAmount},
|
|
|
+ #{item.appAdPayingUsers},
|
|
|
+ #{item.incomePvPla},
|
|
|
+ #{item.incomeVal1},
|
|
|
+ #{item.adPayingUsersD1},
|
|
|
+ #{item.incomePv1dPla},
|
|
|
+ #{item.incomeVal3}
|
|
|
+ )
|
|
|
+ </foreach>
|
|
|
+ </insert>
|
|
|
+
|
|
|
<insert id="addsDaily">
|
|
|
replace into adq_creative_report_daily (
|
|
|
advertiser_id,
|
|
|
@@ -134,6 +202,71 @@
|
|
|
|
|
|
</insert>
|
|
|
|
|
|
+ <insert id="addsDailySD">
|
|
|
+ insert into adq_creative_report_daily (
|
|
|
+ advertiser_id,
|
|
|
+ adgroup_id,
|
|
|
+ adgroup_name,
|
|
|
+ dynamic_creative_id,
|
|
|
+ dynamic_creative_name,
|
|
|
+ stat_time_day,
|
|
|
+ cost,
|
|
|
+ view_count,
|
|
|
+ valid_click_count,
|
|
|
+ conversions_count,
|
|
|
+ deep_conversions_count,
|
|
|
+ activated_count,
|
|
|
+ reg_pv,
|
|
|
+ retention_count,
|
|
|
+ video_outer_play_count,
|
|
|
+ video_outer_play100_count,
|
|
|
+ key_behavior_conversions_count,
|
|
|
+ purchase_pv,
|
|
|
+ purchase_amount,
|
|
|
+ first_pay_count,
|
|
|
+ ad_monetization_amount,
|
|
|
+ app_ad_paying_users,
|
|
|
+ income_pv_pla,
|
|
|
+ income_val_1,
|
|
|
+ ad_paying_users_d1,
|
|
|
+ income_pv_1d_pla,
|
|
|
+ income_val_3
|
|
|
+ )
|
|
|
+ values
|
|
|
+ <foreach collection="adds" item="item" separator=",">
|
|
|
+ (
|
|
|
+ #{item.advertiserId},
|
|
|
+ #{item.adgroupId},
|
|
|
+ #{item.adgroupName},
|
|
|
+ #{item.dynamicCreativeId},
|
|
|
+ #{item.dynamicCreativeName},
|
|
|
+ #{item.statTimeDay},
|
|
|
+ #{item.cost},
|
|
|
+ #{item.viewCount},
|
|
|
+ #{item.validClickCount},
|
|
|
+ #{item.conversionsCount},
|
|
|
+ #{item.deepConversionsCount},
|
|
|
+ #{item.activatedCount},
|
|
|
+ #{item.regPv},
|
|
|
+ #{item.retentionCount},
|
|
|
+ #{item.videoOuterPlayCount},
|
|
|
+ #{item.videoOuterPlay100Count},
|
|
|
+ #{item.keyBehaviorConversionsCount},
|
|
|
+ #{item.purchasePv},
|
|
|
+ #{item.purchaseAmount},
|
|
|
+ #{item.firstPayCount},
|
|
|
+ #{item.adMonetizationAmount},
|
|
|
+ #{item.appAdPayingUsers},
|
|
|
+ #{item.incomePvPla},
|
|
|
+ #{item.incomeVal1},
|
|
|
+ #{item.adPayingUsersD1},
|
|
|
+ #{item.incomePv1dPla},
|
|
|
+ #{item.incomeVal3}
|
|
|
+ )
|
|
|
+ </foreach>
|
|
|
+
|
|
|
+ </insert>
|
|
|
+
|
|
|
<select id="getAccountList" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
SELECT t1.advertiser_id AS 'advertiserId', t2.access_token AS 'accessToken'
|
|
|
FROM deepthink.adq_advertiser_list t1
|