Menu

The Callback Info

💡Tips

  • 🔧 This document provides a detailed explanation of the ad information fields (McAd) included in SDK callbacks, as well as the structure of error information (McError) and reward information (McReward).

1. McAd Ad Callback Information

McAd Field Description
String adUnitId Mediation Unit ID
int mediationId Mediation Platform ID: topon=1, max=2, admob=4
String mediationPlacementId Placement ID on the Mediation Platform
String networkName Ad Network name
int networkFirmId Ad Network Firm ID
String networkPlacementId Placement ID on the Ad Network
double revenue Revenue per ad impression. The currency can be obtained via currency, and the precision via revenuePrecision
String revenuePrecision Revenue precision. Possible values: "publisher_defined": price defined for the ad source in the mediation dashboard; "exact": exact revenue from real-time bidding; "estimated": estimated revenue; "undefined": undefined; "": empty string
String? country Country code, e.g. "CN"
String currency Revenue currency unit. Use this to determine the price currency, typically CNY or USD
String? placement Ad scene identifier
String? showId Unique ad impression identifier
McNativeAd? nativeAd Native ad object (only available in native ad format callbacks)
String originILRD Original ILRD information from the Mediation Platform ad Callback
double ecpm Estimated eCPM
int biddingType Bidding type: 0=regular, 1=C2S, 2=S2S
Map getOriginJson() Method to get the original JSON data
double strategyPrice Strategy price
double estPrice Estimated price
int networkPriceType Price type: 0 - fill price; 1 - strategy price; 2 - estimated price; 3 - AdMob actual impression Revenue

2. McError Error Information

When ad loading or display fails, the callback carries an McError object with the following fields:

McError Field Description
int code Error Code
String message Error Message
Map mediationError Detailed error information from each Mediation Platform

McMediationError Mediation Platform Error Details

McMediationError Field Description
int mediationId Mediation Platform ID
String mediationPlacementId Mediation Platform Placement ID
int code Mediation Platform Error Code
String message Mediation Platform Error Message
int mediatedNetworkErrorCode Ad Network Error Code
String mediatedNetworkErrorMessage Ad Network Error Message

3. McReward Reward Information

When a rewarded ad grants a reward, the reward callback carries an McReward object with the following fields:

McReward Field Description
int amount The reward amount
String label The reward label

Previous
MREC
Next
Integration-Checklist
Last modified: 2026-06-25Powered by