From 27e45416070f97f30e7f4da8ba8d774222bfed5a Mon Sep 17 00:00:00 2001
From: Mirko Rean <3244291+mirkorean@users.noreply.github.com>
Date: Wed, 9 Jun 2021 12:58:59 +0200
Subject: [PATCH] Add meta.advertiserDomains for Prebid 5.0 (#6978)
---
modules/yieldlabBidAdapter.js | 5 ++++-
test/spec/modules/yieldlabBidAdapter_spec.js | 2 ++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/modules/yieldlabBidAdapter.js b/modules/yieldlabBidAdapter.js
index 9c1c54cfb2b..dc039c1a687 100644
--- a/modules/yieldlabBidAdapter.js
+++ b/modules/yieldlabBidAdapter.js
@@ -114,7 +114,10 @@ export const spec = {
netRevenue: false,
ttl: BID_RESPONSE_TTL_SEC,
referrer: '',
- ad: ``
+ ad: ``,
+ meta: {
+ advertiserDomains: (matchedBid.advertiser) ? matchedBid.advertiser : 'n/a'
+ }
}
if (isVideo(bidRequest, adType)) {
diff --git a/test/spec/modules/yieldlabBidAdapter_spec.js b/test/spec/modules/yieldlabBidAdapter_spec.js
index 6dde671578c..3cc5971ce67 100644
--- a/test/spec/modules/yieldlabBidAdapter_spec.js
+++ b/test/spec/modules/yieldlabBidAdapter_spec.js
@@ -179,6 +179,7 @@ describe('yieldlabBidAdapter', function () {
expect(result[0].netRevenue).to.equal(false)
expect(result[0].ttl).to.equal(300)
expect(result[0].referrer).to.equal('')
+ expect(result[0].meta.advertiserDomains).to.equal('yieldlab')
expect(result[0].ad).to.include('