Skip to content

Commit 3eaab4c

Browse files
committed
Typo fix for mediation network [logAdRevenue]
1 parent 1200702 commit 3eaab4c

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

demos/appsflyer-react-native-app/components/AppsFlyer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function AFLogEvent(name, values) {
4040
export function AFLogAdRevenue(){
4141
const adRevenueData = {
4242
monetizationNetwork: 'AF-AdNetwork',
43-
mediationNetwork: MEDIATION_NETWORK.IRONSOURCE,
43+
mediationNetwork: MEDIATION_NETWORK.DIRECT_MONETIZATION_NETWORK,
4444
currencyIso4217Code: 'USD',
4545
revenue: 1.23,
4646
additionalParameters : {

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ appsFlyer.logEvent = logEvent;
6060

6161
export const MEDIATION_NETWORK = Object.freeze({
6262
IRONSOURCE : "ironsource",
63-
APPLOVIN_MAX : "applovinmax",
64-
GOOGLE_ADMOB : "googleadmob",
63+
APPLOVIN_MAX : "applovin_max",
64+
GOOGLE_ADMOB : "google_admob",
6565
FYBER : "fyber",
6666
APPODEAL : "appodeal",
6767
ADMOST : "Admost",
@@ -70,9 +70,9 @@ export const MEDIATION_NETWORK = Object.freeze({
7070
YANDEX : "Yandex",
7171
CHARTBOOST : "chartboost",
7272
UNITY : "Unity",
73-
TOPON_PTE : "toponpte",
74-
CUSTOM_MEDIATION : "customMediation",
75-
DIRECT_MONETIZATION_NETWORK : "directMonetizationNetwork"
73+
TOPON_PTE : "topon_pte",
74+
CUSTOM_MEDIATION : "custom_mediation",
75+
DIRECT_MONETIZATION_NETWORK : "direct_monetization_network"
7676
});
7777

7878
function logAdRevenue(adRevenueData) {

ios/RNAppsFlyer.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ -(NSError *) callSdkInternal:(NSDictionary*)initSdkOptions {
196196

197197
// Use literals to map the mediation network string to the corresponding enum value
198198
NSDictionary<NSString *, NSNumber *> *mediationNetworkMappings = @{
199-
@"googleadmob": @(AppsFlyerAdRevenueMediationNetworkTypeGoogleAdMob),
199+
@"google_admob": @(AppsFlyerAdRevenueMediationNetworkTypeGoogleAdMob),
200200
@"ironsource": @(AppsFlyerAdRevenueMediationNetworkTypeIronSource),
201-
@"applovinmax": @(AppsFlyerAdRevenueMediationNetworkTypeApplovinMax),
201+
@"applovin_max": @(AppsFlyerAdRevenueMediationNetworkTypeApplovinMax),
202202
@"fyber": @(AppsFlyerAdRevenueMediationNetworkTypeFyber),
203203
@"appodeal": @(AppsFlyerAdRevenueMediationNetworkTypeAppodeal),
204204
@"admost": @(AppsFlyerAdRevenueMediationNetworkTypeAdmost),
@@ -207,9 +207,9 @@ -(NSError *) callSdkInternal:(NSDictionary*)initSdkOptions {
207207
@"yandex": @(AppsFlyerAdRevenueMediationNetworkTypeYandex),
208208
@"chartboost": @(AppsFlyerAdRevenueMediationNetworkTypeChartBoost),
209209
@"unity": @(AppsFlyerAdRevenueMediationNetworkTypeUnity),
210-
@"toponpte": @(AppsFlyerAdRevenueMediationNetworkTypeToponPte),
211-
@"custom": @(AppsFlyerAdRevenueMediationNetworkTypeCustom),
212-
@"directmonetization": @(AppsFlyerAdRevenueMediationNetworkTypeDirectMonetization),
210+
@"topon_pte": @(AppsFlyerAdRevenueMediationNetworkTypeToponPte),
211+
@"custom_mediation": @(AppsFlyerAdRevenueMediationNetworkTypeCustom),
212+
@"direct_monetization_network": @(AppsFlyerAdRevenueMediationNetworkTypeDirectMonetization),
213213
};
214214

215215
NSNumber *mediationNetworkEnumNumber = mediationNetworkMappings[mediationNetworkString.lowercaseString];

0 commit comments

Comments
 (0)