-
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
Add Yieldlab adapter #1967
Add Yieldlab adapter #1967
Conversation
Ping! |
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.
@GEMI Left some comments
|
||
export const spec = { | ||
code: BIDDER_CODE, | ||
supportedMediaTypes: [VIDEO, BANNER], |
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.
banner is default so no need to add in supportedMediaTypes
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.
modules/yieldlabBidAdapter.js
Outdated
ad: `<script src="${ENDPOINT}/d/${matchedBid.id}/${bidRequest.params.accountId}/${sizes[0]}x${sizes[1]}?ts=${timestamp}"></script>` | ||
} | ||
if (isVideo(bidRequest)) { | ||
bidResponse.mediaType = 'video' |
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.
Since you are importing mediaTypes you can use VIDEO
const.
modules/yieldlabBidAdapter.md
Outdated
var adUnits = [ | ||
{ | ||
code: "test1", | ||
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.
Empty sizes is not allowed. Prebid core uses this sizes in size mapping modules and also multi format will also use the same.
More about sizes here http://prebid.org/dev-docs/publisher-api-reference.html#module_pbjs.addAdUnits
I have fixed the points that you have raised. Is the code ok now? |
@GEMI |
Everything in place! |
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.
LGTM. Please also submit a PR to the docs repo to add a file for your adapter to the bidders directory so your adapter's params will appear on the bidders page
I have create a new PR - prebid/prebid.github.io#571 |
Type of change
Description of change
This is an adapter for Yieldlab.
Regular ad:
Video ad: