Skip to content
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 banner support to Beachfront adapter #2117

Merged
merged 20 commits into from
Mar 6, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix bid response validation
  • Loading branch information
John Salis committed Jan 24, 2018
commit cbeecf3ccb6960bf83001ffbab244b5732c4d77b
11 changes: 6 additions & 5 deletions modules/beachfrontBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ export const spec = {

interpretResponse(response, { bidRequest }) {
response = response.body;
if (!response || !response.url || !response.bidPrice) {
utils.logWarn(`No valid bids from ${spec.code} bidder`);
return [];
}
let size = getSize(bidRequest.sizes);
let isVideo = bidRequest.mediaTypes && bidRequest.mediaTypes.video;
if (isVideo) {
if (!response || !response.url || !response.bidPrice) {
utils.logWarn(`No valid bids from ${spec.code} bidder`);
return [];
}
return {
requestId: bidRequest.bidId,
bidderCode: spec.code,
Expand Down Expand Up @@ -105,7 +105,8 @@ function createRequestParams(bid) {
},
device: {
ua: global.navigator.userAgent,
devicetype: isMobile() ? 1 : isConnectedTV() ? 3 : 2
devicetype: isMobile() ? 1 : isConnectedTV() ? 3 : 2,
geo: {}
},
cur: ['USD']
};
Expand Down