39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
//
|
|
// AppsFlyerAdRevenueWrapper.mm
|
|
// Unity-iPhone
|
|
//
|
|
// Created by Jonathan Wesfield on 25/11/2019.
|
|
//
|
|
|
|
#import "AppsFlyerAdRevenueWrapper.h"
|
|
|
|
|
|
@implementation AppsFlyerAdRevenueWrapper
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
|
const void _start(int length, int* adRevenueTypes){
|
|
[AppsFlyerAdRevenue start];
|
|
}
|
|
const void _setIsDebugAdrevenue(bool isDebug){
|
|
[[AppsFlyerAdRevenue shared] setIsDebug:isDebug];
|
|
}
|
|
|
|
const void _logAdRevenue(const char* monetizationNetwork,
|
|
int mediationNetwork,
|
|
double eventRevenue,
|
|
const char* revenueCurrency,
|
|
const char* additionalParameters){
|
|
[[AppsFlyerAdRevenue shared] logAdRevenueWithMonetizationNetwork:stringFromChar(monetizationNetwork)
|
|
mediationNetwork:(AppsFlyerAdRevenueMediationNetworkType) mediationNetwork
|
|
eventRevenue:[NSNumber numberWithDouble:eventRevenue]
|
|
revenueCurrency:stringFromChar(revenueCurrency)
|
|
additionalParameters:dictionaryFromJson(additionalParameters)];
|
|
|
|
}
|
|
}
|
|
|
|
@end
|