Skip to content

Conversation

zeeye
Copy link

@zeeye zeeye commented Jul 23, 2025

🔧 Type of changes

  • bid adapter update

✨ What's the context?

What's the context for the changes?
Set the ext.mobkoi.integration_type field of the bid request objects for internal usage.

🧠 Rationale behind the change

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

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

@zeeye zeeye marked this pull request as draft July 23, 2025 16:29
@zeeye zeeye force-pushed the set-integration-type-field branch 3 times, most recently from d4cc1dc to a6eeae3 Compare July 25, 2025 16:40
@zeeye zeeye marked this pull request as ready for review July 25, 2025 16:41
@zeeye zeeye force-pushed the set-integration-type-field branch 3 times, most recently from d16f440 to 1901483 Compare July 25, 2025 17:42
@zeeye zeeye force-pushed the set-integration-type-field branch from 1901483 to 3ff0c54 Compare July 25, 2025 17:44
@osulzhenko osulzhenko requested a review from CTMBNara August 7, 2025 20:21
@Value(staticConstructor = "of")
public class MobkoiBidRequestExt {

@JsonProperty("mobkoi")
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need for JsonProperty here

public class MobkoiBidRequestExt {

@JsonProperty("mobkoi")
final Mobkoi mobkoi;
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need for final modifier, because you are using @Value

@Value(staticConstructor = "of")
public static class Mobkoi {

@JsonProperty("integration_type")
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need for @JsonProperty here, our object mapper defaults to snake_case

public static class Mobkoi {

@JsonProperty("integration_type")
final String integrationType = "pbs";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same


public static MobkoiBidRequestExt of() {
return new MobkoiBidRequestExt(Mobkoi.of());
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove this static constructor

@Value(staticConstructor = "of")
public class MobkoiBidRequestExt {

    Mobkoi mobkoi = Mobkoi.of();

    ...
}

Comment on lines +44 to +46
/**
* The integration endpoint that will be used to send the bid requests to. Managed by the adapter configuration.
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need for this comment

Comment on lines +12 to +14
/**
* The integration endpoint that the bid requests will be sent to. For example, https://test.mobkoi.com/bid.
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need for this comment

Comment on lines +259 to +263
/**
* @param placementId The placement id provided by Mobkoi.
* @param integrationEndpoint The integration endpoint that will be used to send the bid requests to.
* @return The imp ext.
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove this comment

"description": "Mobkoi's ad server url",
"pattern": "^https?://[^.]+\\.mobkoi\\.com$"
"description": "Mobkoi's integration endpoint that will be used to send the bid requests to. For example, https://test.mobkoi.com/bid.",
"pattern": "^https?://[^.]+\\.mobkoi\\.com(/.*)?$"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Rename adServerBaseUrl to integrationEndpoint

@osulzhenko
Copy link
Collaborator

@zeeye update required

@osulzhenko
Copy link
Collaborator

@zeeye any update on this one?

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.

3 participants