Skip to content

Commit

Permalink
set startCompact default value (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-lei committed May 18, 2023
1 parent ba3de3c commit 0e29c8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/flippBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ export const spec = {
const contentCode = urlParams['flipp-content-code'];
const userKey = getUserKey(validBidRequests[0]?.params);
const placements = validBidRequests.map((bid, index) => {
const options = bid.params.options || {};
if (!options.hasOwnProperty('startCompact')) {
options.startCompact = true;
}
return {
divName: TARGET_NAME,
networkId: NETWORK_ID,
Expand All @@ -113,7 +117,7 @@ export const spec = {
properties: {
...(!isEmpty(contentCode) && {contentCode: contentCode.slice(0, 32)}),
},
options: bid.params.options,
options,
prebid: {
requestId: bid.bidId,
publisherNameIdentifier: bid.params.publisherNameIdentifier,
Expand Down

0 comments on commit 0e29c8c

Please sign in to comment.