Compatible with Vungle SDK version 5.3.2
MODIFY
adapters/Vungle/VungleAdapter/GADMAdapterVungleInterstitial.m
adapters/Vungle/VungleAdapter/GADMAdapterVungleInterstitial.m
[_connector adapterWillLeaveApplication:self];
}
--(void)willCloseAd:(bool)completedView{
+- (void)willCloseAd:(BOOL)completedView {
[_connector adapterWillDismissInterstitial:self];
[_connector adapterDidDismissInterstitial:self];
desiredPlacement = nil;

MODIFY
adapters/Vungle/VungleAdapter/GADMAdapterVungleRewardBasedVideoAd.m
adapters/Vungle/VungleAdapter/GADMAdapterVungleRewardBasedVideoAd.m
[_connector adapterWillLeaveApplication:self];
}
--(void)willCloseAd:(bool)completedView{
+- (void)willCloseAd:(BOOL)completedView {
if (completedView){
GADAdReward* reward = [[GADAdReward alloc] initWithRewardType:@"vungle"
rewardAmount:[NSDecimalNumber decimalNumberWithString:@"1"]];

MODIFY
adapters/Vungle/VungleAdapter/VungleAdNetworkExtras.h
adapters/Vungle/VungleAdapter/VungleAdNetworkExtras.h
*/
@property (nonatomic, assign) BOOL muted;
+@property (nonatomic, assign) NSUInteger ordinal;
+
+@property (nonatomic, assign) NSTimeInterval flexViewAutoDismissSeconds;
@property (nonatomic, copy) NSArray<NSString *> * _Nonnull allPlacements;

MODIFY
adapters/Vungle/VungleAdapter/vungleHelper.h
adapters/Vungle/VungleAdapter/vungleHelper.h
- (void)adAvailable;
- (void)willShowAd;
- (void)willLeaveApplication;
-- (void)willCloseAd:(bool)completedView;
+- (void)willCloseAd:(BOOL)completedView;
@property(readonly, strong) NSString *desiredPlacement;
@property(readonly, assign) BOOL waitingInit;
@end

MODIFY
adapters/Vungle/VungleAdapter/vungleHelper.m
adapters/Vungle/VungleAdapter/vungleHelper.m
#import "vungleHelper.h"
-static NSString *const vungleAdapterVersion = @"5.3.0";
+static NSString *const vungleAdapterVersion = @"5.3.2";
static NSString *const kApplicationID = @"application_id";
static NSString *const kPlacementID = @"placementID";
@@ -144,6 +144,10 @@ static NSString *const kPlacementID = @"placementID";
[VungleSDK sharedSDK].muted = extras.muted;
if (extras.userId)
[options setObject:extras.userId forKey:VunglePlayAdOptionKeyUser];
+ if (extras.ordinal)
+ [options setObject:@(extras.ordinal) forKey:VunglePlayAdOptionKeyOrdinal];
+ if (extras.flexViewAutoDismissSeconds)
+ [options setObject:@(extras.flexViewAutoDismissSeconds) forKey:VunglePlayAdOptionKeyFlexViewAutoDismissSeconds];
if (![[VungleSDK sharedSDK] playAd:viewController
options:options
placementID:delegate.desiredPlacement
@@ -179,7 +183,7 @@ static NSString *const kPlacementID = @"placementID";
- (void)vungleWillCloseAdWithViewInfo:(nonnull VungleViewInfo *)info placementID:(nonnull NSString *)placementID {
if (_playingDelegate) {
- [_playingDelegate willCloseAd:info.completedView];
+ [_playingDelegate willCloseAd:[info.completedView boolValue]];
}
}

Compatible with Vungle SDK version 5.3.2