-
Notifications
You must be signed in to change notification settings - Fork 224
Eplanning: Add support for adomain #4227
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
Conversation
| String crId; | ||
|
|
||
| @JsonProperty("adomain") | ||
| List<String> adomain; |
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.
as I understand adomain is not an array, it's a plain text
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 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.
check the line 46 on your screenshot, the bidder literally returns the plain text, but the ortb2 response expects an array, so they set an array of a single element to the bid.adomain
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.
oh, and I just noticed that the the name should be adom instead of adomain, please fix that as well
| @JsonProperty("crid") | ||
| String crId; | ||
|
|
||
| @JsonProperty("adomain") |
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.
the annotation is redundant
|
|
||
| @JsonProperty("adomain") | ||
| List<String> adomain; | ||
| @JsonProperty() |
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 json property
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.
I know this field isn't needed, but all the other fields have it, and when I edit the adapter, I try to keep things consistent.
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.
The best practice here is not leaving a code that does nothing. Anyway all other fields have the @JsonProperty because they need them (maybe except for adM - I believe it's just a typo, so you can rename it to adm and remove the annotation as well)
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 noticed the name test-eplanning-bid-response-1.json ends with 1 which is confusing and weird, let's rename the file
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.
Okay, but this is not a file made by me. It was already like that.
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.
"Always leave the code a little better than you found it" (c) The Boy Scout Rule


🔧 Type of changes
✨ What's the context?
#4199