Skip to content

New Adapter: Waardex#4563

Open
yegorWaardex wants to merge 32 commits into
prebid:masterfrom
yegorWaardex:add-waardex-adapter
Open

New Adapter: Waardex#4563
yegorWaardex wants to merge 32 commits into
prebid:masterfrom
yegorWaardex:add-waardex-adapter

Conversation

@yegorWaardex
Copy link
Copy Markdown

@yegorWaardex yegorWaardex commented Oct 8, 2025

Comment thread adapters/waardex/waardex.go Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 8, 2025

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, 2d0320b

waardex

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:24:	MakeRequests			70.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:56:	getImpressionsInfo		73.3%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:78:	validateImpression		66.7%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:86:	dispatchImpressions		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:106:	isMultiFormatImp		80.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:123:	splitMultiFormatImp		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:142:	getImpressionExt		71.4%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:158:	buildAdapterRequest		83.3%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:183:	createBidRequest		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:202:	buildEndpointURL		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:208:	MakeBids			73.7%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:248:	getMediaTypeForBid		50.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:265:	newBadInputError		0.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:271:	newBadServerResponseError	0.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:278:	Builder				100.0%
total:									(statements)			80.6%

@postindustria-code
Copy link
Copy Markdown
Contributor

You have mandatory adapter parameters that also need to be tested.

From the documentation:
Bidder Parameter Tests

The bidder parameter JSON Schema files are considered a form of code and must be tested. 
Create a file with the path adapters/{bidder}/params_test.go

Example of valid parameters for validation:

var validParams = []json.RawMessage{
    json.RawMessage(`{"zoneId": 101}`),
}

Example of invalid parameters for validation:

var invalidTypeParams = []json.RawMessage{
    json.RawMessage(`{"zoneId": "101"}`),     // String instead of integer
    json.RawMessage(`{"zoneId": 1.5}`),       // Float instead of integer
    json.RawMessage(`{"zoneId": true}`),      // Boolean instead of integer
    json.RawMessage(`{"zoneId": []}`),        // Array instead of integer
    json.RawMessage(`{"zoneId": {}}`),        // Object instead of integer
}

Comment thread adapters/waardex/waardex.go Outdated
Comment thread adapters/waardex/waardex.go Outdated
Comment thread adapters/waardex/waardex.go Outdated
Comment thread adapters/waardex/waardex.go Outdated
Comment thread adapters/waardex/waardex.go
Comment thread adapters/waardex/waardex.go Outdated
Comment thread adapters/waardex/waardex.go Outdated
Comment thread adapters/waardex/waardex.go Outdated
Comment thread adapters/waardex/waardex_test.go
Comment thread static/bidder-info/waardex.yaml
# Please deploy this config in each of your datacenters with the appropriate regional subdomain
endpoint: "http://REGION.justbidit2.xyz:8800/hb?zone={{.ZoneID}}"
maintainer:
email: it@waardex.com
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sent verification email, please respond.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@pm-jaydeep-mohite We have not received the verification email. Could you please resend it? Thank you.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@yegorWaardex I resent the verification email.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Email was confirmed

Comment thread adapters/waardex/waardex.go Outdated
Comment thread adapters/waardex/waardex.go Outdated
Comment thread adapters/waardex/waardex.go
Comment thread adapters/waardex/waardex.go Outdated
Comment thread adapters/waardex/waardex.go Outdated
Comment thread adapters/waardex/waardex.go
Comment thread adapters/waardex/waardextest/exemplary/multiformat-impression.json
Comment thread adapters/waardex/waardex.go Outdated
Comment thread adapters/waardex/waardex.go Outdated
Comment thread adapters/waardex/waardex.go Outdated
Comment thread adapters/waardex/waardex.go Outdated
Comment thread adapters/waardex/waardex.go Outdated
Comment thread adapters/waardex/waardex.go Outdated
Comment thread static/bidder-info/waardex.yaml Outdated
@bsardo
Copy link
Copy Markdown
Collaborator

bsardo commented Jan 10, 2026

@yegorWaardex please see comments above.

@yegorWaardex
Copy link
Copy Markdown
Author

@bsardo Thanks for the reminder! I’ve applied the changes. Let me know what you think.

Copy link
Copy Markdown
Contributor

@postindustria-code postindustria-code left a comment

Choose a reason for hiding this comment

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

After the latest changes prebid server can not start successfully, I am getting an error:

F0113 13:35:50.409712   92840 main.go:54] prebid-server failed: user sync (1 error):
  1: cannot create syncer for bidder waardex with key waardex: redirect template: waardex_usersync_url:1:326: executing "waardex_usersync_url" at <.SspID>: can't evaluate field SspID in type macros.UserSyncPrivacy

Also the adapter endpoints are returning me a 403 error for both regions:

curl -i --location --request POST http://useast.justbidit2.xyz:8800/hb\?zone\=101
HTTP/1.1 403 Forbidden
vary: Origin
access-control-allow-credentials: true
content-length: 0
date: Tue, 13 Jan 2026 12:42:38 GMT

@github-actions
Copy link
Copy Markdown

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, 63861c2

waardex

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:24:	MakeRequests			100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:44:	groupImpressionsByZone		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:75:	isMultiFormatImp		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:92:	splitMultiFormatImp		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:111:	getImpressionExt		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:127:	buildAdapterRequest		91.7%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:152:	createBidRequest		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:171:	buildEndpointURL		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:177:	MakeBids			90.9%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:221:	getMediaTypeForBid		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:238:	newBadInputError		0.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:244:	newBadServerResponseError	100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:251:	Builder				100.0%
total:									(statements)			96.7%

@yegorWaardex
Copy link
Copy Markdown
Author

@postindustria-code I fixed the following bug:

F0113 13:35:50.409712   92840 main.go:54] prebid-server failed: user sync (1 error):
  1: cannot create syncer for bidder waardex with key waardex: redirect template: waardex_usersync_url:1:326: executing "waardex_usersync_url" at <.SspID>: can't evaluate field SspID in type macros.UserSyncPrivacy

Also, please try this cURL:

curl --location --request POST 'http://useast.justbidit2.xyz:8800/hb?zone=1'

Comment thread adapters/waardex/waardex_test.go
Comment thread adapters/waardex/waardex_test.go Outdated
Comment thread exchange/adapter_builders.go Outdated
@github-actions
Copy link
Copy Markdown

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, ab7c2e8

waardex

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:24:	MakeRequests			91.7%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:44:	groupImpressionsByZone		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:75:	isMultiFormatImp		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:92:	splitMultiFormatImp		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:111:	getImpressionExt		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:127:	buildAdapterRequest		83.3%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:152:	createBidRequest		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:171:	buildEndpointURL		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:177:	MakeBids			100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:221:	getMediaTypeForBid		66.7%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:238:	newBadInputError		0.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:244:	newBadServerResponseError	100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:251:	Builder				100.0%
total:									(statements)			95.1%

@yegorWaardex
Copy link
Copy Markdown
Author

@postindustria-code Thank you for your review. The requested changes have been implemented. Please let me know your thoughts

Comment thread adapters/waardex/waardextest/exemplary/multiformat-impression.json
Comment thread adapters/waardex/waardex.go Outdated
@github-actions
Copy link
Copy Markdown

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, 0bcfaf6

waardex

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:24:	MakeRequests			91.7%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:44:	groupImpressionsByZone		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:75:	isMultiFormatImp		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:92:	splitMultiFormatImp		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:111:	getImpressionExt		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:127:	buildAdapterRequest		83.3%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:152:	createBidRequest		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:171:	buildEndpointURL		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:177:	MakeBids			100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:221:	getMediaTypeForBid		66.7%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:238:	newBadInputError		0.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:244:	newBadServerResponseError	100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:251:	Builder				100.0%
total:									(statements)			95.1%

@yegorWaardex
Copy link
Copy Markdown
Author

@postindustria-code Thank you for your review. The requested changes have been implemented. Please let me know your thoughts

Comment thread adapters/waardex/waardex.go Outdated
@github-actions
Copy link
Copy Markdown

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, a8436cc

waardex

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:24:	MakeRequests			91.7%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:44:	groupImpressionsByZone		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:75:	isMultiFormatImp		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:92:	splitMultiFormatImp		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:111:	getImpressionExt		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:127:	buildAdapterRequest		83.3%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:152:	createBidRequest		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:171:	buildEndpointURL		100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:177:	MakeBids			100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:221:	getMediaTypeForBid		66.7%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:238:	newBadServerResponseError	100.0%
github.com/prebid/prebid-server/v3/adapters/waardex/waardex.go:245:	Builder				100.0%
total:									(statements)			95.9%

@bsardo
Copy link
Copy Markdown
Collaborator

bsardo commented Mar 3, 2026

@yegorWaardex I'm just noticing now that this adapter looks very similar to adkernel. Is this a white label? If so, we require you to just create a single waardex.yaml file with an aliasOf declaration specifying any overrides. It cuts the size of your PR down to just ~20 lines.

@bsardo
Copy link
Copy Markdown
Collaborator

bsardo commented Apr 3, 2026

@yegorWaardex please see comment above.

@bsardo
Copy link
Copy Markdown
Collaborator

bsardo commented Apr 16, 2026

@yegorWaardex see above.

@yegorWaardex
Copy link
Copy Markdown
Author

@bsardo Thanks for the review. Waardex is not a white label of adkernel — it's an independent adapter maintained by our team against our own exchange (waardex.com). Any resemblance is due to the shared OpenRTB 2.x patterns both adapters follow. An aliasOf declaration wouldn't be correct here since our endpoint, request/response handling, and supported features are implemented and maintained separately.

@bsardo
Copy link
Copy Markdown
Collaborator

bsardo commented May 12, 2026

@yegorWaardex thanks for the response regarding aliases. Your adapter looks good, however, you'll need to merge with master and update all of the package references in your adapter to be v4. The package references changed when we released 4.0 a couple of months ago. Once that is complete we can merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants