From 88dac10c9f57180d85bfa7a5d6b53e3a4817cb25 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Tue, 28 Apr 2026 14:24:16 +0900 Subject: [PATCH] =?UTF-8?q?feat(yandex-ads):=20=EC=B1=84=ED=8C=85=20?= =?UTF-8?q?=ED=83=AD=20=EB=B0=B0=EB=84=88=20placement=EC=99=80=20ad=20unit?= =?UTF-8?q?=EC=9D=84=20=EC=B6=94=EA=B0=80=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ultraworked with [Sisyphus] https://github.com/code-yeongyu/oh-my-openagent Co-authored-by: Sisyphus --- SodaLive/Sources/Common/YandexAdSupport.swift | 11 ++++++++++- SodaLive/Sources/Debug/Utils/Constants.swift | 3 +++ SodaLive/Sources/Utils/Constants.swift | 3 +++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/SodaLive/Sources/Common/YandexAdSupport.swift b/SodaLive/Sources/Common/YandexAdSupport.swift index 3826ad9..7d5c6a4 100644 --- a/SodaLive/Sources/Common/YandexAdSupport.swift +++ b/SodaLive/Sources/Common/YandexAdSupport.swift @@ -18,6 +18,9 @@ enum YandexBannerPlacement { case seriesMainByGenre case pushNotificationList case notificationReceiveSettings + case chatCharacterList + case chatOriginalTabTop + case chatTalkTabTop } enum YandexInterstitialPlacement { @@ -46,6 +49,12 @@ enum YandexAdUnitIdProvider { YANDEX_PUSH_NOTIFICATION_LIST_BANNER_AD_UNIT_ID case .notificationReceiveSettings: YANDEX_NOTIFICATION_RECEIVE_SETTINGS_BANNER_AD_UNIT_ID + case .chatCharacterList: + YANDEX_CHAT_CHARACTER_LIST_BANNER_AD_UNIT_ID + case .chatOriginalTabTop: + YANDEX_CHAT_ORIGINAL_TAB_TOP_BANNER_AD_UNIT_ID + case .chatTalkTabTop: + YANDEX_CHAT_TALK_TAB_TOP_BANNER_AD_UNIT_ID } } @@ -65,7 +74,7 @@ struct YandexInlineBannerView: View { var horizontalPadding: CGFloat = 13.3 @State private var bannerHeight: CGFloat = 0 - @State private var isLoadFailed = false + @State private var isLoadFailed = true var body: some View { GeometryReader { proxy in diff --git a/SodaLive/Sources/Debug/Utils/Constants.swift b/SodaLive/Sources/Debug/Utils/Constants.swift index b5321a6..1896c23 100644 --- a/SodaLive/Sources/Debug/Utils/Constants.swift +++ b/SodaLive/Sources/Debug/Utils/Constants.swift @@ -43,3 +43,6 @@ let YANDEX_SERIES_MAIN_DAY_OF_WEEK_BANNER_AD_UNIT_ID = "R-M-19140297-9" let YANDEX_SERIES_MAIN_BY_GENRE_BANNER_AD_UNIT_ID = "R-M-19140297-10" let YANDEX_PUSH_NOTIFICATION_LIST_BANNER_AD_UNIT_ID = "R-M-19140297-11" let YANDEX_NOTIFICATION_RECEIVE_SETTINGS_BANNER_AD_UNIT_ID = "R-M-19140297-12" +let YANDEX_CHAT_CHARACTER_LIST_BANNER_AD_UNIT_ID = "R-M-19140297-13" +let YANDEX_CHAT_ORIGINAL_TAB_TOP_BANNER_AD_UNIT_ID = "R-M-19140297-14" +let YANDEX_CHAT_TALK_TAB_TOP_BANNER_AD_UNIT_ID = "R-M-19140297-15" diff --git a/SodaLive/Sources/Utils/Constants.swift b/SodaLive/Sources/Utils/Constants.swift index e943dc4..c452313 100644 --- a/SodaLive/Sources/Utils/Constants.swift +++ b/SodaLive/Sources/Utils/Constants.swift @@ -43,3 +43,6 @@ let YANDEX_SERIES_MAIN_DAY_OF_WEEK_BANNER_AD_UNIT_ID = "R-M-19157621-7" let YANDEX_SERIES_MAIN_BY_GENRE_BANNER_AD_UNIT_ID = "R-M-19157621-8" let YANDEX_PUSH_NOTIFICATION_LIST_BANNER_AD_UNIT_ID = "R-M-19157621-9" let YANDEX_NOTIFICATION_RECEIVE_SETTINGS_BANNER_AD_UNIT_ID = "R-M-19157621-10" +let YANDEX_CHAT_CHARACTER_LIST_BANNER_AD_UNIT_ID = "R-M-19157621-11" +let YANDEX_CHAT_ORIGINAL_TAB_TOP_BANNER_AD_UNIT_ID = "R-M-19157621-12" +let YANDEX_CHAT_TALK_TAB_TOP_BANNER_AD_UNIT_ID = "R-M-19157621-13"