-
Notifications
You must be signed in to change notification settings - Fork 187
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
FIX #3608 Port from PBS-Go: Equativ: SmartAdserver alias with update to use mtype #3678
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Q: I have a question here. The original PR adds gpp support: https://github.com/prebid/prebid-server/pull/4045/files#diff-aaf548993679435ffc95fdfea42cf46f7d38b55e91c34ea6d874379c6aa5e878R25-R26 All i've been able to find in regard to GPP in PBS-Java was |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
adapters: | ||
smartadserver: | ||
endpoint: https://ssb-global.smartadserver.com | ||
endpoint-compression: gzip | ||
aliases: | ||
equativ: ~ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Q: Also not sure whether I should write something here or just leave a tilde. As reference, the corresponding change in the original PR: https://github.com/prebid/prebid-server/pull/4045/files#diff-91570c852a44292f55ba1a3c722b2c26d76eacc0c87a41a527a84bdf7b021e36R1 |
||
meta-info: | ||
maintainer-email: supply-partner-integration@equativ.com | ||
app-media-types: | ||
- banner | ||
- video | ||
- native | ||
- audio | ||
site-media-types: | ||
- banner | ||
- video | ||
- native | ||
- audio | ||
supported-vendors: | ||
vendor-id: 45 | ||
usersync: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,8 @@ | |
"type": "banner" | ||
}, | ||
"origbidcpm": 0.5 | ||
} | ||
}, | ||
"mtype": 1 | ||
} | ||
], | ||
"seat": "smartadserver", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,8 @@ | |
"cid": "cid", | ||
"crid": "crid", | ||
"h": 576, | ||
"w": 1024 | ||
"w": 1024, | ||
"mtype": 1 | ||
} | ||
] | ||
} | ||
|
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 as FYI: Taking into account this Go code, a response body that is missing
mType
in PBS-Go will be parsed to 0 by default and tonull
in PBS-Java. So I had to account for nullability of theInteger
and added a test case for both unhappy cases:null
and out-of-bounds (default -> BidType.banner
).Theoretically this combination of null check + switch-case can be reworked into an chain of
if
's. Let me know if you prefer that: