From 93d2f4cfd09c7e5b1b154c32dc557ba47aeee9cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Matu=C5=82a?= Date: Fri, 23 Jun 2023 14:13:04 +0200 Subject: [PATCH] Use native delegate to notify appLovin of early failures to load ads (#873) Co-authored-by: Jakub Matula --- .../PrebidMAXMediationAdapter+MANativeAdAdapter.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EventHandlers/PrebidMobileMAXAdapters/Sources/PrebidMAXMediationAdapter+MANativeAdAdapter.swift b/EventHandlers/PrebidMobileMAXAdapters/Sources/PrebidMAXMediationAdapter+MANativeAdAdapter.swift index 2cb907d7b..1c78d2a9b 100644 --- a/EventHandlers/PrebidMobileMAXAdapters/Sources/PrebidMAXMediationAdapter+MANativeAdAdapter.swift +++ b/EventHandlers/PrebidMobileMAXAdapters/Sources/PrebidMAXMediationAdapter+MANativeAdAdapter.swift @@ -24,19 +24,19 @@ extension PrebidMAXMediationAdapter: MANativeAdAdapter, NativeAdEventDelegate { guard let serverParameter = parameters.serverParameters[MAXCustomParametersKey] as? [String: String] else { let error = MAAdapterError(nsError: MAXAdaptersError.noServerParameter) - bannerDelegate?.didFailToLoadAdViewAdWithError(error) + nativeDelegate?.didFailToLoadNativeAdWithError(error) return } guard let targetingInfo = parameters.localExtraParameters[PBMMediationTargetingInfoKey] as? [String: String] else { let error = MAAdapterError(nsError: MAXAdaptersError.noTargetingInfoInBid) - bannerDelegate?.didFailToLoadAdViewAdWithError(error) + nativeDelegate?.didFailToLoadNativeAdWithError(error) return } guard MediationUtils.isServerParameterDictInTargetingInfoDict(serverParameter, targetingInfo) else { let error = MAAdapterError(nsError: MAXAdaptersError.wrongServerParameter) - bannerDelegate?.didFailToLoadAdViewAdWithError(error) + nativeDelegate?.didFailToLoadNativeAdWithError(error) return }