Starting from v6.3.70, a new callback, ATAdMultipleLoadedListener#onAdMultipleLoaded(ATRequestingInfo requestingInfo), has been added. It is used to return information about Ad Sources that are still loading (higher priced) and still bidding (unknown price) to the developer.
You can listen via the following code:
public class AdMultipleLoadedListener implements ATAdMultipleLoadedListener {
/**
* The first triggering time occurs before the callback timing of the Ad Placement load success event. Afterwards, it will be triggered again when a higher-priced Ad Source request succeeds.
* When the requestingInfo parameter is null, it indicates that there are no higher-priced Ad Sources still requesting, and no Ad Sources still bidding.
* When the requestingInfo parameter is not null, you can call requestingInfo.getLoadingAdInfoList() to get the info of Ad Sources still loading (higher priced). It may return null.
* When the requestingInfo parameter is not null, you can call requestingInfo.getBiddingAttemptAdInfoList() to get the info of Ad Sources still bidding (unknown price). It may return null.
*
*/
@Override
public void onAdMultipleLoaded(ATRequestingInfo requestingInfo) {
if (requestingInfo != null) {
List<atadinfo> loadingAdInfoList = requestingInfo.getLoadingAdInfoList();
List<atadinfo> biddingAttemptAdInfoList = requestingInfo.getBiddingAttemptAdInfoList();
Log.i(TAG, "onAdMultipleLoaded: loadingHigherPriceAdSize=" + (loadingAdInfoList != null ? loadingAdInfoList.size() : 0) + ", " + loadingAdInfoList
+ "\n" + "biddingAttemptAdSize=" + (biddingAttemptAdInfoList != null ? biddingAttemptAdInfoList.size() : 0) + ", " + biddingAttemptAdInfoList
);
} else {
Log.i(TAG, "onAdMultipleLoaded: loadingHigherPriceAdSize=0, biddingAttemptAdSize=0");
}
}
}
mATRewardVideoAd().setAdMultipleLoadedListener(new AdMultipleLoadedListener());// Rewarded Video
// mATInterstitial().setAdMultipleLoadedListener(new AdMultipleLoadedListener());// Interstitial Ad
// mATSplashAd().setAdMultipleLoadedListener(new AdMultipleLoadedListener());// Splash Ad
// mATBannerView().setAdMultipleLoadedListener(new AdMultipleLoadedListener());// Banner Ad
// mATNative().setAdMultipleLoadedListener(new AdMultipleLoadedListener());// Native Ad
</atadinfo></atadinfo>
When the developer needs to continue waiting for the results of Ad Source requests or bidding, set ATAdSourceStatusListener to listen.
Note: For the ATAdInfo and ATAdSourceStatusListener mentioned in this document, please refer to Callback Info Description.