Skip to content

Commit 34c9762

Browse files
committed
refactor(ads): remove unused ad template and size comments
- Remove outdated comments about ad template types and sizes - Keep the logic for selecting native ad template and banner ad size based on headline image style
1 parent b3d218f commit 34c9762

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/ads/admob_ad_provider.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ class AdMobAdProvider implements AdProvider {
5656
_logger.info('Attempting to load native ad from unit ID: $adId');
5757

5858
// Determine the template type based on the user's feed style preference.
59-
// Use largeThumbnail for a more prominent, square-like ad.
6059
final templateType = headlineImageStyle == HeadlineImageStyle.largeThumbnail
6160
? NativeAdTemplateType.medium
6261
: NativeAdTemplateType.small;
@@ -143,7 +142,6 @@ class AdMobAdProvider implements AdProvider {
143142
_logger.info('Attempting to load banner ad from unit ID: $adId');
144143

145144
// Determine the ad size based on the user's feed style preference.
146-
// Use mediumRectangle for a more square-like ad with large thumbnails.
147145
final adSize = headlineImageStyle == HeadlineImageStyle.largeThumbnail
148146
? admob.AdSize.mediumRectangle
149147
: admob.AdSize.banner;

0 commit comments

Comments
 (0)