AppsFlyerAdRevenue

概要

AppsFlyerAdRevenue is the parent class for the ad revenue SDK.

プロパティ

MediationNetworkType

定数

タイプ名前詳細
StringironsourceThe name of the mediation network.
StringapplovinmaxThe name of the mediation network.
StringgoogleadmobThe name of the mediation network.
StringfyberThe name of the mediation network.
StringappodealThe name of the mediation network.
StringadmostThe name of the mediation network.
StringtoponThe name of the mediation network.
StringtradplusThe name of the mediation network.
StringyandexThe name of the mediation network.
StringchartboostThe name of the mediation network.
StringunityThe name of the mediation network.

メソッド

start

メソッドのシグネチャ

(void)start;

詳細
Initializes the ad revenue SDK.

引数の入力

This method doesn't accept input arguments.

返されるコード
void.

logAdRevenue

メソッドのシグネチャ

(void)logAdRevenueWithMonetizationNetwork:(NSString * _Nonnull)monetizationNetwork
      mediationNetwork:(AppsFlyerAdRevenueMediationNetworkType)mediationNetwork
      eventRevenue:(NSNumber * _Nonnull)eventRevenue
      revenueCurrency:(NSString * _Nonnull)revenueCurrency
      additionalParameters:(NSDictionary * _Nullable)additionalParameters

詳細
Logs an ad revenue impression.

引数の入力

タイプ名前詳細
StringmonetizationNetworkメディエーションネットワークの名前。
MediationNetworkTypemediationNetworkEnum of the mediation network.
StringrevenueCurrencyCurrency of the ad revenue event.
NSNumbereventRevenueAmount of the ad revenue event.
NSDictionaryadditionalParametersContains native and custom fields for the ad revenue payload, as described in the following usage example.

返されるコード
void.

使用例:

let adRevenueParams:[AnyHashable: Any] = [
            kAppsFlyerAdRevenueCountry : "us",
            kAppsFlyerAdRevenueAdUnit : "02134568",     //Add ! here
            kAppsFlyerAdRevenueAdType : "Banner",  //Add ! here
            kAppsFlyerAdRevenuePlacement : "place",
            kAppsFlyerAdRevenueECPMPayload : "encrypt",
            "foo" : "testcustom",
            "bar" : "testcustom2"
        ]
        
        AppsFlyerAdRevenue.shared().logAdRevenue(
            monetizationNetwork: "facebook",
            mediationNetwork: MediationNetworkType.moPub,
            eventRevenue: 0.026,
            revenueCurrency: "USD",
            additionalParameters: adRevenueParams)

このページは役に立ちましたか?