Skip to content

Commit

Permalink
add privacyLink for native (prebid#3680)
Browse files Browse the repository at this point in the history
  • Loading branch information
naoto0822 authored and jacekburys-quantcast committed May 15, 2019
1 parent ed0fa69 commit 7e0356c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/ajaBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const spec = {
sponsoredBy: assets.sponsor,
clickUrl: assets.lp_link,
impressionTrackers: nativeAd.imps,
privacyLink: assets.adchoice_url,
};

if (assets.img_main !== undefined) {
Expand Down
6 changes: 5 additions & 1 deletion modules/ajaBidAdapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ var adUnits = [
icon: {
required: false,
sendId: false
}
},
privacyLink: {
required: true,
sendId: true
},
}
},
bids: [{
Expand Down
3 changes: 2 additions & 1 deletion test/spec/modules/ajaBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ describe('AjaAdapter', function () {
'clickUrl': 'https://example.com/lp?k=v',
'impressionTrackers': [
'https://example.com/imp'
]
],
'privacyLink': 'https://aja-kk.co.jp/optout',
}
}
];
Expand Down

0 comments on commit 7e0356c

Please sign in to comment.