Skip to content

Commit

Permalink
Adding privacy_supported flag (prebid#3943)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaiminpanchal27 authored and Alex committed Aug 1, 2019
1 parent b17f183 commit 5cc6492
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions modules/appnexusBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,10 @@ function buildNativeRequest(params) {
request[requestKey].sizes = transformSizes(request[requestKey].sizes);
}
}

if (requestKey === NATIVE_MAPPING.privacyLink) {
request.privacy_supported = true;
}
});

return request;
Expand Down
3 changes: 2 additions & 1 deletion test/spec/modules/appnexusBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,8 @@ describe('AppNexusAdapter', function () {
likes: {required: true},
phone: {required: true},
price: {required: true},
saleprice: {required: true}
saleprice: {required: true},
privacy_supported: true
});
});

Expand Down

0 comments on commit 5cc6492

Please sign in to comment.