-
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
Smartyads Adapter 1.x #2080
Smartyads Adapter 1.x #2080
Conversation
Thanks for the submission @isss1650. While the review is taking place, please note that we will require that a file for this adapter be added to https://github.com/prebid/prebid.github.io/tree/master/dev-docs/bidders |
modules/smartyadsBidAdapter.js
Outdated
} | ||
switch (bid['mediaType']) { | ||
case 'banner': | ||
return Boolean(bid['width'] && bid['height'] && bid['ad']); |
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.
don't need the Boolean function here. Also prefer dot notation bid.width
vs bracket notation for known keys.
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.
Dot notation added.
Boolean - disagree. In my opinion, the function must always return data of the same type.
The validation function must return a value in the boolean data type.
Don't you agree with me?
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.
yeah that's fine I'm just use to reviewing code with !! instead of Boolean but it should be functionally equivalent.
modules/smartyadsBidAdapter.js
Outdated
return false; | ||
} | ||
switch (bid['mediaType']) { | ||
case '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.
we have constants for these types you can use.
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.
Done
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. One comment, your user sync URL http://ssp-nj.webtradehub.com/?c=o&m=cookie
returns a 404
* master: (27 commits) Increment pre version Prebid 1.5.0 Release Fix cross-platform test failures (prebid#2228) Fix uncahced video bids from multi-response array triggering callback early (prebid#2219) Add vuble adapter (prebid#2201) Update Vidazoo domain (prebid#2223) InSkin Bid Adapter: remove referrer field from request body (prebid#2217) Gamma Support UserSync Endpoint (prebid#2216) Feature/stale bot (prebid#2192) 33Across Bid Adapter: updated user sync endpoint (prebid#2193) Adding PR_REVIEW guideline (prebid#2159) Add FairTrade Bid Adapter (prebid#2147) Add banner support to Beachfront adapter (prebid#2117) Smartyads Adapter 1.x (prebid#2080) Audience Network: allow native bids for non-IAB sizes (prebid#2203) Update position default value in rubicon (prebid#2214) Auctionmanager spec refactor pr (prebid#2155) fix mediaType being overwritten by undefined in rubicon bid adapter (prebid#2209) Fix lint error (prebid#2208) VAST support in adform adapter (prebid#2173) ...
* add SmartyAds adapter 1.0 * amendment Smartyads adapter
Type of change
Description of change
Added HB adapter for SmartyAds SSP
contact email of the adapter’s maintainer: [email protected]
official adapter submission