Skip to content

Feature/ap post processor#18

Open
rishavch0421 wants to merge 3 commits into
masterfrom
feature/ap-post-processor
Open

Feature/ap post processor#18
rishavch0421 wants to merge 3 commits into
masterfrom
feature/ap-post-processor

Conversation

@rishavch0421
Copy link
Copy Markdown

No description provided.

ogseatBid.getBid().forEach(bid -> {
JsonObject newPrebid = JsonObject.mapFrom(bid.getExt().get("prebid"));
JsonObject targeting = newPrebid.getJsonObject("targeting");
targeting.put("ap_hb_pb",targeting.getValue("hb_pb"));
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be hb_ap_pb.
Also move these strings to constants

JsonObject targeting = newPrebid.getJsonObject("targeting");
targeting.put("ap_hb_pb",targeting.getValue("hb_pb"));
targeting.remove("hb_pb");
targeting.put("ap_hb_bidder",targeting.getValue("hb_bidder"));
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be hb_ap_bidder.
Also move these strings to constants

targeting.remove("hb_pb");
targeting.put("ap_hb_bidder",targeting.getValue("hb_bidder"));
targeting.remove("hb_bidder");
targeting.put("ap_hb_size",targeting.getValue("hb_size"));
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be hb_ap_size.
Also move these strings to constants

try {
modifyBidTargeting(seatBid);
} catch (JsonProcessingException e) {
throw new RuntimeException(e);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldnt throw. It should always return Future and never throw an exception

https://github.com/adpushup/prebid-server-java/blob/master/docs/auction-result-post-processing.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants