Skip to content
This repository was archived by the owner on Feb 13, 2021. It is now read-only.

Commit 4eff79f

Browse files
anand-venkatramanmatthewlane
authored andcommitted
PulsePoint Lite adapter - Enabling Sync pixel (prebid#1686)
* ET-1691: Pulsepoint Analytics adapter for Prebid. (#1) * ET-1691: Adding pulsepoint analytics and tests for pulsepoint adapter * ET-1691: Adding pulsepoint analytics and tests for pulsepoint adapter * ET-1691: cleanup * ET-1691: minor * ET-1691: revert package.json change * Adding bidRequest to bidFactory.createBid method as per prebid#509 * ET-1765: Adding support for additional params in PulsePoint adapter (#2) * ET-1850: Fixing prebid#866 * Minor fix * Enabling User sync pixel * minor fix
1 parent fc9cbfb commit 4eff79f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

modules/pulsepointLiteBidAdapter.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ export const spec = {
5353
type: 'iframe',
5454
url: '//bh.contextweb.com/visitormatch'
5555
}];
56+
} else if (syncOptions.pixelEnabled) {
57+
return [{
58+
type: 'image',
59+
url: '//bh.contextweb.com/visitormatch/prebid'
60+
}];
5661
}
5762
}
5863

test/spec/modules/pulsepointLiteBidAdapter_spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,14 @@ describe('PulsePoint Lite Adapter Tests', () => {
224224
expect(options[0].url).to.equal('//bh.contextweb.com/visitormatch');
225225
});
226226

227+
it('Verifies image pixel sync', () => {
228+
const options = spec.getUserSyncs({ pixelEnabled: true});
229+
expect(options).to.not.be.undefined;
230+
expect(options).to.have.lengthOf(1);
231+
expect(options[0].type).to.equal('image');
232+
expect(options[0].url).to.equal('//bh.contextweb.com/visitormatch/prebid');
233+
});
234+
227235
it('Verify app requests', () => {
228236
const request = spec.buildRequests(appSlotConfig);
229237
const ortbRequest = JSON.parse(request.data);

0 commit comments

Comments
 (0)