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
core: allow bid adapters to return null fledgeAuctionConfigs #11271
core: allow bid adapters to return null fledgeAuctionConfigs #11271
Conversation
807dfa0
to
b0ce604
Compare
b0ce604
to
bb4bdbb
Compare
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.
Is there a plan to migrate to something different than fledgeAuctionConfigs
at all?
Not involved in this project much but I know the name fledge
has gone away.
Should we add support for a key paapiConfigs
?
Excellent suggestion @robertrmartinez. As a punishment for it, you'll need to review again. |
e6d2edd
to
e6fa848
Compare
e6fa848
to
a514701
Compare
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.
LGTM
throw new Error(`Adapter response should use ${PAAPI_RESPONSE_PROPS[0]} over ${PAAPI_RESPONSE_PROPS[1]}, not both`); | ||
} | ||
return paapi ?? fledge; | ||
} |
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.
niiiiice
bids: bids, | ||
[paapiProp]: [paapiConfig] | ||
}); | ||
bidder.callBids(bidRequest, addBidResponseStub, doneStub, ajaxStub, onTimelyResponseStub, wrappedCallback); |
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.
maybe a test for prefers 'paapiAuctionConfigs' over 'fledgeAuctionConfigs' if both defined
?
Prob not a real life scenario though so maybe not!
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.
Looks good!
…11271) * core: allow bid adapters to return null fledgeAuctionConfigs * Accept paapiAuctionConfigs from adapters * add test case
Type of change
Description of change
Allow adapters to return an object with null/undefined paapi configs (e.g.
{bids: [...]}
), to avoid boilerplate that unwraps return values from ortbConverter.