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

IX: Set bidVideo when category and duration is available #1274

Conversation

RodionOrets
Copy link
Contributor

@RodionOrets RodionOrets commented May 19, 2021

@RodionOrets RodionOrets force-pushed the indexexchange-disable-by-default-and-set-bidVideo-if-applicable branch from 674187b to 49ae4bb Compare May 19, 2021 12:07
Copy link
Collaborator

@SerhiiNahornyi SerhiiNahornyi left a comment

Choose a reason for hiding this comment

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

Pls add unit tests

url:
redirect-url:
url: https://ssum.casalemedia.com/usermatchredir?gdpr={{gdpr}}&gdpr_consent={{gdpr_consent}}&us_privacy={{us_privacy}}&r=
redirect-url: /setuid?bidder=improvedigital&gdpr={{gdpr}}&gdpr_consent={{gdpr_consent}}&us_privacy={{us_privacy}}&uid={{uid}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

You've taken wrong link

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also they have deleted endpoint value, pls set is as https://

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

bidder=improvedigital it's wrong link

@@ -46,6 +51,8 @@
// maximum number of bid requests
private static final int REQUEST_LIMIT = 20;

private static final String PREBID = "prebid";
Copy link
Collaborator

Choose a reason for hiding this comment

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

You never use this constant

Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems this constant is still never used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

src/main/java/org/prebid/server/bidder/ix/IxBidder.java Outdated Show resolved Hide resolved
src/main/java/org/prebid/server/bidder/ix/IxBidder.java Outdated Show resolved Hide resolved
src/main/java/org/prebid/server/bidder/ix/IxBidder.java Outdated Show resolved Hide resolved
src/main/java/org/prebid/server/bidder/ix/IxBidder.java Outdated Show resolved Hide resolved
src/main/java/org/prebid/server/bidder/ix/IxBidder.java Outdated Show resolved Hide resolved
src/main/java/org/prebid/server/bidder/ix/IxBidder.java Outdated Show resolved Hide resolved
@RodionOrets RodionOrets force-pushed the indexexchange-disable-by-default-and-set-bidVideo-if-applicable branch from 49ae4bb to 819aa87 Compare May 20, 2021 11:41
@@ -46,6 +51,8 @@
// maximum number of bid requests
private static final int REQUEST_LIMIT = 20;

private static final String PREBID = "prebid";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems this constant is still never used

src/main/java/org/prebid/server/bidder/ix/IxBidder.java Outdated Show resolved Hide resolved
src/main/resources/bidder-config/ix.yaml Outdated Show resolved Hide resolved
src/main/resources/bidder-config/ix.yaml Outdated Show resolved Hide resolved
private BidderBid toBidderBid(Bid bid, BidRequest bidRequest, BidResponse bidResponse) {
final BidType bidType = getBidType(bid.getImpid(), bidRequest.getImp());

Bid.BidBuilder bidBuilder = bid.toBuilder();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can be final

Copy link
Collaborator

Choose a reason for hiding this comment

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

Creating builder is not a cheap operation. Can we update logic to create builder only in case if we really need it?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Still can be final

@RodionOrets RodionOrets force-pushed the indexexchange-disable-by-default-and-set-bidVideo-if-applicable branch from 819aa87 to 1b14554 Compare May 21, 2021 08:44
private BidderBid toBidderBid(Bid bid, BidRequest bidRequest, BidResponse bidResponse) {
final BidType bidType = getBidType(bid.getImpid(), bidRequest.getImp());

Bid.BidBuilder bidBuilder = bid.toBuilder();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Still can be final

@RodionOrets RodionOrets force-pushed the indexexchange-disable-by-default-and-set-bidVideo-if-applicable branch from 1b14554 to 89cacc9 Compare May 21, 2021 13:37
@RodionOrets RodionOrets force-pushed the indexexchange-disable-by-default-and-set-bidVideo-if-applicable branch from 89cacc9 to d5d292b Compare May 24, 2021 08:07
rpanchyk
rpanchyk previously approved these changes May 24, 2021
@rpanchyk rpanchyk merged commit 422a1a1 into master Jun 7, 2021
@rpanchyk rpanchyk deleted the indexexchange-disable-by-default-and-set-bidVideo-if-applicable branch June 7, 2021 08:14
url:
redirect-url:
url: https://ssum.casalemedia.com/usermatchredir?s=189517&gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&cb=
redirect-url: /setuid?bidder=ix&gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&uid=
Copy link
Contributor

Choose a reason for hiding this comment

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

This link contains the GO server macros, not the java ones @RodionOrets

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess it should be

/setuid?bidder=ix&gdpr={{gdpr}}&gdpr_consent={{gdpr_consent}}&us_privacy={{us_privacy}}&uid=

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.

4 participants