Skip to content

Commit

Permalink
PulsePoint Lite adapter - Enabling Sync pixel (#1686)
Browse files Browse the repository at this point in the history
* 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 #509

* ET-1765: Adding support for additional params in PulsePoint adapter (#2)

* ET-1850: Fixing #866

* Minor fix

* Enabling User sync pixel

* minor fix
  • Loading branch information
anand-venkatraman authored and matthewlane committed Oct 16, 2017
1 parent fc9cbfb commit 4eff79f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/pulsepointLiteBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ export const spec = {
type: 'iframe',
url: '//bh.contextweb.com/visitormatch'
}];
} else if (syncOptions.pixelEnabled) {
return [{
type: 'image',
url: '//bh.contextweb.com/visitormatch/prebid'
}];
}
}

Expand Down
8 changes: 8 additions & 0 deletions test/spec/modules/pulsepointLiteBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,14 @@ describe('PulsePoint Lite Adapter Tests', () => {
expect(options[0].url).to.equal('//bh.contextweb.com/visitormatch');
});

it('Verifies image pixel sync', () => {
const options = spec.getUserSyncs({ pixelEnabled: true});
expect(options).to.not.be.undefined;
expect(options).to.have.lengthOf(1);
expect(options[0].type).to.equal('image');
expect(options[0].url).to.equal('//bh.contextweb.com/visitormatch/prebid');
});

it('Verify app requests', () => {
const request = spec.buildRequests(appSlotConfig);
const ortbRequest = JSON.parse(request.data);
Expand Down

0 comments on commit 4eff79f

Please sign in to comment.