Skip to content

Comments

RTBHouse: Extract tagid from Imp fields#4624

Open
pjaworski-rtbh wants to merge 7 commits intoprebid:masterfrom
lotani-rtbh:rtbhouse/tagid-handling
Open

RTBHouse: Extract tagid from Imp fields#4624
pjaworski-rtbh wants to merge 7 commits intoprebid:masterfrom
lotani-rtbh:rtbhouse/tagid-handling

Conversation

@pjaworski-rtbh
Copy link
Contributor

@pjaworski-rtbh pjaworski-rtbh commented Dec 3, 2025

🔧 Type of changes

  • bid adapter update
  • enhancement

✨ What's the context?

Related PR (Java): prebid/prebid-server-java#4306
RTBHouse bidder was not setting imp.tagid in outgoing requests, which could impact ad targeting effectiveness. This change adds support for populating tagid from various incoming request fields with a defined priority order.

📋 Description

Adds logic to set imp.tagid in RTBHouse bid requests using fallback priority: imp.ext.gpidimp.ext.data.adserver.adslotimp.ext.data.pbadslotimp.id → null. This ensures better ad targeting by providing RTBHouse with appropriate tagid values.

🧪 Testing results

Tests run: 34, Failures: 0, Errors: 0, Skipped: 0
coverage: 92.6% of statements
All RTBHouse bidder tests pass successfully. Updates:

  • New exemplary tests for the feature (4 tests)
  • Updated existing 17 exemplary and 9 supplemental tests to include imp.tagid in expected outgoing requests

Other information

Please reach us at inventory_support@rtbhouse.com with piotr.jaworski@rtbhouse.com and cc leandro.otani@rtbhouse.com.

@github-actions
Copy link

github-actions bot commented Dec 3, 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, a29a2da

rtbhouse

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:40:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:48:	MakeRequests		86.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:165:	setPublisherID		90.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:218:	clearAuctionEnvironment	100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:226:	getTagIDFromImpExt	91.7%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:255:	getImpressionExt	85.7%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:291:	MakeBids		100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:358:	getMediaTypeForBid	100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:369:	getNativeAdm		100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:389:	resolveMacros		100.0%
total:									(statements)		91.6%

@pjaworski-rtbh pjaworski-rtbh marked this pull request as ready for review December 3, 2025 13:21
@github-actions
Copy link

github-actions bot commented Dec 3, 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, 94f705b

rtbhouse

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:40:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:48:	MakeRequests		88.9%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:161:	setPublisherID		90.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:214:	clearAuctionEnvironment	100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:221:	getTagIDFromImpExt	91.7%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:250:	getImpressionExt	85.7%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:286:	MakeBids		100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:353:	getMediaTypeForBid	100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:364:	getNativeAdm		100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:384:	resolveMacros		100.0%
total:									(statements)		92.6%

@bsardo bsardo added the adapter label Dec 3, 2025
@pjaworski-rtbh
Copy link
Contributor Author

@bsardo Could you please share an estimate for when we can expect an updated status on this PR? The Java PR is nearly finalized, and we’d like to bring this one to the same point as well.

Copy link

@Taxel Taxel left a comment

Choose a reason for hiding this comment

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

Please make sure pbadslot is written in lowercase both in the comment and the test.
The code (and lowercased field name) seems to be correct.

@github-actions
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, 9cc6942

rtbhouse

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:40:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:48:	MakeRequests		88.9%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:161:	setPublisherID		90.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:214:	clearAuctionEnvironment	100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:221:	getTagIDFromImpExt	91.7%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:250:	getImpressionExt	80.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:279:	MakeBids		100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:346:	getMediaTypeForBid	100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:357:	getNativeAdm		100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:377:	resolveMacros		100.0%
total:									(statements)		92.5%

Taxel
Taxel previously approved these changes Feb 11, 2026
Copy link
Contributor

@linux019 linux019 left a comment

Choose a reason for hiding this comment

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

Please use jsonutil wrapper instead of standard json - it much faster

@github-actions
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, dbd3765

rtbhouse

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:40:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:48:	MakeRequests		88.9%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:161:	setPublisherID		90.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:214:	clearAuctionEnvironment	100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:221:	getTagIDFromImpExt	91.7%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:248:	getImpressionExt	80.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:277:	MakeBids		100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:344:	getMediaTypeForBid	100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:355:	getNativeAdm		100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:375:	resolveMacros		100.0%
total:									(statements)		92.5%

Copy link
Contributor Author

@pjaworski-rtbh pjaworski-rtbh left a comment

Choose a reason for hiding this comment

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

@linux019 All suggestions have been covered.

@github-actions
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, b9ef063

rtbhouse

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:40:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:48:	MakeRequests		88.9%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:161:	setPublisherID		90.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:214:	clearAuctionEnvironment	100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:221:	getTagIDFromImpExt	100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:244:	getImpressionExt	85.7%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:265:	MakeBids		100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:332:	getMediaTypeForBid	100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:343:	getNativeAdm		100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:363:	resolveMacros		100.0%
total:									(statements)		93.5%

@github-actions
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, 9d59dea

rtbhouse

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:40:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:48:	MakeRequests		88.9%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:161:	setPublisherID		90.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:214:	clearAuctionEnvironment	100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:221:	getTagIDFromImpExt	100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:244:	getImpressionExt	85.7%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:265:	MakeBids		100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:332:	getMediaTypeForBid	100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:343:	getNativeAdm		100.0%
github.com/prebid/prebid-server/v3/adapters/rtbhouse/rtbhouse.go:363:	resolveMacros		100.0%
total:									(statements)		93.5%

@pjaworski-rtbh pjaworski-rtbh requested a review from Taxel February 20, 2026 16:35
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.

5 participants