Custom C2SBidding
#
1. Process DescriptionTradPlusSDK also supports customized C2SBidding ads to facilitate you to use the bidding function of our server.
The difference between C2SBidding and ordinary custom ads is the loading process. The ad display process is the same.
The loading process of C2SBidding is as follows:
![](
⚠️ The ECPM unit returned to TradPlusSDK is USD
#
2. Integration Instructions#
1. Creating a Custom Adapter- Create a custom class that you registered in the TradPlus backend and inherit TradPlusBaseAdapter
#
2. Implement TraPlusSDK related callsCustom Adapter needs to implement the interface
- (BOOL)extraActWithEvent:(NSString *)event info:(NSDictionary *)config
and related processesevent="C2SBidding", SDK starts the bidding process, and the custom Adapter needs to obtain ECPM from the relevant interfaces of the third-party SDK.
event="LoadAdC2SBidding", the bidding has ended and the loading process is in progress, and the custom Adapter needs to perform the loading process according to the third-party SDK.
After obtaining ECPM, the custom Adapter needs to return it to the SDK through the interface
- (void)ADLoadExtraCallbackWithEvent:(NSString *)event info:(NSDictionary *)info
.Successful acquisition: event="C2SBiddingFinish", and the third-party version number and ECPM are returned to TradPlusSDK through info data.
Failed acquisition: event="C2SBiddingFail", and the error description is returned to TradPlusSDK through info data.
#
3. C2SBidding Example- There are generally two processes for C2SBidding to obtain ECPM and load ads
Common process: get ads and ECPM at the same time, for example: Baidu's C2SBidding
Other processes: get ECPM first, and then request ads after the bid is successful, for example: InMobi's banners and interstitials
#
1. Example of receiving both advertisement and ECPMBaidu interstitial example
- Get ECPM after the third-party ad object is loaded
- Loading after successful bidding
Examples:CustomBidBaiduInterstitialAdapter
#
2. Example of obtaining ECPM first and then requesting adInmobi interstitial example
- Obtain the ECPM preloading interface from the third-party SDK to obtain the ECPM process
- Load after successful bidding
Examples:CustomBidInMobiInterstitialAdapter
#
4. Display AdFor the display-related process, please refer to various types of custom ads