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

New Adapter: TradPlus #3987

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

New Adapter: TradPlus #3987

wants to merge 13 commits into from

Conversation

tradplus
Copy link

@tradplus tradplus commented Oct 16, 2024

TradPlus is a leading, stable, and reliable ad monetization platform that is committed to providing global developers with fair, transparent and efficient monetization solutions. We also provide ADX and Saas ADX services. We serve 2,000+ global developers. Moreover, Our SDK has been certified by IAB Tech Lab and also joins Google Play SDK Index. And we have Information Security Management Certification.

Our advertising business spans the world. This is our official website: https://tradplusad.com/en. You can get more details about TradPlus.

this is TradPlus adapter version 1.0.

Thank!

Note: TradPlus only looks at the ext for the first impression and ignored the rest.

@tradplus tradplus mentioned this pull request Oct 16, 2024
Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, ef7a58c

tradplus

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:22:	Builder			100.0%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:33:	MakeRequests		100.0%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:41:	makeRequest		81.2%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:76:	getImpressionExt	100.0%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:100:	buildEndpointURL	100.0%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:108:	transform		88.2%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:134:	MakeBids		88.2%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:165:	getMediaTypeForBid	80.0%
total:									(statements)		89.2%

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, f84c5da

tradplus

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:22:	Builder			100.0%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:33:	MakeRequests		100.0%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:41:	makeRequest		81.2%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:76:	getImpressionExt	100.0%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:100:	buildEndpointURL	100.0%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:108:	transform		88.2%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:134:	MakeBids		88.2%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:165:	getMediaTypeForBid	80.0%
total:									(statements)		89.2%

adapters/tradplus/params_test.go Show resolved Hide resolved
adapters/tradplus/tradplus.go Outdated Show resolved Hide resolved

func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestData, []error) {

tradplusExt, err := getImpressionExt(&request.Imp[0])
Copy link
Contributor

Choose a reason for hiding this comment

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

Please link to your prebid.github.io PR and make it clear in that PR that the TradPlus only looks at the ext for the first impression and ignored the rest. Some other adapters do it, but its not a publisher expected behavior.

Copy link
Author

@tradplus tradplus Oct 25, 2024

Choose a reason for hiding this comment

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

ok,I've added to the first comment if anything else is needed ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. New adapters must also open a PR against the Prebid Docs repository here: https://github.com/prebid/prebid.github.io/

Please see the User Documentation section of our new adapter developer guide.

@SyntaxNode SyntaxNode self-assigned this Oct 24, 2024
Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 07fb322

tradplus

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:22:	Builder			100.0%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:33:	MakeRequests		100.0%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:41:	makeRequest		84.6%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:71:	getImpressionExt	100.0%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:95:	buildEndpointURL	100.0%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:104:	MakeBids		88.2%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:135:	getMediaTypeForBid	80.0%
total:									(statements)		90.7%

@tradplus
Copy link
Author

tradplus commented Oct 28, 2024

@SyntaxNode , hi, I have changed these codes,please review these codes.

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, d767cf6

tradplus

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:22:	Builder			100.0%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:33:	MakeRequests		100.0%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:41:	makeRequest		84.6%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:71:	getImpressionExt	100.0%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:95:	buildEndpointURL	100.0%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:104:	MakeBids		88.2%
github.com/prebid/prebid-server/v2/adapters/tradplus/tradplus.go:135:	getMediaTypeForBid	80.0%
total:									(statements)		90.7%

Copy link

github-actions bot commented Nov 1, 2024

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 7c24dd3

tradplus

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:23:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:34:	MakeRequests		100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:42:	makeRequest		84.6%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:72:	getImpressionExt	100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:96:	buildEndpointURL	100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:105:	MakeBids		88.2%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:136:	getMediaTypeForBid	80.0%
total:									(statements)		90.7%

@tradplus
Copy link
Author

tradplus commented Nov 1, 2024

@SyntaxNode I re-merged from master.

Copy link

github-actions bot commented Nov 6, 2024

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, f177dff

tradplus

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:23:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:34:	MakeRequests		100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:42:	makeRequest		84.6%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:72:	getImpressionExt	100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:96:	buildEndpointURL	100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:105:	MakeBids		88.2%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:136:	getMediaTypeForBid	80.0%
total:									(statements)		90.7%

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 820707d

tradplus

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:23:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:34:	MakeRequests		100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:42:	makeRequest		84.6%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:72:	getImpressionExt	100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:96:	buildEndpointURL	100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:105:	MakeBids		88.2%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:136:	getMediaTypeForBid	80.0%
total:									(statements)		90.7%

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 5629eb1

tradplus

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:23:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:34:	MakeRequests		100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:42:	makeRequest		84.6%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:72:	getImpressionExt	100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:96:	buildEndpointURL	100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:105:	MakeBids		88.2%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:136:	getMediaTypeForBid	80.0%
total:									(statements)		90.7%

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, d5aefa7

tradplus

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:23:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:34:	MakeRequests		100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:42:	makeRequest		84.6%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:72:	getImpressionExt	100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:96:	buildEndpointURL	100.0%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:105:	MakeBids		88.2%
github.com/prebid/prebid-server/v3/adapters/tradplus/tradplus.go:136:	getMediaTypeForBid	80.0%
total:									(statements)		90.7%

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.

2 participants