/** * Call this method to inform the AppNexus SDK than an ad call * from the third-party SDK has failed to load an ad. This method * should only be called once per <code>requestAd</code> call (see * the implementations of <code>requestAd</code> for banners and * interstitials in {@link MediatedBannerAdView} and {@link * MediatedInterstitialAdView}). * * @param reason The reason why the ad call from the third-party * SDK failed. */ public void onAdFailed(ResultCode reason) { if (hasSucceeded || hasFailed || destroyed) return; markLatencyStop(); cancelTimeout(); if (currentAd != null && currentAd.getResponseUrl() != null) { fireResponseURL(currentAd.getResponseUrl(), reason); } hasFailed = true; finishController(); UTAdRequester requester = this.caller_requester.get(); if (requester != null) { requester.continueWaterfall(reason); } }
/** * Call this method to inform the AppNexus SDK than an ad call * from the third-party SDK has failed to load an ad. This method * should only be called once per <code>requestAd</code> call (see * the implementations of <code>requestAd</code> for native ad * in {@link MediatedNativeAd}. * * @param reason The reason why the ad call from the third-party * SDK failed. */ public void onAdFailed(ResultCode reason) { if (hasSucceeded || hasFailed) return; markLatencyStop(); cancelTimeout(); fireResponseURL(currentAd.getResponseUrl(), reason); hasFailed = true; // don't call the listener here. the requester will call the listener // at the end of the waterfall UTAdRequester requester = this.requester.get(); if (requester != null) { requester.continueWaterfall(reason); } }
cancelTimeout(); hasSucceeded = true; fireResponseURL(currentAd.getResponseUrl(), ResultCode.SUCCESS); UTAdRequester requester = this.caller_requester.get(); if (requester != null) {
cancelTimeout(); hasSucceeded = true; fireResponseURL(currentAd.getResponseUrl(), ResultCode.SUCCESS); UTAdRequester requester = this.requester.get(); if (requester != null) {