Skip to content

Commit

Permalink
gpid first, then pbadslot as fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofequativ committed May 29, 2024
1 parent 509afa6 commit b183b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/smartadserverBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export const spec = {
sdc: sellerDefinedContext
};

const gpid = deepAccess(bid, 'ortb2Imp.ext.gpid', deepAccess(bid, 'ortb2Imp.ext.data.pbadslot', ''));
const gpid = deepAccess(bid, 'ortb2Imp.ext.gpid') || deepAccess(bid, 'ortb2Imp.ext.data.pbadslot');
if (gpid) {
payload.gpid = gpid;
}
Expand Down

0 comments on commit b183b77

Please sign in to comment.