Skip to content

Commit

Permalink
appnexus adapter : include hb_source in request to server
Browse files Browse the repository at this point in the history
  • Loading branch information
sumit sharma authored and sumit sharma committed Mar 11, 2020
1 parent 1b62b0b commit 2a24271
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/appnexusBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,15 @@ export const spec = {

const hasAdPodBid = find(bidRequests, hasAdPod);
if (hasAdPodBid) {
payload.hb_source = 7;
bidRequests.filter(hasAdPod).forEach(adPodBid => {
const adPodTags = createAdPodRequest(tags, adPodBid);
// don't need the original adpod placement because it's in adPodTags
const nonPodTags = payload.tags.filter(tag => tag.uuid !== adPodBid.bidId);
payload.tags = [...nonPodTags, ...adPodTags];
});
} else {
payload.hb_source = 1;
}

const criteoId = utils.deepAccess(bidRequests[0], `userId.criteoId`);
Expand Down

0 comments on commit 2a24271

Please sign in to comment.