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

Add AMX RTB adapter #1549

Merged
merged 13 commits into from
Nov 5, 2020
Merged

Add AMX RTB adapter #1549

merged 13 commits into from
Nov 5, 2020

Conversation

nickjacob
Copy link
Contributor

Adding AMX RTB adapter

Server uses standard OpenRTB 2.5. This adapter adds support for overriding the publisher id using imp.ext.amx.tagId, although this is optional. The parameter is named to match the bid param of our prebid.js adapter

Maintainer email: prebid@amxrtb.com

@bretg
Copy link
Contributor

bretg commented Oct 23, 2020

docs PR prebid/prebid.github.io#2437

@SyntaxNode SyntaxNode requested review from mansinahar and removed request for bsardo October 26, 2020 14:16
@SyntaxNode SyntaxNode assigned mansinahar and unassigned bsardo Oct 26, 2020
Copy link
Contributor

@SyntaxNode SyntaxNode left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution. Very glad to see the docs PR already open. :)

@nickjacob
Copy link
Contributor Author

nickjacob commented Oct 26, 2020 via email

Copy link
Contributor

@SyntaxNode SyntaxNode left a comment

Choose a reason for hiding this comment

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

Thank you for the quick update from our feedback. I took a closer look into the tests and found a few items to address.

headers.Add("Content-Type", "application/json;charset=utf-8")
reqBidder := &adapters.RequestData{
Method: "POST",
Uri: adapter.endpoint + "?v=pbs1.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

This will slightly improve performance as the new string is concacted only once an app startup instead of during each request.

@nickjacob
Copy link
Contributor Author

Thanks @SyntaxNode -- I made the requested CR changes; refactored to use assert which did really improve the tests, adding some more test coverage and "supplemental" JSON tests, expectedBidResponse & expectedMakeBidsErrors in JSON tests

@nickjacob
Copy link
Contributor Author

Thanks @mansinahar -- I made those changes & rebased against master

Copy link
Contributor

@mansinahar mansinahar left a comment

Choose a reason for hiding this comment

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

Please add a params_test.go file as well to test the bidder params. For reference you can check this one for 33across: https://github.com/prebid/prebid-server/blob/master/adapters/33across/params_test.go

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.

5 participants