-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add meta.advertiserDomains to pbs adapter #5437
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one question
Yeah it's supposed to be an array
…On Mon, Jul 6, 2020, 2:54 PM Robert Ray Martinez III < ***@***.***> wrote:
***@***.**** approved this pull request.
Looks good, just one question
------------------------------
In modules/prebidServerBidAdapter/index.js
<#5437 (comment)>:
> @@ -830,6 +830,8 @@ const OPEN_RTB_PROTOCOL = {
bidObject.creativeId = bid.crid;
if (bid.burl) { bidObject.burl = bid.burl; }
bidObject.currency = (response.cur) ? response.cur : DEFAULT_S2S_CURRENCY;
+ bidObject.meta = bidObject.meta || {};
+ if (bid.adomain) { bidObject.meta.advertiserDomains = bid.adomain; }
Is advertiserDomains supposed to be an array?
I see the test has it
expect(response.meta.advertiserDomains[0]).to.equal('appnexus.com'); but
just making sure that PBS is responding with an array on the bid.adomain
key.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5437 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAM25Z2EA3SYOATIITMIYZ3R2IMWDANCNFSM4OLOT6RA>
.
|
@robertrmartinez is this good to merge? |
Yep 👍 |
@robertrmartinez sorry i don't have write permission to merge, the last reviewer has merged other things i submitted. Is that not what normally happens? |
Type of change
Description of change
This copies adomain into bid.meta.advertiserDomains for prebid server respones