-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Improve Digital adapter: use Prebid sizes param #3648
Conversation
if (localSize && localSize.w && localSize.h) { | ||
|
||
if (config.getConfig('improvedigital.usePrebidSizes') === true && bid.sizes && bid.sizes.length > 0) { | ||
normalizedBidRequest.format = bid.sizes; |
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.
I don't think sizes
is normally included in the bid request
object. Is this some special case? or is this supposed to be the bid response
?
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.
It's supposed to be in the bid request, not response. Here's I believe where sizes field is populated: https://github.com/prebid/Prebid.js/blob/master/src/adapterManager.js#L98
Also, Appnexus adapter uses sizes the same way: https://github.com/prebid/Prebid.js/blob/master/modules/appnexusBidAdapter.js#L463
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.
Cool, I wasn't aware of that. thx for the pointers.
* Adding GDPR support * Always drop user syncs when available * Set dealID based on buying type * Native ads, single request option * Send ad unit sizes to Improve ad server * adapter version -> 5.1 * Adding usePrebidSizes config param
* Adding GDPR support * Always drop user syncs when available * Set dealID based on buying type * Native ads, single request option * Send ad unit sizes to Improve ad server * adapter version -> 5.1 * Adding usePrebidSizes config param
Type of change
Description of change
New adapter config parameter "usePrebidSizes" added which tells the Improve Digital ad server to serve the creatives based on the sizes defined in Prebid ad unit config rather than placement sizes defined in the ad server.
Related doc PR: prebid/prebid.github.io#1211