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

Improve Digital adapter: use Prebid sizes param #3648

Merged
merged 14 commits into from
Mar 25, 2019

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
pycnvr pushed a commit to conversant/Prebid.js that referenced this pull request Apr 4, 2019
* 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
jacekburys-quantcast pushed a commit to jacekburys-quantcast/Prebid.js that referenced this pull request May 15, 2019
* 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
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