-
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
Enforce video branch #3478
Merged
Merged
Enforce video branch #3478
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7d239e5
Merge pull request #1 from prebid/master
arikkfir 1f54dd4
Merge branch 'master' of github.com:gamoshi/Prebid.js
1eff2e5
Merge branch 'master' of https://github.com/prebid/Prebid.js
mmoses decb789
Merge remote-tracking branch 'prebid/master'
mmoses 6e225a9
Merge remote-tracking branch 'upstream/master'
7bf3be1
Add support for multi-format ad units. Add favoredMediaType property …
fed69e9
Add tests for gdpr consent.
a3b2850
Add adId to outbids
c53757a
Modify media type resolving
65cbdd8
Refactor multi-format ad units handler.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
``` | ||
Module Name: Gamoshi Bid Adapter | ||
Module Type: Bidder Adapter | ||
Maintainer: moses@gamoshi.com | ||
Maintainer: salomon@gamoshi.com | ||
``` | ||
|
||
# Description | ||
|
@@ -47,7 +47,6 @@ var adUnits = [ | |
// Video outstream adUnit | ||
{ | ||
code: 'video-outstream', | ||
sizes: [[300, 250]], | ||
mediaTypes: { | ||
video: { | ||
context: 'outstream', | ||
|
@@ -76,6 +75,47 @@ var adUnits = [ | |
//instl: 0 | ||
} | ||
}] | ||
} | ||
}, | ||
|
||
// Multi-Format adUnit | ||
{ | ||
code: 'banner-div', | ||
mediaTypes: { | ||
video: { | ||
context: 'outstream', | ||
playerSize: [300, 250] | ||
}, | ||
banner: { | ||
sizes: [[300, 250]] | ||
} | ||
}, | ||
bids: [{ | ||
bidder: 'gamoshi', | ||
params: { | ||
|
||
// ID of the supply partner you created in the Gamoshi dashboard | ||
supplyPartnerId: '1253', | ||
|
||
// OPTIONAL: if you have a whitelabel account on Gamoshi, specify it here | ||
//rtbEndpoint: 'https://my.custom-whitelabel-domain.io', | ||
|
||
// OPTIONAL: custom bid floor | ||
bidfloor: 0.01, | ||
|
||
// OPTIONAL: if you know the ad position on the page, specify it here | ||
// (this corresponds to "Ad Position" in OpenRTB 2.3, section 5.4) | ||
//adpos: 1, | ||
|
||
// OPTIONAL: whether this is an interstitial placement (0 or 1) | ||
// (see "instl" property in "Imp" object in the OpenRTB 2.3, section 3.2.2) | ||
//instl: 0, | ||
|
||
// OPTIONAL: enable enforcement bids of a specific media type (video, banner) | ||
// in this ad placement | ||
// query: 'key1=value1&k2=value2', | ||
// favoredMediaType: 'video', | ||
} | ||
}] | ||
}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the expanded markdown information! |
||
]; | ||
``` |
Oops, something went wrong.
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.
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.
@sa1omon
If a pub enables the consent module, but for some reason the consent information cannot be found,
then prebid passes an object like so to the bidders:
which in this scenario would end up sending an empty object to your exchange like so
Looks like your ad server handles it just fine but wanted to make it known!
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.
Thanks for the insight, we will update the code in the next PR.