Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoBid Bid Adapter : update version 1.3.4 #11420

Merged
merged 45 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
0eba11e
Enable supplyChain support
redaguermas Mar 4, 2020
c0fb8ee
Added support for COPPA
redaguermas Mar 5, 2020
36fab76
Merge branch 'master' of https://github.com/prebid/Prebid.js
redaguermas Mar 13, 2020
51525d7
Merge branch 'master' of https://github.com/prebid/Prebid.js
redaguermas Apr 13, 2020
c473780
Merge remote-tracking branch 'upstream/master'
Jun 1, 2020
33757b8
Merge branch 'master' of https://github.com/prebid/Prebid.js
Jun 4, 2020
9e1758b
Merge branch 'master' of https://github.com/prebid/Prebid.js
Jun 19, 2020
1d7db5d
Merge branch 'master' of https://github.com/prebid/Prebid.js
Aug 18, 2020
8fca715
Merge branch 'master' of https://github.com/prebid/Prebid.js
Aug 26, 2020
c11a5b3
rebuilt
Sep 27, 2020
c44bd3f
Merge branch 'master' of https://github.com/prebid/Prebid.js
Sep 27, 2020
9c8440c
Added support for Extended User IDs.
Sep 28, 2020
ec5cde7
Merge branch 'master' of https://github.com/prebid/Prebid.js
May 28, 2021
ff10bbe
Added support for the "meta" attribute in bid response.
May 28, 2021
4a4c253
Merge branch 'master' of https://github.com/prebid/Prebid.js
Jul 13, 2021
01a2d94
Merge branch 'master' of https://github.com/prebid/Prebid.js
Sep 27, 2021
61583a2
Merge branch 'master' of https://github.com/prebid/Prebid.js
Mar 7, 2023
00142cc
Merge branch 'master' of https://github.com/prebid/Prebid.js
Mar 31, 2023
d6160fa
Merge branch 'master' of https://github.com/prebid/Prebid.js
Jul 4, 2023
388d3e0
Delete nobidBidAdapter.js.orig
redaguermas Jul 28, 2023
1c3f853
Delete a
redaguermas Jul 28, 2023
38dc58a
Delete .jsdtscope
redaguermas Jul 28, 2023
2818cbe
Delete org.eclipse.wst.jsdt.ui.superType.container
redaguermas Jul 28, 2023
ad8662d
Delete org.eclipse.wst.jsdt.ui.superType.name
redaguermas Jul 28, 2023
8ddb9a9
Delete .project
redaguermas Jul 28, 2023
a164194
Merge branch 'master' of https://github.com/redaguermas/Prebid.js
Aug 7, 2023
0a5fbc6
Merge branch 'master' of https://github.com/prebid/Prebid.js
Aug 10, 2023
c2a5fc4
Merge branch 'master' of https://github.com/prebid/Prebid.js
Aug 10, 2023
a144f4a
Merge branch 'master' of https://github.com/prebid/Prebid.js
Aug 21, 2023
19caf0e
Merge branch 'master' of https://github.com/prebid/Prebid.js
Aug 21, 2023
e92612e
Merge branch 'master' of https://github.com/prebid/Prebid.js
Aug 24, 2023
b4cdf09
Merge branch 'master' of https://github.com/prebid/Prebid.js
Aug 29, 2023
d2b8b26
Merge branch 'master' of https://github.com/prebid/Prebid.js
Sep 19, 2023
b5e4f5c
Merge branch 'master' of https://github.com/prebid/Prebid.js
Sep 21, 2023
ca24cfb
Merge branch 'master' of https://github.com/prebid/Prebid.js
Sep 22, 2023
33d02ab
Merge branch 'master' of https://github.com/prebid/Prebid.js
Sep 25, 2023
04ebf45
Merge branch 'master' of https://github.com/prebid/Prebid.js
Oct 3, 2023
0e9b6ac
Merge branch 'master' of https://github.com/prebid/Prebid.js
Dec 14, 2023
21cc874
Merge branch 'master' of https://github.com/prebid/Prebid.js
Feb 17, 2024
826ef39
Merge branch 'master' of https://github.com/prebid/Prebid.js
Feb 21, 2024
6fb22d8
Merge branch 'master' of https://github.com/prebid/Prebid.js
Mar 4, 2024
22dbce1
Merge branch 'master' of https://github.com/prebid/Prebid.js
Mar 27, 2024
7b4845f
Merge branch 'master' of https://github.com/prebid/Prebid.js
Apr 26, 2024
898a096
Merge branch 'master' of https://github.com/prebid/Prebid.js
Apr 30, 2024
feb5324
Renamed the Analytics Adapter to "nobid" otherwise it wouldn't work w…
Apr 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/nobidAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { EVENTS } from '../src/constants.js';
import adapterManager from '../src/adapterManager.js';
import {MODULE_TYPE_ANALYTICS} from '../src/activities/modules.js';

const VERSION = '2.0.1';
const VERSION = '2.0.2';
const MODULE_NAME = 'nobidAnalyticsAdapter';
const ANALYTICS_OPT_FLUSH_TIMEOUT_SECONDS = 5 * 1000;
const RETENTION_SECONDS = 1 * 24 * 3600;
Expand Down Expand Up @@ -53,6 +53,7 @@ function sendEvent (event, eventType) {
}
try {
event.version = VERSION;
event.pbver = '$prebid.version$';
const endpoint = `${resolveEndpoint()}/event/${eventType}?pubid=${nobidAnalytics.initOptions.siteId}`;
ajax(endpoint,
function (response) {
Expand Down Expand Up @@ -175,10 +176,9 @@ nobidAnalytics = {
ANALYTICS_DATA_NAME: 'analytics.nobid.io',
ANALYTICS_OPT_NAME: 'analytics.nobid.io.optData'
}

adapterManager.registerAnalyticsAdapter({
adapter: nobidAnalytics,
code: 'nobidAnalytics',
code: 'nobid',
gvlid: GVLID
});
nobidAnalytics.originalAdUnits = {};
Expand Down
6 changes: 4 additions & 2 deletions modules/nobidBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { hasPurpose1Consent } from '../src/utils/gpdr.js';
const GVLID = 816;
const BIDDER_CODE = 'nobid';
const storage = getStorageManager({bidderCode: BIDDER_CODE});
window.nobidVersion = '1.3.3';
window.nobidVersion = '1.3.4';
window.nobid = window.nobid || {};
window.nobid.bidResponses = window.nobid.bidResponses || {};
window.nobid.timeoutTotal = 0;
Expand Down Expand Up @@ -161,6 +161,7 @@ function nobidBuildRequests(bids, bidderRequest) {
state['gdpr'] = gdprConsent(bidderRequest);
state['usp'] = uspConsent(bidderRequest);
state['pjbdr'] = (bidderRequest && bidderRequest.bidderCode) ? bidderRequest.bidderCode : 'nobid';
state['pbver'] = '$prebid.version$';
const sch = schain(bids);
if (sch) state['schain'] = sch;
const cop = coppa();
Expand Down Expand Up @@ -383,7 +384,8 @@ export const spec = {
*/
isBidRequestValid: function(bid) {
log('isBidRequestValid', bid);
return !!bid.params.siteId;
if (bid?.params?.siteId) return true;
return false;
},
/**
* Make a server request from the list of BidRequests.
Expand Down
1 change: 1 addition & 0 deletions test/spec/modules/nobidAnalyticsAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ describe('NoBid Prebid Analytic', function () {
expect(server.requests).to.have.length(1);
const auctionEndRequest = JSON.parse(server.requests[0].requestBody);
expect(auctionEndRequest).to.have.property('version', nobidAnalyticsVersion);
expect(auctionEndRequest).to.have.property('pbver', '$prebid.version$');
expect(auctionEndRequest).to.have.property('auctionId', expectedOutgoingRequest.auctionId);
expect(auctionEndRequest.bidderRequests).to.have.length(1);
expect(auctionEndRequest.bidderRequests[0].bidderCode).to.equal(expectedOutgoingRequest.bidderRequests[0].bidderCode);
Expand Down
3 changes: 1 addition & 2 deletions test/spec/modules/nobidBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ describe('Nobid Adapter', function () {
});

it('should return true when required params found', function () {
let bid = Object.assign({}, bid);
delete bid.params;
bid.params = {
'siteId': 2
Expand All @@ -72,7 +71,6 @@ describe('Nobid Adapter', function () {
});

it('should return false when required params are not passed', function () {
let bid = Object.assign({}, bid);
delete bid.params;
bid.params = {
'siteId': 0
Expand Down Expand Up @@ -399,6 +397,7 @@ describe('Nobid Adapter', function () {
const payload = JSON.parse(request.data);
expect(payload.sid).to.equal(SITE_ID);
expect(payload.pjbdr).to.equal('nobid');
expect(payload.pbver).to.equal('$prebid.version$');
expect(payload.l).to.exist.and.to.equal(encodeURIComponent(REFERER));
expect(payload.a).to.exist;
expect(payload.t).to.exist;
Expand Down