Skip to content

Commit fa85749

Browse files
authored
Merge pull request #30 from mcclatchy/PE-74-ad-check
PE-74: adding the ads allowed config value
2 parents a3c7d24 + abace24 commit fa85749

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config/story.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"after": "zone-el-101",
1313
"tracking": true,
1414
"filters": {
15-
"marketInfo.allow_ads": true
15+
"ads": true
1616
},
1717
"zephr": {
1818
"feature": "zone-taboola-recommendations",

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ async function distributeZones(locker) {
1313
zones.setLocker(locker);
1414
zones.setConfig("subscriber", subscriber);
1515
zones.setConfig("dma", subscriber ? true : await locker.user.isInDMA());
16+
zones.setConfig("ads", locker.getYozonsLocker("core").areAdsAllowed());
1617

1718
// Config files
1819
if(!locker.config) {

0 commit comments

Comments
 (0)