Custom C2SBidding
#
1、Process DescriptionTradPlusSDK also supports customized C2SBidding ads to facilitate your use of the bidding function of our server.
The difference between C2SBidding and ordinary custom ads lies in 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 Dollar
#
2、Integration Instructions#
1、Create a custom Adapter- Create a custom class you defined in the TradPlus backend, inherit TradPlusBaseAdapter and rewrite related methods
#
2、Implement TraPlusSDK related calls- "getC2SBidding", SDK starts the bidding process, and the custom Adapter needs to obtain ECPM from the relevant interfaces of the third-party SDK.
- "isBiddingLoaded", the bidding has ended and ECPM has been successfully obtained
- If the acquisition fails, use "onC2SBiddingFailed(String code, String msg)" to return the error reason to TradPlusSDK
- If the acquisition is successful, use "onC2SBiddingResult(map)" to put the price (US dollars) into the map and return it to TradPlusSDK
#
3、C2SBidding Example DescriptionThere 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 advertising and ECPM- Get ECPM after the third-party ad object is loaded
- Loading after successful bidding
#
2、Since the third-party ad object has been loaded when obtaining ECPM- There is no advertisement when getting the price. After getting the price, you need to request the advertisement again
- Loading after successful bidding