From cc9ec57856f60310a3b86a01b7b234659d7f715e Mon Sep 17 00:00:00 2001 From: jenkins Date: Fri, 18 Mar 2022 14:43:46 -0700 Subject: [PATCH] Verve/2.11.1.4 --- Verve/AppLovinMediationVerveAdapter.podspec | 2 +- Verve/CHANGELOG.md | 3 +++ Verve/VerveAdapter/ALVerveMediationAdapter.m | 26 +++++++++++++++++++- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/Verve/AppLovinMediationVerveAdapter.podspec b/Verve/AppLovinMediationVerveAdapter.podspec index 03ee5369c9..a96f367832 100644 --- a/Verve/AppLovinMediationVerveAdapter.podspec +++ b/Verve/AppLovinMediationVerveAdapter.podspec @@ -5,7 +5,7 @@ s.authors = 'AppLovin Corporation' => 'devsupport@applovin.com' } s.name = 'AppLovinMediationVerveAdapter' -s.version = '2.11.1.3' +s.version = '2.11.1.4' s.platform = :ios, '9.0' s.summary = 'Verve adapter used for mediation with the AppLovin MAX SDK' s.homepage = "https://github.com/CocoaPods/Specs/search?o=desc&q=#{s.name}&s=indexed" diff --git a/Verve/CHANGELOG.md b/Verve/CHANGELOG.md index 8f361f2f25..9dbee04b02 100644 --- a/Verve/CHANGELOG.md +++ b/Verve/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 2.11.1.4 +* Add check for SDK initialization before loading an ad. + ## 2.11.1.3 * Add support for passing in a presenting view controller. diff --git a/Verve/VerveAdapter/ALVerveMediationAdapter.m b/Verve/VerveAdapter/ALVerveMediationAdapter.m index cba4b61b7c..dbc00dda7f 100644 --- a/Verve/VerveAdapter/ALVerveMediationAdapter.m +++ b/Verve/VerveAdapter/ALVerveMediationAdapter.m @@ -9,7 +9,7 @@ #import "ALVerveMediationAdapter.h" #import -#define ADAPTER_VERSION @"2.11.1.3" +#define ADAPTER_VERSION @"2.11.1.4" @interface ALVerveMediationAdapterInterstitialAdDelegate : NSObject @property (nonatomic, weak) ALVerveMediationAdapter *parentAdapter; @@ -138,6 +138,14 @@ - (void)loadInterstitialAdForParameters:(id)paramet { [self log: @"Loading interstitial ad"]; + if ( ![HyBid isInitialized] ) + { + [self log: @"Verve SDK is not initialized: failing interstitial ad load..."]; + [delegate didFailToLoadInterstitialAdWithError: MAAdapterError.notInitialized]; + + return; + } + [self updateLocationCollectionEnabled: parameters]; [self updateConsentWithParameters: parameters]; [self updateMuteStateForParameters: parameters]; @@ -179,6 +187,14 @@ - (void)loadRewardedAdForParameters:(id)parameters { [self log: @"Loading rewarded ad"]; + if ( ![HyBid isInitialized] ) + { + [self log: @"Verve SDK is not initialized: failing rewarded ad load..."]; + [delegate didFailToLoadRewardedAdWithError: MAAdapterError.notInitialized]; + + return; + } + [self updateLocationCollectionEnabled: parameters]; [self updateConsentWithParameters: parameters]; [self updateMuteStateForParameters: parameters]; @@ -222,6 +238,14 @@ - (void)loadAdViewAdForParameters:(id)parameters ad { [self log: @"Loading %@ ad view ad...", adFormat.label]; + if ( ![HyBid isInitialized] ) + { + [self log: @"Verve SDK is not initialized: failing %@ ad load...", adFormat.label]; + [delegate didFailToLoadAdViewAdWithError: MAAdapterError.notInitialized]; + + return; + } + [self updateLocationCollectionEnabled: parameters]; [self updateConsentWithParameters: parameters]; [self updateMuteStateForParameters: parameters];