Skip to content

Commit

Permalink
Opsco Bid Adapter : update process for retrieving placementId from bi…
Browse files Browse the repository at this point in the history
…d request params (#11604)

* Opsco bid adapter init commit

* Opsco bid adapter banner implementation

* Changing test parameter

* Changing endpoint

* Retrieving placement Id from bid request params

---------

Co-authored-by: adtech-sky <adtech@graysonsky.com>
  • Loading branch information
ops-co and adtech-sky committed Jun 4, 2024
1 parent 61a6ce4 commit 3e2df8d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/opscoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ export const spec = {
Array.isArray(bid.mediaTypes?.banner?.sizes)),

buildRequests: (validBidRequests, bidderRequest) => {
const {publisherId, placementId, siteId} = validBidRequests[0].params;
if (!validBidRequests || !bidderRequest) {
return;
}

const {publisherId, siteId} = validBidRequests[0].params;

const payload = {
id: bidderRequest.bidderRequestId,
Expand All @@ -28,7 +32,7 @@ export const spec = {
banner: {format: extractSizes(bidRequest)},
ext: {
opsco: {
placementId: placementId,
placementId: bidRequest.params.placementId,
publisherId: publisherId,
}
}
Expand Down

0 comments on commit 3e2df8d

Please sign in to comment.