Skip to content

Fix Mobkoi adapter to support aliased requests#4840

Open
gabrielmougard wants to merge 2 commits into
prebid:masterfrom
mobkoi:mobkoi
Open

Fix Mobkoi adapter to support aliased requests#4840
gabrielmougard wants to merge 2 commits into
prebid:masterfrom
mobkoi:mobkoi

Conversation

@gabrielmougard

Copy link
Copy Markdown
Contributor

The adapter set TypedBid.Seat="mobkoi" on every bid. When the adapter is invoked under an alias (e.g. mobkoi_s2s_alias) the seat ("mobkoi") no longer matches the requested code and PBS rejects the bid.

Leave Seat empty so PBS labels the bid with the requested bidder code, which makes aliases work for every publisher without any publisher-side change.

Update JSON exemplars to expect an empty seat and add a regression test.

The adapter set TypedBid.Seat="mobkoi" on every bid. That field is what
Prebid Server's bidder-code-spoofing guard inspects, so when the adapter is
invoked under an alias (e.g. mobkoi_s2s_alias) the seat ("mobkoi") no longer
matches the requested code and PBS rejects the bid. Mobkoi was one of only ~4
adapters that override the seat at all.

Leave Seat empty so PBS labels the bid with the requested bidder code, which
makes aliases work for every publisher without any publisher-side change.

Update JSON exemplars to expect an empty seat and add a regression test.
@github-actions

github-actions Bot commented Jul 1, 2026

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, 763f479

mobkoi

Refer here for heat map coverage report

github.com/prebid/prebid-server/v4/adapters/mobkoi/mobkoi.go:27:	Builder		100.0%
github.com/prebid/prebid-server/v4/adapters/mobkoi/mobkoi.go:34:	MakeRequests	90.9%
github.com/prebid/prebid-server/v4/adapters/mobkoi/mobkoi.go:80:	MakeBids	100.0%
total:									(statements)	94.6%

@github-actions

github-actions Bot commented Jul 1, 2026

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, 62f84a6

mobkoi

Refer here for heat map coverage report

github.com/prebid/prebid-server/v4/adapters/mobkoi/mobkoi.go:27:	Builder		100.0%
github.com/prebid/prebid-server/v4/adapters/mobkoi/mobkoi.go:34:	MakeRequests	90.9%
github.com/prebid/prebid-server/v4/adapters/mobkoi/mobkoi.go:80:	MakeBids	100.0%
total:									(statements)	94.6%

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.

1 participant