diff --git a/com.adsbynimbus.nimbus/Runtime/Scripts/Nimbus.Internal/Interceptor/ThirdPartyDemand/Vungle/VungleAndroid.cs b/com.adsbynimbus.nimbus/Runtime/Scripts/Nimbus.Internal/Interceptor/ThirdPartyDemand/Vungle/VungleAndroid.cs index e39f75a5..d3ccbcd3 100644 --- a/com.adsbynimbus.nimbus/Runtime/Scripts/Nimbus.Internal/Interceptor/ThirdPartyDemand/Vungle/VungleAndroid.cs +++ b/com.adsbynimbus.nimbus/Runtime/Scripts/Nimbus.Internal/Interceptor/ThirdPartyDemand/Vungle/VungleAndroid.cs @@ -27,9 +27,11 @@ public BidRequest ModifyRequest(BidRequest bidRequest, string data) { if (data.IsNullOrEmpty()) { return bidRequest; } - if (bidRequest.User.Ext != null) { - bidRequest.User.Ext.VungleBuyerId = data; + if (bidRequest.User.Ext == null) { + bidRequest.User.Ext = new UserExt(); } + bidRequest.User.Ext.VungleBuyerId = data; + return bidRequest; } diff --git a/com.adsbynimbus.nimbus/Runtime/Scripts/Nimbus.Internal/Interceptor/ThirdPartyDemand/Vungle/VungleIOS.cs b/com.adsbynimbus.nimbus/Runtime/Scripts/Nimbus.Internal/Interceptor/ThirdPartyDemand/Vungle/VungleIOS.cs index f87be30b..c009e7bc 100644 --- a/com.adsbynimbus.nimbus/Runtime/Scripts/Nimbus.Internal/Interceptor/ThirdPartyDemand/Vungle/VungleIOS.cs +++ b/com.adsbynimbus.nimbus/Runtime/Scripts/Nimbus.Internal/Interceptor/ThirdPartyDemand/Vungle/VungleIOS.cs @@ -30,9 +30,11 @@ public BidRequest ModifyRequest(BidRequest bidRequest, string data) { if (data.IsNullOrEmpty()) { return bidRequest; } - if (bidRequest.User.Ext != null) { - bidRequest.User.Ext.VungleBuyerId = data; + if (bidRequest.User.Ext == null) { + bidRequest.User.Ext = new UserExt(); } + bidRequest.User.Ext.VungleBuyerId = data; + return bidRequest; }