From 4b4e63598528c037fda260e464bef207da145f36 Mon Sep 17 00:00:00 2001 From: Jessica Wade Date: Fri, 6 Sep 2024 11:21:57 -0500 Subject: [PATCH 1/3] Add Native ad slot with fallback of banner ad --- tenants/all/templates/drb-lfte.marko | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/tenants/all/templates/drb-lfte.marko b/tenants/all/templates/drb-lfte.marko index 5dad993..9b0956d 100644 --- a/tenants/all/templates/drb-lfte.marko +++ b/tenants/all/templates/drb-lfte.marko @@ -69,6 +69,15 @@ $ const resolvedToNodesConverter = ({ resolved }) => (resolved.map((node) => ({ skip=1 /> + + + (resolved.map((node) => ({ with-image=true image-position="right" with-section=true - limit=1 + limit=2 skip=2 /> - @@ -96,8 +104,8 @@ $ const resolvedToNodesConverter = ({ resolved }) => (resolved.map((node) => ({ newsletter=newsletter with-image=false with-section=true - skip=3 - limit=6 + skip=4 + limit=5 /> From 15394d5a564a84256f590680f0a86f8b75289b0a Mon Sep 17 00:00:00 2001 From: Jessica Wade Date: Fri, 6 Sep 2024 11:22:06 -0500 Subject: [PATCH 2/3] Create native and banner ad units --- tenants/all/config/email-x.js | 6 ++++++ tenants/all/config/native-x.js | 3 +++ 2 files changed, 9 insertions(+) diff --git a/tenants/all/config/email-x.js b/tenants/all/config/email-x.js index d75b378..a9bc204 100644 --- a/tenants/all/config/email-x.js +++ b/tenants/all/config/email-x.js @@ -42,6 +42,12 @@ config width: 300, height: 250, }, + { + name: 'ad-slot-2', + id: '66db2afc676b8ccccc086870', + width: 300, + height: 250, + }, { name: 'case-sponsor', id: '669949c5a9b3ee2103a0eca4', diff --git a/tenants/all/config/native-x.js b/tenants/all/config/native-x.js index 08cfb72..cf288b6 100644 --- a/tenants/all/config/native-x.js +++ b/tenants/all/config/native-x.js @@ -79,5 +79,8 @@ module.exports = { 'case-sponsor': '6674430f49e2ea000100c0f2', sponsored: '66744322f0716b0001d593cf', }, + 'drb-lfte': { + 'slot-2': '66daff52feb239558f0e8f61', + }, }, }; From dc61346a460e8bc81331ff6f6849a7ce8d32212c Mon Sep 17 00:00:00 2001 From: Jessica Wade Date: Mon, 9 Sep 2024 08:37:47 -0500 Subject: [PATCH 3/3] Combine drb-lfte native-x ads --- tenants/all/config/native-x.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tenants/all/config/native-x.js b/tenants/all/config/native-x.js index cf288b6..67be693 100644 --- a/tenants/all/config/native-x.js +++ b/tenants/all/config/native-x.js @@ -16,6 +16,7 @@ module.exports = { }, 'drb-lfte': { 'slot-1': '638619dad6ced5000110a551', + 'slot-2': '66daff52feb239558f0e8f61', 'case-sponsor': '643d7f61b91bf50001eff980', }, 'drb-community-insider': { @@ -79,8 +80,5 @@ module.exports = { 'case-sponsor': '6674430f49e2ea000100c0f2', sponsored: '66744322f0716b0001d593cf', }, - 'drb-lfte': { - 'slot-2': '66daff52feb239558f0e8f61', - }, }, };