-
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
Underdog Media 1.0 Compliance #1801
Conversation
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.
@Jacobkmiller Thanks for updating adapter.
Left some minor comments.
modules/underdogmediaBidAdapter.js
Outdated
|
||
function _makeNotification(bid, mid, bidParam) { | ||
makeNotification: function (bid, mid, bidParam) { |
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.
makeNotification
and getUrlVars
function can remain private in adapter. No need to added them to spec
return { | ||
method: 'GET', | ||
url: `${window.location.protocol}//udmserve.net/udm/img.fetch`, | ||
data: `tid=1;dt=10;sid=${siteId};sizes=${sizes.join(',')}`, |
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.
More params can be added to request object here. So you can add bidParams
to bidRequest and access that in interpretResponse
method.
By doing this you can remove bidParams
line 15.
siteId: '12143' | ||
}, | ||
requestId: '10b327aa396609', | ||
placementCode: '/123456/header-bid-tag-1' |
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.
In 1.0 we have renamed placementCode
to adUnitCode
. Please rename
Thanks @jaiminpanchal27 for the review. I have updated the PR with your changes. |
Type of change
Description of change
Update of Underdog Media adapter for 1.0 Compliance