Skip to content

Commit a5316e7

Browse files
committed
update
1 parent 60a28ca commit a5316e7

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

modules/admaticBidAdapter.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ export const spec = {
104104
height: bid.height,
105105
currency: body.cur || 'TRY',
106106
netRevenue: true,
107-
ad: bid.type == "banner" ? bid.party_tag : undefined,
108-
vastXml: bid.type == "video" ? bid.party_tag : undefined,
109-
vastImpUrl: bid.type == "video" ? bid.iurl : undefined,
110107
creativeId: bid.creative_id,
111108
meta: {
112109
advertiserDomains: bid && bid.adomain ? bid.adomain : []
@@ -116,6 +113,13 @@ export const spec = {
116113
ttl: 360
117114
};
118115

116+
if (resbid.mediaType === "video") {
117+
resbid.vastXml = bid.party_tag;
118+
resbid.vastImpUrl = bid.iurl;
119+
} else if (resbid.mediaType === "banner") {
120+
resbid.ad = bid.party_tag;
121+
};
122+
119123
bidResponses.push(resbid);
120124
});
121125
}

test/spec/modules/admaticBidAdapter_spec.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,9 @@ describe('admaticBidAdapter', () => {
253253
'type': 'banner',
254254
'bidder': 'admatic',
255255
'adomain': ['admatic.com.tr'],
256-
'party_tag': '<div></div>'
256+
'party_tag': '<div></div>',
257+
'iurl': 'https://www.admatic.com.tr',
258+
'type': "banner"
257259
}
258260
],
259261
'queryId': 'cdnbh24rlv0hhkpfpln0',

0 commit comments

Comments
 (0)