@@ -79,14 +79,12 @@ const canInsertMobileAd =
79
79
* - Is NOT the slot used for the merch high position
80
80
* - Is NOT a thrasher if it is the first container
81
81
* - Is NOT before a thrasher
82
- * - Is NOT before a branded container
83
82
* - Is NOT the most viewed container
84
83
*/
85
84
const rules = [
86
85
! isMerchHighPosition ( index , merchHighPosition ) ,
87
86
! isFirstContainerAndThrasher ( collection . collectionType , index ) ,
88
87
! isBeforeThrasher ( index , collections ) ,
89
- ! isBeforeBrandedContainer ( index , collections ) ,
90
88
! isMostViewedContainer ( collection ) ,
91
89
] ;
92
90
@@ -95,6 +93,8 @@ const canInsertMobileAd =
95
93
// Allow insertion after first container at any time but for all other situations,
96
94
// prevent insertion before a secondary level container
97
95
index === 0 || ! isBeforeSecondaryLevelContainer ( index , collections ) ,
96
+ // Prevent insertion before a branded container
97
+ ! isBeforeBrandedContainer ( index , collections ) ,
98
98
] ;
99
99
100
100
// Ad insertion is possible if every condition is met
0 commit comments