-
Notifications
You must be signed in to change notification settings - Fork 220
Mobkoi Adapter: set integration_type field in bid requests #4080
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
base: master
Are you sure you want to change the base?
Conversation
d4cc1dc
to
a6eeae3
Compare
d16f440
to
1901483
Compare
1901483
to
3ff0c54
Compare
@Value(staticConstructor = "of") | ||
public class MobkoiBidRequestExt { | ||
|
||
@JsonProperty("mobkoi") |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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()); | ||
} |
There was a problem hiding this comment.
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();
...
}
/** | ||
* The integration endpoint that will be used to send the bid requests to. Managed by the adapter configuration. | ||
*/ |
There was a problem hiding this comment.
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
/** | ||
* The integration endpoint that the bid requests will be sent to. For example, https://test.mobkoi.com/bid. | ||
*/ |
There was a problem hiding this comment.
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
/** | ||
* @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. | ||
*/ |
There was a problem hiding this comment.
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(/.*)?$" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename adServerBaseUrl
to integrationEndpoint
@zeeye update required |
@zeeye any update on this one? |
🔧 Type of changes
✨ 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