diff --git a/SodaLive/Sources/Debug/Utils/Constants.swift b/SodaLive/Sources/Debug/Utils/Constants.swift index 2563d76..8cf97ac 100644 --- a/SodaLive/Sources/Debug/Utils/Constants.swift +++ b/SodaLive/Sources/Debug/Utils/Constants.swift @@ -17,7 +17,7 @@ let BOOTPAY_APP_ID = "6242a7772701800023f68b2f" let FREE_CONTENT_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716" let CURATION_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716" let ORDERLIST_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716" -let LIVE_BANNER_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716" +let LIVE_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716" let FOLLOWING_CHANNEL_LIST_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716" let LIVE_NOW_ALL_LIST_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716" let CREATOR_CHANNEL_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716" diff --git a/SodaLive/Sources/Live/LiveView.swift b/SodaLive/Sources/Live/LiveView.swift index d974380..a58a985 100644 --- a/SodaLive/Sources/Live/LiveView.swift +++ b/SodaLive/Sources/Live/LiveView.swift @@ -6,6 +6,7 @@ // import SwiftUI +import GoogleMobileAds import RefreshableScrollView struct LiveView: View { @@ -29,8 +30,15 @@ struct LiveView: View { if viewModel.recommendLiveItems.count > 0 { SectionRecommendLiveView(items: viewModel.recommendLiveItems) .padding(.top, 13.3) + .padding(.bottom, 40) } + BannerAdView(adUnitId: LIVE_BANNER_AD_UNIT_ID) + .frame( + width: screenSize().width, + height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height + ) + if viewModel.recommendChannelItems.count > 0 { SectionRecommendChannelView( items: viewModel.isFollowingList ? diff --git a/SodaLive/Sources/Live/Now/All/LiveNowAllView.swift b/SodaLive/Sources/Live/Now/All/LiveNowAllView.swift index dfd7c90..70afd19 100644 --- a/SodaLive/Sources/Live/Now/All/LiveNowAllView.swift +++ b/SodaLive/Sources/Live/Now/All/LiveNowAllView.swift @@ -6,6 +6,7 @@ // import SwiftUI +import GoogleMobileAds import RefreshableScrollView struct LiveNowAllView: View { @@ -21,6 +22,13 @@ struct LiveNowAllView: View { VStack(spacing: 0) { DetailNavigationBar(title: "지금 라이브 중 전체보기") + BannerAdView(adUnitId: LIVE_NOW_ALL_LIST_BANNER_AD_UNIT_ID) + .frame( + width: screenSize().width, + height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height + ) + .padding(.vertical, 6.7) + RefreshableScrollView( refreshing: $viewModel.isRefresh, action: {