Skip to content

Improve Digital adapter: use Prebid sizes param#3648

Merged
harpere merged 14 commits intoprebid:masterfrom
ImproveDigital:master
Mar 25, 2019
Merged

Improve Digital adapter: use Prebid sizes param#3648
harpere merged 14 commits intoprebid:masterfrom
ImproveDigital:master

Conversation

@jbartek25
Copy link
Contributor

Type of change

  • Bugfix
  • Feature

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

if (localSize && localSize.w && localSize.h) {

if (config.getConfig('improvedigital.usePrebidSizes') === true && bid.sizes && bid.sizes.length > 0) {
normalizedBidRequest.format = bid.sizes;
Copy link
Collaborator

@harpere harpere Mar 19, 2019

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?

Copy link
Contributor Author

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

Copy link
Collaborator

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.

@harpere harpere merged commit 04b1ec2 into prebid:master Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments