Skip to content

Commit

Permalink
Update sharethroughBidAdapter.js (prebid#11451)
Browse files Browse the repository at this point in the history
* Update the logic to determine how `gpid` is applied to a bid request.
  • Loading branch information
jefftmahoney authored and f.caspar committed May 14, 2024
1 parent ddc5b06 commit e25fed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sharethroughBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const sharethroughAdapterSpec = {
// mergeDeep(impression, bidReq.ortb2Imp); // leaving this out for now as we may want to leave stuff out on purpose
const tid = deepAccess(bidReq, 'ortb2Imp.ext.tid');
if (tid) impression.ext.tid = tid;
const gpid = deepAccess(bidReq, 'ortb2Imp.ext.gpid', deepAccess(bidReq, 'ortb2Imp.ext.data.pbadslot'));
const gpid = deepAccess(bidReq, 'ortb2Imp.ext.gpid') || deepAccess(bidReq, 'ortb2Imp.ext.data.pbadslot');
if (gpid) impression.ext.gpid = gpid;

const videoRequest = deepAccess(bidReq, 'mediaTypes.video');
Expand Down

0 comments on commit e25fed3

Please sign in to comment.