From 3b6201f49fc632cea0186d1cd5e87370c32224ee Mon Sep 17 00:00:00 2001
From: CleanMediaNet <46790659+CleanMediaNet@users.noreply.github.com>
Date: Tue, 4 Jun 2024 21:06:21 -0400
Subject: [PATCH 1/4] Update cleanmedianetBidAdapter_spec.js

---
 test/spec/modules/cleanmedianetBidAdapter_spec.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/test/spec/modules/cleanmedianetBidAdapter_spec.js b/test/spec/modules/cleanmedianetBidAdapter_spec.js
index 3c73dac07de..15f5a7f42a5 100644
--- a/test/spec/modules/cleanmedianetBidAdapter_spec.js
+++ b/test/spec/modules/cleanmedianetBidAdapter_spec.js
@@ -310,7 +310,7 @@ describe('CleanmedianetAdapter', () => {
       response = spec.buildRequests([bidRequest], bidRequest)[0];
       expect(response.method).to.equal('POST');
       expect(response.url).to.match(new RegExp(`^https://bidder\\.cleanmediaads\\.com/r/${supplyPartnerId}/bidr\\?rformat=open_rtb&reqformat=rtb_json&bidder=prebid$`, 'g'));
-      expect(response.data.id).to.equal(bidRequest.bidId);
+      expect(response.data.id).to.equal(bidRequest.auctionId);
       const bidRequestWithEndpoint = utils.deepClone(bidRequest);
       bidRequestWithEndpoint.params.rtbEndpoint = 'https://bidder.cleanmediaads.com/a12';
       response = spec.buildRequests([bidRequestWithEndpoint], bidRequest)[0];
@@ -330,7 +330,7 @@ describe('CleanmedianetAdapter', () => {
       expect(response.data.site.page).to.equal('http://www.test.com/page.html');
       expect(response.data.site.ref).to.equal('http://referrer.com');
       expect(response.data.imp.length).to.equal(1);
-      expect(response.data.imp[0].id).to.equal(bidRequest.bidId);
+      expect(response.data.imp[0].id).to.equal(bidRequest.transactionId);
       expect(response.data.imp[0].instl).to.equal(0);
       expect(response.data.imp[0].tagid).to.equal(bidRequest.adUnitCode);
       expect(response.data.imp[0].bidfloor).to.equal(0);
@@ -376,7 +376,7 @@ describe('CleanmedianetAdapter', () => {
       const bidRequestWithVideo = utils.deepClone(bidRequest);
 
       bidRequestWithVideo.params.video = {
-        placement: 1,
+        plcmt: 1,
         minduration: 1,
       }
 
@@ -405,7 +405,7 @@ describe('CleanmedianetAdapter', () => {
           playerSize: [302, 252],
           mimes: ['video/mpeg'],
           skip: 1,
-          placement: 1,
+          plcmt: 1,
           minduration: 1,
           playbackmethod: 1,
           startdelay: 1,
@@ -428,7 +428,7 @@ describe('CleanmedianetAdapter', () => {
           context: 'instream',
           mimes: ['video/mpeg'],
           skip: 1,
-          placement: 1,
+          plcmt: 1,
           minduration: 1,
           playbackmethod: 1,
           startdelay: 1,
@@ -457,7 +457,7 @@ describe('CleanmedianetAdapter', () => {
         context: 'instream',
         mimes: ['video/mpeg'],
         skip: 1,
-        placement: 1,
+        plcmt: 1,
         minduration: 1,
         playbackmethod: 1,
         startdelay: 1,

From bba3b91734fa767a360016ac50d197ba979420de Mon Sep 17 00:00:00 2001
From: CleanMediaNet <46790659+CleanMediaNet@users.noreply.github.com>
Date: Tue, 4 Jun 2024 21:07:33 -0400
Subject: [PATCH 2/4] Update cleanmedianetBidAdapter.js

---
 modules/cleanmedianetBidAdapter.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/cleanmedianetBidAdapter.js b/modules/cleanmedianetBidAdapter.js
index 601a237baa8..a0e85032798 100644
--- a/modules/cleanmedianetBidAdapter.js
+++ b/modules/cleanmedianetBidAdapter.js
@@ -157,7 +157,7 @@ export const spec = {
               maxduration: bidRequest.mediaTypes.video.maxduration,
               api: bidRequest.mediaTypes.video.api,
               skip: bidRequest.mediaTypes.video.skip || bidRequest.params.video.skip,
-              placement: bidRequest.mediaTypes.video.placement || bidRequest.params.video.placement,
+              placement: bidRequest.mediaTypes.video.plcmt || bidRequest.params.video.plcmt,
               minduration: bidRequest.mediaTypes.video.minduration || bidRequest.params.video.minduration,
               playbackmethod: bidRequest.mediaTypes.video.playbackmethod || bidRequest.params.video.playbackmethod,
               startdelay: bidRequest.mediaTypes.video.startdelay || bidRequest.params.video.startdelay

From 539329241c7d7927125c4dbfeeb25fa3312a7ace Mon Sep 17 00:00:00 2001
From: Patrick McCann <pmccann@cafemedia.com>
Date: Fri, 7 Jun 2024 20:34:10 -0400
Subject: [PATCH 3/4] Update cleanmedianetBidAdapter_spec.js

---
 test/spec/modules/cleanmedianetBidAdapter_spec.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/spec/modules/cleanmedianetBidAdapter_spec.js b/test/spec/modules/cleanmedianetBidAdapter_spec.js
index 15f5a7f42a5..b4c51af3d52 100644
--- a/test/spec/modules/cleanmedianetBidAdapter_spec.js
+++ b/test/spec/modules/cleanmedianetBidAdapter_spec.js
@@ -310,7 +310,7 @@ describe('CleanmedianetAdapter', () => {
       response = spec.buildRequests([bidRequest], bidRequest)[0];
       expect(response.method).to.equal('POST');
       expect(response.url).to.match(new RegExp(`^https://bidder\\.cleanmediaads\\.com/r/${supplyPartnerId}/bidr\\?rformat=open_rtb&reqformat=rtb_json&bidder=prebid$`, 'g'));
-      expect(response.data.id).to.equal(bidRequest.auctionId);
+      expect(response.data.id).to.equal(bidRequest.bidid);
       const bidRequestWithEndpoint = utils.deepClone(bidRequest);
       bidRequestWithEndpoint.params.rtbEndpoint = 'https://bidder.cleanmediaads.com/a12';
       response = spec.buildRequests([bidRequestWithEndpoint], bidRequest)[0];
@@ -330,7 +330,7 @@ describe('CleanmedianetAdapter', () => {
       expect(response.data.site.page).to.equal('http://www.test.com/page.html');
       expect(response.data.site.ref).to.equal('http://referrer.com');
       expect(response.data.imp.length).to.equal(1);
-      expect(response.data.imp[0].id).to.equal(bidRequest.transactionId);
+      expect(response.data.imp[0].id).to.equal(bidRequest.bidid);
       expect(response.data.imp[0].instl).to.equal(0);
       expect(response.data.imp[0].tagid).to.equal(bidRequest.adUnitCode);
       expect(response.data.imp[0].bidfloor).to.equal(0);

From fc2773e7140df9a746d58750d35c8860a3bfb7d8 Mon Sep 17 00:00:00 2001
From: Patrick McCann <pmccann@cafemedia.com>
Date: Fri, 7 Jun 2024 20:35:07 -0400
Subject: [PATCH 4/4] Update cleanmedianetBidAdapter_spec.js

---
 test/spec/modules/cleanmedianetBidAdapter_spec.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/spec/modules/cleanmedianetBidAdapter_spec.js b/test/spec/modules/cleanmedianetBidAdapter_spec.js
index b4c51af3d52..d1ec37c4999 100644
--- a/test/spec/modules/cleanmedianetBidAdapter_spec.js
+++ b/test/spec/modules/cleanmedianetBidAdapter_spec.js
@@ -310,7 +310,7 @@ describe('CleanmedianetAdapter', () => {
       response = spec.buildRequests([bidRequest], bidRequest)[0];
       expect(response.method).to.equal('POST');
       expect(response.url).to.match(new RegExp(`^https://bidder\\.cleanmediaads\\.com/r/${supplyPartnerId}/bidr\\?rformat=open_rtb&reqformat=rtb_json&bidder=prebid$`, 'g'));
-      expect(response.data.id).to.equal(bidRequest.bidid);
+      expect(response.data.id).to.equal(bidRequest.bidId);
       const bidRequestWithEndpoint = utils.deepClone(bidRequest);
       bidRequestWithEndpoint.params.rtbEndpoint = 'https://bidder.cleanmediaads.com/a12';
       response = spec.buildRequests([bidRequestWithEndpoint], bidRequest)[0];
@@ -330,7 +330,7 @@ describe('CleanmedianetAdapter', () => {
       expect(response.data.site.page).to.equal('http://www.test.com/page.html');
       expect(response.data.site.ref).to.equal('http://referrer.com');
       expect(response.data.imp.length).to.equal(1);
-      expect(response.data.imp[0].id).to.equal(bidRequest.bidid);
+      expect(response.data.imp[0].id).to.equal(bidRequest.bidId);
       expect(response.data.imp[0].instl).to.equal(0);
       expect(response.data.imp[0].tagid).to.equal(bidRequest.adUnitCode);
       expect(response.data.imp[0].bidfloor).to.equal(0);