add vastUrl + media type for video bids Prebid Server#1739
Merged
Conversation
dbemiller
suggested changes
Oct 24, 2017
modules/prebidServerBidAdapter.js
Outdated
| if (bidObj.nurl) { | ||
| bidObject.ad += utils.createTrackPixelHtml(decodeURIComponent(bidObj.nurl)); | ||
| if (bidObj.media_type === 'video') { | ||
| bidObject.vastUrl = bidObj.nurl; |
Contributor
There was a problem hiding this comment.
Is a nurl guaranteed on video bids?
In section 6.4.2 of the OpenRTB 2.5 spec, it looks like video bids could either serve vastUrl through the nurl, or vastXml through adm.
| bidObject.ad = bidObj.adm; | ||
| if (bidObj.nurl) { | ||
| bidObject.ad += utils.createTrackPixelHtml(decodeURIComponent(bidObj.nurl)); | ||
| } |
Contributor
There was a problem hiding this comment.
Looks like these should be the other way around. From the spec, adm is described as:
Optional means of conveying ad markup in case the bid wins; supersedes the win notice if markup is included in both.
(see section 4.2.3)
Contributor
Author
|
@bretg fyi on video support |
matthewlane
approved these changes
Oct 26, 2017
modules/prebidServerBidAdapter.js
Outdated
| delete adUnit.mediaTypes.video; | ||
| delete adUnit.mediaTypes; | ||
| // default is assumed to be 'banner' so if there is a video type we assume video only until PBS can support multi format auction. | ||
| adUnit.media_types = ['video']; |
Collaborator
There was a problem hiding this comment.
Would it make sense to use the VIDEO constant here too?
dbemiller
approved these changes
Oct 27, 2017
Millerrok
pushed a commit
to Vertamedia/Prebid.js
that referenced
this pull request
Oct 31, 2017
* 'master' of https://github.com/prebid/Prebid.js: (22 commits) Update GetIntent adapter to 1.0 version (prebid#1721) Add `usePaymentRule` param to AN bidders (prebid#1778) New hooks API (replaces monkey-patching for currency) (prebid#1683) Change prebidServer to call client user syncs if they exist (prebid#1734) Fix Centro adapter to allow requests of the same units (prebid#1746) add vastUrl + media type for video bids Prebid Server (prebid#1739) Update adxcg adapter for prebid 1.0 (prebid#1741) Update yieldmoBid adapter request url (prebid#1771) Upgrade Quantcast adapter for Prebid 1.0 (prebid#1753) Fidelity Media Adapter update. Prebid v1.0 (prebid#1719) Kargo Adapter for Prebid 1.0 (prebid#1729) updated for prebid 1.0 api (prebid#1722) Add AdOcean adapter (prebid#1735) Update Conversant adapter to Prebid 1.0 (prebid#1711) Fix test-coverage bug (prebid#1765) Migrating TrustX adapter to 1.0 (prebid#1709) Update Improve Digital adapter for Prebid 1.0 (prebid#1728) Fixed the argument type on getUserSyncs. (prebid#1767) nanointeractive bid adapter (prebid#1627) Validating bid response params (prebid#1738) ...
outoftime
pushed a commit
to Genius/Prebid.js
that referenced
this pull request
Nov 13, 2017
* tag '0.32.0' of https://github.com/prebid/Prebid.js: (44 commits) Prebid 0.32.0 Release Commenting out tests that are failing in IE10 (prebid#1710) Update dfp.buildVideoUrl to accept adserver url (prebid#1663) Update rubicon adapter with new properties and 1.0 changes (prebid#1776) Added adUnitCode for compatibility (prebid#1781) Remove 'supported' from analytics adapter info (prebid#1780) Add TTL parameter to bid (prebid#1784) Update GetIntent adapter to 1.0 version (prebid#1721) Add `usePaymentRule` param to AN bidders (prebid#1778) New hooks API (replaces monkey-patching for currency) (prebid#1683) Change prebidServer to call client user syncs if they exist (prebid#1734) Fix Centro adapter to allow requests of the same units (prebid#1746) add vastUrl + media type for video bids Prebid Server (prebid#1739) Update adxcg adapter for prebid 1.0 (prebid#1741) Update yieldmoBid adapter request url (prebid#1771) Upgrade Quantcast adapter for Prebid 1.0 (prebid#1753) Fidelity Media Adapter update. Prebid v1.0 (prebid#1719) Kargo Adapter for Prebid 1.0 (prebid#1729) updated for prebid 1.0 api (prebid#1722) Add AdOcean adapter (prebid#1735) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of change
Description of change
Incremental updates for getting video demand working through PBS.