Skip to content

Commit

Permalink
fix(includebidderkeys): server responding with bidder keys even tho b…
Browse files Browse the repository at this point in the history
…idderkeys 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)]
  • Loading branch information
AbrahamArmasCordero committed Jul 9, 2024
1 parent 375965d commit 612df06
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 612df06

Please sign in to comment.