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

Kargo: Normalize placementId naming #2785

Merged
merged 5 commits into from
May 23, 2023

Conversation

jsadwith
Copy link
Contributor

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.html

The server-side code is backwards compatible to support both namings.

CC @SSuranie

Copy link
Contributor

@gargcreation1992 gargcreation1992 left a 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"}`,
Copy link
Contributor

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?

gargcreation1992

This comment was marked as duplicate.

Copy link
Contributor

@gargcreation1992 gargcreation1992 left a comment

Choose a reason for hiding this comment

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

left one comment!

@jsadwith
Copy link
Contributor Author

@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
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

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.

3 participants