-
Notifications
You must be signed in to change notification settings - Fork 220
Yandex Bid Adapter : add support for video ads #4004
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
base: master
Are you sure you want to change the base?
Yandex Bid Adapter : add support for video ads #4004
Conversation
00a9017
to
dc3dec7
Compare
@osulzhenko fixed |
@DiMurer is it a port from PBS Go? Could you link a porting issue or a PR from PBS Go if any? |
@AntoxaAntoxic |
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.
please double-check the whole Go implementation and fix all the differences, and make the Java version functionally identical in that way
update required |
@DiMurer any updates on this one? |
@osulzhenko |
dc3dec7
to
3755550
Compare
@AntoxaAntoxic @osulzhenko |
src/main/java/org/prebid/server/bidder/yandex/YandexBidder.java
Outdated
Show resolved
Hide resolved
src/test/java/org/prebid/server/bidder/yandex/YandexBidderTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/prebid/server/bidder/yandex/YandexBidderTest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/prebid/server/bidder/yandex/YandexBidder.java
Outdated
Show resolved
Hide resolved
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.
There is some differences with GO version:
- in
yandex.yaml: usersync.redirect.url
- I don't see such logic in GO:
if (CollectionUtils.isEmpty(video.getMimes())) {
videoBuilder.mimes(Collections.singletonList("video/mp4"));
}
- I don't see any logic related to the
placement_id
parameter that exists in GO.
Also, please, make a change according to this comment #4004 (comment)
d694fce
to
2db652e
Compare
If you mean the difference between
In the Go PR, I was told that I was trying to fix an impossible problem because this logic was checked before the adapter code. So, I deleted it in the Go PR. If it's the same for Java, that's fine. I deleted it here, too.
I'm a little confused. I didn't change any placement_id logic in my GO PR. Can we accept this part, about the video logic? I don't want to turn this PR into "add video support and synchronize all the logic between the repositories." |
|
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.
Please change the order of all tests so that makeHttpRequest*
tests come first, followed by makeBids*
tests.
update required |
@CTMBNara |
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.
Please, remove this comments
assertThatIllegalArgumentException().isThrownBy(() -> new YandexBidder("invalid_url", jacksonMapper)); | ||
} | ||
|
||
// ========== makeHttpRequest* tests ========== |
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.
.
tuple("prebid.java", "1.1")); | ||
} | ||
|
||
// ========== makeBids* tests ========== |
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.
.
assertThat(result.getValue().getFirst().getType()).isEqualTo(video); // Video has highest priority | ||
} | ||
|
||
// ========== Helper methods ========== |
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.
.
@CTMBNara done |
🔧 Type of changes
✨ What's the context?
There are two updates for the Yandex adapter.
🧠 Rationale behind the change
Why did you choose to make these changes? Were there any trade-offs you had to consider?
🧪 Test plan
The tests were updated, too.
🏎 Quality check