-
Notifications
You must be signed in to change notification settings - Fork 765
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
Kargo: Normalize placementId naming #2785
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
`{"adSlotID": ""}`, | ||
`{"adSlotID": "11523"}`, | ||
} | ||
|
||
var invalidParams = []string{ | ||
`{"placementId": 42}`, | ||
`{"placementId": }`, | ||
`{"placementID": "32321"}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, What should be the behaviour if both placementId and adSlotID are defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left one comment!
@gargcreation1992 thanks Ashish. Just added an invalid test parameter for when both are set. |
@@ -49,4 +49,5 @@ var invalidParams = []string{ | |||
`{"adSlotId": "32321"}`, | |||
`{"id": }`, | |||
`{}`, | |||
`{"placementId": "11523", "adSlotID": "12345"}`, // Can't include both |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
In reference to #2654
Updated Prebid Server naming to use
placementId
to match that on Prebid.js: https://docs.prebid.org/dev-docs/bidders/kargo.htmlThe server-side code is backwards compatible to support both namings.
CC @SSuranie