Skip to content

Commit 33db75e

Browse files
committed
fix: The _injectAds method now correctly places the initial ad at the adPlacementInterval and subsequent ads according to the adFrequency as defined in the remote configuration.
1 parent 24a3025 commit 33db75e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/shared/services/feed_decorator_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ class FeedDecoratorService {
411411
// 1. We have passed the initial placement interval.
412412
// 2. The number of content items *after* the initial interval is a
413413
// multiple of the ad frequency.
414-
if (currentContentItemCount > adPlacementInterval &&
414+
if (currentContentItemCount >= adPlacementInterval &&
415415
(currentContentItemCount - adPlacementInterval) % adFrequency == 0) {
416416
final adToInject = _getAdToInject();
417417
if (adToInject != null) {

0 commit comments

Comments
 (0)