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

Prebid Server: add support for adunit.ortb2Imp #8062

Closed
wants to merge 14 commits into from

Conversation

ChrisHuie
Copy link
Collaborator

For issue #7831

@ChrisHuie ChrisHuie changed the title Preebid Server: add support for adunit.ortb2Imp Prebid Server: add support for adunit.ortb2Imp Feb 14, 2022
@@ -670,9 +670,10 @@ const OPEN_RTB_PROTOCOL = {
}, {...deepAccess(adUnit, 'ortb2Imp.ext')});

const imp = { id: impressionId, ext, secure: s2sConfig.secure };

const ortb2 = {...deepAccess(adUnit, 'ortb2Imp.ext.data')};
Copy link
Collaborator

@bretg bretg Feb 24, 2022

Choose a reason for hiding this comment

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

We just need to copy all the contents of ortb2Imp into the imp.

The test case is:

AdUnit.ortb2Imp contains:

banner: {
   api: [7]
},
ext: {
   data: {
      pbadslot: "blah"
   }
}

then this whole block ends up going to PBS in the relevant imp[].

@ChrisHuie ChrisHuie requested a review from dgirardi March 9, 2022 13:28
@ChrisHuie ChrisHuie marked this pull request as ready for review March 9, 2022 13:28
@ChrisHuie ChrisHuie closed this Mar 9, 2022
@patmmccann
Copy link
Collaborator

Closed in favor of #8159

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.

4 participants