Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insticator: Add Bidder #3647

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Insticator: Add Bidder #3647

wants to merge 2 commits into from

Conversation

AntoxaAntoxic
Copy link
Collaborator

🔧 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?

@AntoxaAntoxic AntoxaAntoxic self-assigned this Dec 20, 2024
@AntoxaAntoxic AntoxaAntoxic linked an issue Dec 20, 2024 that may be closed by this pull request
@osulzhenko osulzhenko requested a review from CTMBNara December 20, 2024 13:17
Comment on lines +188 to +206
private ExtRequest modifyExtRequest(ExtRequest extRequest, List<BidderError> errors) {
final ExtRequest modifiedExtRequest = extRequest == null ? ExtRequest.empty() : extRequest;
final InsticatorExtRequest existingInsticator;

try {
existingInsticator = mapper.mapper().convertValue(
modifiedExtRequest.getProperty(INSTICATOR_FIELD),
InsticatorExtRequest.class);
} catch (IllegalArgumentException e) {
errors.add(BidderError.badInput(e.getMessage()));
return modifiedExtRequest;
}

modifiedExtRequest.addProperty(
INSTICATOR_FIELD,
mapper.mapper().valueToTree(buildInsticator(existingInsticator)));

return modifiedExtRequest;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Based on the code in GO, we should always add Prebid caller.
Please, fix this, and check that the logic of other parts of the adapter corresponds the GO version.

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

Successfully merging this pull request may close these issues.

Port PR from PBS-Go: New Adapter: Insticator
2 participants