Skip to content

Stroeercore: Use bid.ext as-is from the response#4633

Merged
bsardo merged 1 commit into
prebid:masterfrom
mbrtargeting:stroeer-bid-ext
Mar 3, 2026
Merged

Stroeercore: Use bid.ext as-is from the response#4633
bsardo merged 1 commit into
prebid:masterfrom
mbrtargeting:stroeer-bid-ext

Conversation

@philipwatson
Copy link
Copy Markdown
Contributor

@philipwatson philipwatson commented Dec 11, 2025

Allows us to add to the bid ext without needing to update the adapter, which is especially convenient when adding fields for custom targeting. We intend to move dsa into ext in the near future, but we want to establish the PBS-Go version first.

Equivalent PBS-Java PR: prebid/prebid-server-java#4317

@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, b63546b

stroeerCore

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/stroeerCore/stroeercore.go:41:	resolveMediaType	100.0%
github.com/prebid/prebid-server/v3/adapters/stroeerCore/stroeercore.go:52:	MakeBids		88.2%
github.com/prebid/prebid-server/v3/adapters/stroeerCore/stroeercore.go:101:	getBidExt		100.0%
github.com/prebid/prebid-server/v3/adapters/stroeerCore/stroeercore.go:114:	MakeRequests		70.0%
github.com/prebid/prebid-server/v3/adapters/stroeerCore/stroeercore.go:154:	Builder			100.0%
total:										(statements)		84.3%

@ccorbo ccorbo self-assigned this Jan 6, 2026
@markustess
Copy link
Copy Markdown

@pm-isha-bharti Hey Isha, is there any chance that you could review this change from @philipwatson? It's currently blocking one of our publishers, so your help would be highly appreciated here. Thanks a lot in advance 🙏

@markustess
Copy link
Copy Markdown

Hey @bsardo, could you assign the PR to someone else, so that we can release this and get the additional value for our publisher? Thanks a lot for your help.

Comment on lines +105 to +112
extMap := map[string]json.RawMessage{}
if bid.Ext != nil {
_ = jsonutil.Unmarshal(bid.Ext, &extMap)
}
extMap["dsa"] = bid.DSA
ext, _ := json.Marshal(extMap)
return ext
}
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.

Please add JSON test coverage for this code if not already covered.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I believe this this function is covered by the JSON tests. And the code coverage summary shows 100%. Please let me know if there’s a case you’d like me to add.

@bsardo bsardo merged commit 064b4af into prebid:master Mar 3, 2026
6 checks passed
t-sormonte pushed a commit to Viously/prebid-server-go that referenced this pull request Mar 20, 2026
anthonyrichir pushed a commit to proxistore/prebid-server that referenced this pull request Mar 26, 2026
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.

6 participants