From abeb3aa94fda12491e09a537c02b7759e2437bd6 Mon Sep 17 00:00:00 2001 From: Jono Sligh <139150153+jsligh@users.noreply.github.com> Date: Tue, 9 Jul 2024 11:16:53 -0500 Subject: [PATCH] Revert "fix(includebidderkeys): server responding with bidder keys even tho bidderkeys flag is not present in the request" --- .../Prebid/PBMCore/PBMPrebidParameterBuilder.m | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/PrebidMobile/PrebidMobileRendering/Prebid/PBMCore/PBMPrebidParameterBuilder.m b/PrebidMobile/PrebidMobileRendering/Prebid/PBMCore/PBMPrebidParameterBuilder.m index e7d872f1d..01aca12f6 100644 --- a/PrebidMobile/PrebidMobileRendering/Prebid/PBMCore/PBMPrebidParameterBuilder.m +++ b/PrebidMobile/PrebidMobileRendering/Prebid/PBMCore/PBMPrebidParameterBuilder.m @@ -90,11 +90,17 @@ - (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]; - bidRequest.extPrebid.targeting[@"includebidderkeys"] = [[NSNumber alloc] initWithBool:Prebid.shared.includeBidderKeys]; + if(Prebid.shared.includeWinners) + { + bidRequest.extPrebid.targeting[@"includewinners"] = [[NSNumber alloc] initWithBool:YES]; + } + 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);