Skip to content

Ad monetization data Report ​

For games with ironSource's monetization advertising function, use this API to Appsflyer the monetization data. Games that do not use ironSource to cash in advertisements may not connect to this API.


Function ​

objective-c
- (void)gamedreamerAdRevenueLogWithAdNetwork:(NSString *)adNetwork Renevue:(NSNumber *)revenue Addition:(NSDictionary *)addition;
Parameter nameParameter typeparameter specification
adNetworkNSStringAd sources, such as Facebook, admob, unity, etc., ironSource can be obtained through the adnetwork of LPMAdInfo
revenueNSNumberThe amount of income, ironSource can be obtained through the revenue of LPMAdInfo.
additionNSDictionaryAdditional parameter information, selected according to the actual needs of the product, you can use the key related to appsflyer, such as monetizationnetwork, mediationnetwork, eventrevenue, eventrevenuecurrency, customparameters, advenuesdk, country, adunit, ad_type, placement,If there is no requirement, you can pass in an empty dictionary @{}

Example code ​

objective-c
- (void)didRewardAdWithAdInfo:(nonnull LPMAdInfo *)adInfo reward:(nonnull LPMReward *)reward {
    [GamedreamerManager.shareInstance gamedreamerAdRevenueLogWithAdNetwork:adInfo.adNetwork Renevue:adInfo.revenue Addition:@{}];
}