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

Appush: Add adapter #2142

Merged
merged 10 commits into from
Feb 9, 2023
Merged

Appush: Add adapter #2142

merged 10 commits into from
Feb 9, 2023

Conversation

vpontesfreestar
Copy link
Contributor

No description provided.

@And1sS And1sS changed the title S2S-712 - Add Appush adapter Appush: Add adapter Feb 1, 2023
import lombok.Value;

@AllArgsConstructor(staticName = "of")
@Value
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Value(staticConstrucor= "of")

String type;

@JsonProperty(value = "placementId")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks useless, this should be held on bidder-code side, same for line 19

}
}

throw new PreBidException(String.format(FAILED_TO_FIND_IMPRESSION_ERROR_MESSAGE, impId));
Copy link
Collaborator

Choose a reason for hiding this comment

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

WE don't need FAILED_TO_FIND_IMPRESSION_ERROR_MESSAGE constant, pls just inline this

return imp.toBuilder().ext(modifiedImpExtBidder).build();
}

private AppushImpExtBidder buildImpExtAppushWithType(ExtImpAppush extImpAppush) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Pls rename to resolveImpExt()
Also method can be static


private AppushImpExtBidder buildImpExtAppushWithType(ExtImpAppush extImpAppush) {

AppushImpExtBidder.AppushImpExtBidderBuilder builder = AppushImpExtBidder.builder();
Copy link
Collaborator

Choose a reason for hiding this comment

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

We prefer to use final keyword for variables, pls check similar occurrences

@SerhiiNahornyi SerhiiNahornyi merged commit 4d22706 into prebid:master Feb 9, 2023
osulzhenko pushed a commit that referenced this pull request Mar 2, 2023
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.

2 participants