-
Notifications
You must be signed in to change notification settings - Fork 749
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
New Adapter: VideoHeroes #2399
New Adapter: VideoHeroes #2399
Conversation
docs PR prebid/prebid.github.io#4040 |
} | ||
|
||
func TestInvalidParams(t *testing.T) { | ||
validator, err := openrtb_ext.NewBidderParamsValidator("../../static/bidder-params") |
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.
Can we confirm that this file path will always be correct?
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.
Yes, this is correct. Please refer to https://docs.prebid.org/prebid-server/developers/add-new-bidder-go.html paragraph "Bidder Parameter Tests"
This is a path to {bidder}.json, it's always in this directory related to adapter code.
return mediaType | ||
} | ||
} | ||
return mediaType |
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.
Can you cover this line of code with 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.
Technically this case should not happen. It indicates that imp id from response is not found in imp[] from request.
In code many adapters do the same. I think this is ok, but we can discuss it with the team.
app: | ||
mediaTypes: | ||
- banner | ||
- video | ||
- native | ||
site: | ||
mediaTypes: | ||
- banner | ||
- video | ||
- native |
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 see that you support these media types, but dont see this reflected in your docs PR. Could you update it?
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.
It's already reflected, refer to Line 10, https://github.com/prebid/prebid.github.io/pull/4040/files
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.
Thank you for submitting your PR. Added minor comments.
There is a PR #2370 that is being merged today that will cause conflicts to new adapter PRs. To resolve these conflicts, you'll need to do the following: In In After the merge, you can look at other adapters to see how the server object is implemented as an example. |
This code is identical to #2396. If these are aliases of the same underlying bidder, it's better to implement it just once and use an alias. Less code to maintain. |
It can be the same adapters code (one development), but there different projects and will be different farther |
added commit with updates |
Please check it after updates ;) |
Hi @videoheroes , can you merge with master when you get a chance? Your code is failing the go 1.19 validation checks due to Also your code is failing the |
Hi guys, just merged with last version of master and pushed it again, could you please check it ? |
@videoheroes you'll need to update the reference to the mxmcherry library in your adapter to |
heya Guys, could you please review the last updates ? |
adapters/videoheroes/videoheroes.go
Outdated
} | ||
|
||
func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapters.ExtraRequestInfo) ([]*adapters.RequestData, []error) { | ||
var videoHeoresExt *openrtb_ext.ExtImpVideoHeroes |
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.
Typo in videoHeoresExt
-> videoHeroesExt
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'll approve once this typo is fixed!
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.
updated
Hi @videoheroes, can you please undo any changes made to |
8bd28b8
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.
LGTM! Thanks for removing changes to go.mod
and go.sum
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
No description provided.