Skip to content

Commit

Permalink
Lasso Bid Adapter: update version and request credential setting (pre…
Browse files Browse the repository at this point in the history
…bid#8848)

* update Lasso adapter request setting

* update empty ad response logic
  • Loading branch information
victorlassomarketing authored and JacobKlein26 committed Feb 8, 2023
1 parent 6461160 commit eadc87a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/lassoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const spec = {
params: JSON.stringify(bidRequest.params),
crumbs: JSON.stringify(bidRequest.crumbs),
prebidVersion: '$prebid.version$',
version: 1,
version: 2,
coppa: config.getConfig('coppa') == true ? 1 : 0,
ccpa: bidderRequest.uspConsent || undefined
}
Expand All @@ -57,7 +57,7 @@ export const spec = {
url: getBidRequestUrl(aimXR),
data: payload,
options: {
withCredentials: false
withCredentials: true
},
};
});
Expand All @@ -67,7 +67,7 @@ export const spec = {
const response = serverResponse && serverResponse.body;
const bidResponses = [];

if (!response) {
if (!response || !response.bid.ad) {
return bidResponses;
}

Expand Down

0 comments on commit eadc87a

Please sign in to comment.