Skip to content

Commit

Permalink
Merge pull request #1022 from AbrahamArmasCordero/feature/fix-include…
Browse files Browse the repository at this point in the history
…biddekeys-flag

fix(includebidderkeys): server responding with bidder keys even tho bidderkeys flag is not present in the request
  • Loading branch information
jsligh authored Jul 9, 2024
2 parents b25d72f + 612df06 commit 409f7f0
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 409f7f0

Please sign in to comment.