From 612df06bb8e3997c0e1ad257280f57bcf7a775d7 Mon Sep 17 00:00:00 2001 From: Abraham Armas Cordero Date: Tue, 9 Jul 2024 11:57:37 +0200 Subject: [PATCH] fix(includebidderkeys): server responding with bidder keys even tho bidderkeys flag is not present in the request # type to use: fix, feat, build, ci, docs, style, refactor, perf, test # scope: is a class or a part of the code, provides additional contex # --- Commit Description --- # [optional body] # [optional footer(s)] --- .../Prebid/PBMCore/PBMPrebidParameterBuilder.m | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/PrebidMobile/PrebidMobileRendering/Prebid/PBMCore/PBMPrebidParameterBuilder.m b/PrebidMobile/PrebidMobileRendering/Prebid/PBMCore/PBMPrebidParameterBuilder.m index 01aca12f6..e7d872f1d 100644 --- a/PrebidMobile/PrebidMobileRendering/Prebid/PBMCore/PBMPrebidParameterBuilder.m +++ b/PrebidMobile/PrebidMobileRendering/Prebid/PBMCore/PBMPrebidParameterBuilder.m @@ -90,17 +90,11 @@ - (void)buildBidRequest:(nonnull PBMORTBBidRequest *)bidRequest { if (adFormats.count >= 2) { bidRequest.extPrebid.targeting[@"includeformat"] = [[NSNumber alloc] initWithBool:YES]; } + + bidRequest.extPrebid.targeting[@"includewinners"] = [[NSNumber alloc] initWithBool:Prebid.shared.includeWinners]; - if(Prebid.shared.includeWinners) - { - bidRequest.extPrebid.targeting[@"includewinners"] = [[NSNumber alloc] initWithBool:YES]; - } + bidRequest.extPrebid.targeting[@"includebidderkeys"] = [[NSNumber alloc] initWithBool:Prebid.shared.includeBidderKeys]; - if(Prebid.shared.includeBidderKeys) - { - bidRequest.extPrebid.targeting[@"includebidderkeys"] = [[NSNumber alloc] initWithBool:YES]; - } - bidRequest.app.publisher.publisherID = self.sdkConfiguration.prebidServerAccountId; bidRequest.app.ver = [NSBundle mainBundle].infoDictionary[@"CFBundleShortVersionString"]; bidRequest.device.pxratio = @([UIScreen mainScreen].scale);