feat(AppShare): 卡片广告、分段广告(补充、优化规则)

This commit is contained in:
aisouler
2024-02-05 14:24:02 +08:00
parent 3d0b8d3bf1
commit 207f56aa78

View File

@@ -46,20 +46,21 @@ export default defineAppConfig({
},
{
key: 1,
name: '局部广告-卡片广告',
name: '局部广告-软件详情页卡片广告',
desc: '点击关闭',
activityIds: 'info.muge.appshare.view.app.detail.AppDetailActivity',
rules: [
{
key: 0,
name: '腾讯广告',
activityIds: 'info.muge.appshare.view.app.detail.AppDetailActivity',
matches: [
'[id="info.muge.appshare:id/adContainer"] >n FrameLayout > ImageView - FrameLayout[childCount=1] > ImageView[childCount=0]',
'[id="info.muge.appshare:id/adContainer"] >n FrameLayout[desc*="dislike"]', //新规则
],
quickFind: true,
matches:
'@FrameLayout[index=2] <3 FrameLayout[childCount=5] <<n [id="info.muge.appshare:id/adContainer"]',
exampleUrls:
'https://m.gkd.li/57941037/c19bb8e3-abae-46ee-bfe9-d7846cd868bc',
snapshotUrls: [
'https://i.gkd.li/import/13761259',
'https://i.gkd.li/import/14160820',
'https://i.gkd.li/import/13712716',
'https://i.gkd.li/import/13758909', //新规则
'https://i.gkd.li/import/13761259',
],
},
],
@@ -89,20 +90,35 @@ export default defineAppConfig({
{
key: 3,
name: '分段广告-软件详情页广告',
desc: '有二次弹窗',
desc: '点击关闭-点击不感兴趣',
quickFind: true,
activityIds: 'info.muge.appshare.view.app.detail.AppDetailActivity',
rules: [
{
key: 0,
activityIds: 'info.muge.appshare.view.app.detail.AppDetailActivity',
matches:
'[id="info.muge.appshare:id/adContainer"] >6 FrameLayout[visibleToUser=true][index=2][desc!=null]',
'@View[clickable=true] < FrameLayout[desc*="dislike"] <3 * < * <3 FrameLayout[childCount=3] <<n [id="info.muge.appshare:id/adContainer"]',
exampleUrls:
'https://m.gkd.li/57941037/3bc12aa2-7673-4261-9e3d-7e1605b22847',
snapshotUrls: 'https://i.gkd.li/import/13758909',
},
{
preKeys: 0,
activityIds: 'info.muge.appshare.view.app.detail.AppDetailActivity',
matches: '[text="不感兴趣"]',
snapshotUrls: 'https://i.gkd.li/import/13944942',
key: 1,
matches:
'@View[index=1] <2 View[childCount=3] <2 * < * <2 * <<n FrameLayout <3 FrameLayout[childCount=3] <<n [id="info.muge.appshare:id/adContainer"]',
exampleUrls:
'https://m.gkd.li/57941037/fefece63-2ec2-413c-a292-4583d58478fe',
snapshotUrls: 'https://i.gkd.li/import/14160959',
},
// 中间的key预留给第一段广告
{
// preKeys有概率导致二段不触发
key: 10,
matches: '@LinearLayout > [text="不感兴趣"]',
exampleUrls:
'https://m.gkd.li/57941037/27a5eebc-a55a-466e-85f3-7642c23b4b3d',
snapshotUrls: 'https://i.gkd.li/import/14161009',
},
],
},