Skip to content

Commit

Permalink
Merge pull request #70 from jwade1327/cases-ad
Browse files Browse the repository at this point in the history
Create and add ‘Case Sponsor’ emailx ad to AM-LFTE
  • Loading branch information
Shinsina authored May 15, 2024
2 parents 2b63ae1 + 3ed2567 commit 5d43aab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tenants/all/config/email-x.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ config
width: 300,
height: 250,
},
{
name: 'case-sponsor',
id: '6644e5313a17bf3cf0123d9d',
width: 300,
height: 250,
},
])
.setAdUnits('am-community-insider', [
{
Expand Down
7 changes: 7 additions & 0 deletions tenants/all/templates/am-lfte.marko
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,13 @@ $ const resolvedToNodesConverter = ({ resolved }) => (resolved.map((node) => ({
placement-id=get(nativeX, `placements.${newsletter.alias}.case-sponsor`)
/>

<common-ad-wrapper-block
newsletter=newsletter
promotion-component="advertisement-block"
ad-unit=emailX.getAdUnit({ name: 'case-sponsor', alias: newsletter.alias })
date=date
/>

<common-external-api-block
api-url="https://my.auntminnie.com/wp-json/mo/v1/getCase/3"
resolved-to-nodes-converter=resolvedToNodesConverter
Expand Down

0 comments on commit 5d43aab

Please sign in to comment.