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

ORTB 2.6: Test exchange json fixes and remove clear fields function calls #4010

Merged
merged 4 commits into from
Oct 27, 2024

Conversation

VeronikaSolovei9
Copy link
Contributor

No description provided.

@bsardo bsardo changed the title Test exchange json fix ORTB 2.6: Test exchange json fixes Oct 24, 2024
bidderInfos[string(bidderName)] = config.BidderInfo{ModifyingVastXmlAllowed: spec.ModifyingVastXmlAllowed}
ortbVersion, found := exSpec.ORTBVersion[string(bidderName)]
if !found {
ortbVersion = "2.5"
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not leave it blank if the string is not found? The vast majority of bidders today do not have a version value.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Agree it would be preferable to leave it blank so it more accurately reflects actual configuration state.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just wanted to be more explicit. it will work both ways. Removed.

Copy link
Collaborator

@hhhjort hhhjort left a comment

Choose a reason for hiding this comment

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

I do have one open question, but it should work either way.

Comment on lines 180 to 182
"regs": {
"coppa": 1,
"ext": {
"gdpr": 1,
"us_privacy": "1YYY"
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since appnexus is declared as a 2.6 bidder, this should be:

"regs": {
    "coppa": 1,
    "gdpr": 1,
    "us_privacy": "1YYY"
}

I expect this to cause the test to fail as we have identified a shared memory issue with respect to regs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed input request and outgoing request for appnexus, good point!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Just curious, was this test failing before? I don't see why it would have. I'm ok with the change you have here but if it was failing before I'd like to understand why.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Discussed offline. 517ea0b addresses this.

@@ -31,13 +31,6 @@ func ConvertDownTo25(r *RequestWrapper) error {
}
}

// Remove fields introduced in OpenRTB 2.6+. The previous OpenRTB 2.5 spec did not specify that
// bidders must tolerate new or unexpected fields.
clear26Fields(r)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I thought we just want to drop the Imp fields?

Copy link
Collaborator

Choose a reason for hiding this comment

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

See #3613.

I think we want to delete these function calls, but not the functions themselves so adapters can use them, so that all 2.6 fields are passed through by default. Specific ext fields that are called out on that issue that need to be moved should be cleared when down converting (regs.ext.gdpr/us_privacy, source.ext.schain, user.ext.eids/consent). Note that imp.prebid.is_rewarded_inventoryshould be copied and not moved, in which case both it andimp.rwdd` should be passed through without clearing.
I suggest we merge this PR and then I can put up another PR that adds a function that only clears the moved ext fields during a down convert.

@bsardo bsardo merged commit a0d3e56 into ortb26 Oct 27, 2024
@bsardo bsardo changed the title ORTB 2.6: Test exchange json fixes ORTB 2.6: Test exchange json fixes and remove clear fields function calls Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants