From a68796a9cca7bb5a00694bf5ceac00cfde027409 Mon Sep 17 00:00:00 2001 From: shahinrahbariasl <56240400+shahinrahbariasl@users.noreply.github.com> Date: Tue, 19 Oct 2021 09:28:56 -0400 Subject: [PATCH] PBJS IX adapter should signal 1PA (#7596) Co-authored-by: shahin.rahbariasl --- modules/ixBidAdapter.js | 1 + test/spec/modules/ixBidAdapter_spec.js | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/modules/ixBidAdapter.js b/modules/ixBidAdapter.js index cf551c4f3db..5a6cae6d0c6 100644 --- a/modules/ixBidAdapter.js +++ b/modules/ixBidAdapter.js @@ -490,6 +490,7 @@ function buildRequest(validBidRequests, bidderRequest, impressions, version) { r.ext.ixdiag.msd = 0; r.ext.ixdiag.msi = 0; r.imp = []; + r.at = 1; // getting ixdiags for adunits of the video, outstream & multi format (MF) style let ixdiag = buildIXDiag(validBidRequests); diff --git a/test/spec/modules/ixBidAdapter_spec.js b/test/spec/modules/ixBidAdapter_spec.js index 6eff922536f..d704e47a669 100644 --- a/test/spec/modules/ixBidAdapter_spec.js +++ b/test/spec/modules/ixBidAdapter_spec.js @@ -1377,6 +1377,11 @@ describe('IndexexchangeAdapter', function () { expect(requestUrl).to.equal(IX_SECURE_ENDPOINT); }); + it('auction type should be set correctly', function () { + const at = JSON.parse(query.r).at; + expect(at).to.equal(1); + }) + it('query object (version, siteID and request) should be correct', function () { expect(query.v).to.equal(BANNER_ENDPOINT_VERSION); expect(query.s).to.equal(DEFAULT_BANNER_VALID_BID[0].params.siteId); @@ -1929,6 +1934,11 @@ describe('IndexexchangeAdapter', function () { expect(query.nf).to.equal(1); }); + it('auction type should be set correctly', function () { + const at = JSON.parse(query.r).at; + expect(at).to.equal(1); + }) + it('impression should have correct format and value', function () { const impression = JSON.parse(query.r).imp[0]; const sidValue = utils.parseGPTSingleSizeArray(DEFAULT_VIDEO_VALID_BID[0].params.size);