| mediationAdapter |
MCMediationAdapter * |
Mediation platform adapter (weak reference) |
| mediationPlacementId |
NSString * |
Mediation platform ad placement ID |
| networkPlacementId |
NSString * |
Ad network placement ID |
| scenarioId |
NSString * |
Scenario ID |
| format |
MCAdFormat * |
Ad format, values as follows:
typedef NS_ENUM(NSUInteger, MCAdFormatType) {
MCAdFormatTypeNative = 0, //Native
MCAdFormatTypeRewarded, //Rewarded
MCAdFormatTypeBanner, //Banner
MCAdFormatTypeInterstitial, //Interstitial
MCAdFormatTypeSplash, //Splash
}; |
| revenue |
double |
Get revenue. The revenue for each ad impression: for regular ad sources, it's the sorting price filled in the TopOn dashboard for the corresponding ad source; for bidding ad sources, it's the real-time bidding price. The currency unit can be obtained through currency, usually CNY or USD, and precision can be obtained through revenuePrecision. |
| ecpm |
double |
eCPM (read-only) |
| revenuePrecision |
RevenuePrecisionEnum |
Revenue precision, values as follows:
typedef NSString * RevenuePrecisionEnum NS_STRING_ENUM;
extern RevenuePrecisionEnum const RuePsionPublisherDefined; //Price defined by developer in mediation dashboard for ad source
extern RevenuePrecisionEnum const RuePsionEstimated; //Estimated price
extern RevenuePrecisionEnum const RuePsionExact; //Exact price
extern RevenuePrecisionEnum const RuePsionEcpmApi; //eCPM API price
extern RevenuePrecisionEnum const RuePsionUndefined; //Unknown |
| country |
NSString * |
Country code, e.g.: "CN" |
| currency |
NSString * |
Currency unit. Determines the currency of current eCPM or revenue, usually CNY or USD. For example: "USD" means the returned price is in "US Dollars", and revenue is also in "US Dollars". |
| networkName |
NSString * |
Ad network name |
| networkId |
NSNumber * |
Ad network ID |
| extraDic |
NSDictionary * |
Extra information extension, currently returns empty internally (can be null) |
| originData |
NSString * |
Original data |
| weight |
double |
Display weight |
| mediationId |
NSInteger |
Mediation platform ID, used to distinguish mediation platforms, values as follows:
typedef NS_ENUM(NSInteger, MCMediationIDType) {
MCMediationIDTypeTopon = 1, //TopOn mediation platform
MCMediationIDTypeMax = 2, //Max mediation platform
MCMediationIDTypeAdmob = 4 //AdMob mediation platform
}; |
| mediationName |
NSString * |
Mediation platform name |
| requestId |
NSString * |
Request ID |
| networkTransId |
NSString * |
Platform transaction ID |
| biddingType |
MCAdBiddingType |
Bidding type, values as follows:
typedef NS_ENUM(NSInteger, MCAdBiddingType) {
MCAdBiddingTypeUnknown = -1, //Unknown
MCAdBiddingTypeNormal = 0, //Normal
MCAdBiddingTypeC2S = 1, //Client-to-server bidding
MCAdBiddingTypeS2S = 2 //Server-to-server bidding
}; |
| mediationSecretId |
NSInteger |
Unique identifier for secret key, only supported by TopOn |
| mediationEncEcpmInfo |
NSString * |
Encrypted eCPM data, only supported by TopOn |
| networkPriceType |
MCAdNetworkPriceType |
Data source type for returned price, values as follows:
typedef NS_ENUM(NSInteger, MCAdNetworkPriceType) {
MCAdNetworkPriceTypeLoaded = 0, //Price returned from mediation platform load success callback, default
MCAdNetworkPriceTypeStrategy = 1, //Strategy-delivered sorting price
MCAdNetworkPriceTypeEstimate = 2, //SDK-calculated estimated bidding price
MCAdNetworkPriceTypeRealILRD = 3, //AdMob SDK callback impression-level revenue data
MCAdNetworkPriceTypeSDKAPI = 4 //Price passed by developer through SDK API
}; |
| estimatePrice |
double |
SDK estimated price, only supported by AdMob mediation,and SDK verion >=3.5.10 |
| strategyPrice |
double |
Strategy-delivered sorting price, only supported by AdMob mediation,and SDK verion >=3.5.10 |