Skip to content

Commit

Permalink
Ssmas Bid Adapter : use iframe for user sync (#10465)
Browse files Browse the repository at this point in the history
* change to https

* user sync type iframe
  • Loading branch information
hzchen98 committed Sep 12, 2023
1 parent a81323f commit f54c6e5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions modules/ssmasBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,19 @@ export const spec = {
params.push(`ccpa_consent=${uspConsent.consentString}`);
}

if (syncOptions.pixelEnabled && serverResponses.length > 0) {
if (syncOptions.iframeEnabled && serverResponses.length > 0) {
syncs.push({
type: 'image',
url: `${SYNC_URL}?${params.join('&')}`
type: 'iframe',
url: `${SYNC_URL}/iframe?${params.join('&')}`
});
}

// if (syncOptions.pixelEnabled && serverResponses.length > 0) {
// syncs.push({
// type: 'image',
// url: `${SYNC_URL}/image?${params.join('&')}`
// });
// }
return syncs;
},
};
Expand Down

0 comments on commit f54c6e5

Please sign in to comment.