Skip to content

Conversation

@osulzhenko
Copy link
Collaborator

@osulzhenko osulzhenko commented Sep 15, 2025

🔧 Type of changes

  • new bid adapter
  • bid adapter update
  • new feature
  • new analytics adapter
  • new module
  • module update
  • bugfix
  • documentation
  • configuration
  • dependency update
  • tech debt (test coverage, refactorings, etc.)

✨ What's the context?

What's the context for the changes?

🧠 Rationale behind the change

Why did you choose to make these changes? Were there any trade-offs you had to consider?

🔎 New Bid Adapter Checklist

  • verify email contact works
  • NO fully dynamic hostnames
  • geographic host parameters are NOT required
  • direct use of HTTP is prohibited - implement an existing Bidder interface that will do all the job
  • if the ORTB is just forwarded to the endpoint, use the generic adapter - define the new adapter as the alias of the generic adapter
  • cover an adapter configuration with an integration test

🧪 Test plan

How do you know the changes are safe to ship to production?

🏎 Quality check

  • Are your changes following our code style guidelines?
  • Are there any breaking changes in your code?
  • Does your test coverage exceed 90%?
  • Are there any erroneous console logs, debuggers or leftover code in your changes?

@osulzhenko osulzhenko requested a review from marki1an September 15, 2025 13:12
@osulzhenko osulzhenko self-assigned this Sep 15, 2025
@osulzhenko osulzhenko added the tests Functional or other tests label Sep 15, 2025
@osulzhenko osulzhenko added tests Functional or other tests and removed tests Functional or other tests labels Sep 26, 2025
assert targetingKeyMap["hb_pb"] == String.format("%,.2f", max.setScale(precision, RoundingMode.DOWN))
}

def "PBS auction shouldn't delete bid and update targeting if price equal zero and dealId it present"() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
def "PBS auction shouldn't delete bid and update targeting if price equal zero and dealId it present"() {
def "PBS auction shouldn't delete bid and update targeting if price equal zero and dealId present"() {

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add method to the end of the spec.

Comment on lines 554 to 560
and: "Create and save stored response with zero prise into DB"
def storedBidResponse = BidResponse.getDefaultBidResponse(bidRequest).tap {
seatbid[0].bid[0].price = 0
seatbid[0].bid[0].dealid = PBSUtils.randomNumber
}
def storedResponse = new StoredResponse(responseId: storedBidResponseId, storedBidResponse: storedBidResponse)
storedResponseDao.save(storedResponse)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure, but I hope we can replace storeBidResponse with bidder.setResponse(bidRequest.id, bidResponse)

Comment on lines 567 to 569
assert targetingKeyMap["hb_pb"] == '0.0'
assert targetingKeyMap["hb_pb_generic"] == '0.0'
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can create a const for "0.0"

@osulzhenko osulzhenko force-pushed the functional-tests/targeting-hb-pb-fix branch from 8f9d614 to 770da27 Compare September 26, 2025 15:33
@osulzhenko osulzhenko merged commit 811e4c7 into targeting-hb-pb-fix Sep 29, 2025
1 check passed
@osulzhenko osulzhenko deleted the functional-tests/targeting-hb-pb-fix branch September 29, 2025 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Functional or other tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants