diff --git a/ios/Plugin/AppsFlyerPlugin.swift b/ios/Plugin/AppsFlyerPlugin.swift index b9abb0d..eb03b77 100644 --- a/ios/Plugin/AppsFlyerPlugin.swift +++ b/ios/Plugin/AppsFlyerPlugin.swift @@ -167,33 +167,33 @@ public class AppsFlyerPlugin: CAPPlugin { // Helper function to map mediation network string to the AppsFlyer enum private func MediationNetworkType(rawValue: String) -> MediationNetworkType? { switch rawValue { - case "googleadmob": + case "google_admob": return .googleAdMob case "fyber": return .fyber case "ironsource": return .ironSource - case "applovinmax": + case "applovin_max": return .applovinMax case "appodeal": return .appodeal - case "Admost": + case "admost": return .admost - case "Topon": + case "topon": return .topon - case "Tradplus": + case "tradplus": return .tradplus - case "Yandex": + case "yandex": return .yandex case "chartboost": return .chartBoost - case "Unity": + case "unity": return .unity - case "toponpte": + case "topon_pte": return .toponPte - case "customMediation": + case "custom_mediation": return .custom - case "directMonetizationNetwork": + case "direct_monetization_network": return .directMonetization default: return nil diff --git a/src/Appsflyer_constants.ts b/src/Appsflyer_constants.ts index 85b6ce9..b3a2e99 100644 --- a/src/Appsflyer_constants.ts +++ b/src/Appsflyer_constants.ts @@ -11,17 +11,17 @@ export enum AFConstants { export enum MediationNetwork { IRONSOURCE = "ironsource", - APPLOVIN_MAX = "applovinmax", - GOOGLE_ADMOB = "googleadmob", + APPLOVIN_MAX = "applovin_max", + GOOGLE_ADMOB = "google_admob", FYBER = "fyber", APPODEAL = "appodeal", - ADMOST = "Admost", - TOPON = "Topon", - TRADPLUS = "Tradplus", - YANDEX = "Yandex", + ADMOST = "admost", + TOPON = "topon", + TRADPLUS = "tradplus", + YANDEX = "yandex", CHARTBOOST = "chartboost", - UNITY = "Unity", - TOPON_PTE = "toponpte", - CUSTOM_MEDIATION = "customMediation", - DIRECT_MONETIZATION_NETWORK = "directMonetizationNetwork", + UNITY = "unity", + TOPON_PTE = "topon_pte", + CUSTOM_MEDIATION = "custom_mediation", + DIRECT_MONETIZATION_NETWORK = "direct_monetization_network", } \ No newline at end of file