Skip to content

Commit

Permalink
Merge branch 'PGATOUR:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
bosco-ensemble authored Apr 19, 2024
2 parents ffbde55 + 9f9fd40 commit 389df94
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions blocks/marketing/marketing.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,19 @@ export default async function decorate(block) {
}
} else {
window.tude.setFeatureFlags({ injectAds: false });
window.tude.refreshAdsViaDivMappings([{
const adTest = new URLSearchParams(window.location.search).get('ad_test');
const adMapping = {
divId: slot,
baseDivId: slot,
}]);
};
if (adTest) {
adMapping.targeting = {
ad_test: adTest,
};
}
window.tude.refreshAdsViaDivMappings([
adMapping,
]);
}
});
});
Expand Down

0 comments on commit 389df94

Please sign in to comment.