Skip to content

Commit

Permalink
Verve/2.11.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins committed Mar 18, 2022
1 parent 8ad9052 commit cc9ec57
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Verve/AppLovinMediationVerveAdapter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ s.authors =
'AppLovin Corporation' => '[email protected]'
}
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"
Expand Down
3 changes: 3 additions & 0 deletions Verve/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
26 changes: 25 additions & 1 deletion Verve/VerveAdapter/ALVerveMediationAdapter.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#import "ALVerveMediationAdapter.h"
#import <HyBid.h>

#define ADAPTER_VERSION @"2.11.1.3"
#define ADAPTER_VERSION @"2.11.1.4"

@interface ALVerveMediationAdapterInterstitialAdDelegate : NSObject<HyBidInterstitialAdDelegate>
@property (nonatomic, weak) ALVerveMediationAdapter *parentAdapter;
Expand Down Expand Up @@ -138,6 +138,14 @@ - (void)loadInterstitialAdForParameters:(id<MAAdapterResponseParameters>)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];
Expand Down Expand Up @@ -179,6 +187,14 @@ - (void)loadRewardedAdForParameters:(id<MAAdapterResponseParameters>)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];
Expand Down Expand Up @@ -222,6 +238,14 @@ - (void)loadAdViewAdForParameters:(id<MAAdapterResponseParameters>)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];
Expand Down

0 comments on commit cc9ec57

Please sign in to comment.