Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation doesn't allow stored impressions without bidders #2975

Open
muuki88 opened this issue Feb 13, 2024 · 5 comments
Open

Validation doesn't allow stored impressions without bidders #2975

muuki88 opened this issue Feb 13, 2024 · 5 comments
Assignees

Comments

@muuki88
Copy link
Contributor

muuki88 commented Feb 13, 2024

We faced an issue with stored impressions that are not configured, but requested and thus crash the entire auction.

if (extPrebidBidder == null) {
if (storedAuctionResponse != null) {
return;
} else {
throw new ValidationException("request.imp[%d].ext.prebid.bidder must be defined", impIndex);
}
}

This validation doesn't allow us to create a stored impression that looks like this

{
  "id" : "123/content_1",
  "banner" : {
    "format" : [  ]
  },
  "ext" : {  }
}

instead we have to do something like this

{
  "id" : "123/content_1",
  "banner" : {
    "format" : [ ]
  },
  "ext" : {
    "h5": {} // this bidder does not exist, but tricks the validation
  }
}

Proposal

It would be great to disable certain validations. E.g.

validations:
  allow:
    - empty-stored-impressions
@bretg
Copy link
Collaborator

bretg commented Feb 16, 2024

@muuki88 - maybe we can just drop the whole validation? No clear to me that a validation like this is real valuable because it's already in the DB and this error isn't that much more helpful than just noticing that there aren't any bidders in the auction.

@muuki88
Copy link
Contributor Author

muuki88 commented Feb 16, 2024

That would be even better IMHO. Because this escalates an error ( or purposely configured ad unit ) to the entire auction.

@bretg
Copy link
Collaborator

bretg commented Feb 16, 2024

Care to submit a PR @muuki88 ?

@muuki88
Copy link
Contributor Author

muuki88 commented Feb 16, 2024

Deleting code? Always 😍😎

@bretg bretg moved this from Triage to Ready for Dev in Prebid Server Prioritization Feb 23, 2024
@bretg bretg moved this from Ready for Dev to Community Review in Prebid Server Prioritization Sep 23, 2024
@bretg
Copy link
Collaborator

bretg commented Sep 23, 2024

Would like to discuss with the committee whether we should continue to hard-fail on missing imp[%d].ext.prebid.bidder.

We already have the scenario where bidders get removed due to lack of Purpose 2 consent - it's possible to take the view that the request/storedrequest should be allowed to not contain bidders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Community Review
Development

No branches or pull requests

3 participants