Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihkaya84 committed Apr 26, 2023
1 parent 60a28ca commit a5316e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions modules/admaticBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ export const spec = {
height: bid.height,
currency: body.cur || 'TRY',
netRevenue: true,
ad: bid.type == "banner" ? bid.party_tag : undefined,
vastXml: bid.type == "video" ? bid.party_tag : undefined,
vastImpUrl: bid.type == "video" ? bid.iurl : undefined,
creativeId: bid.creative_id,
meta: {
advertiserDomains: bid && bid.adomain ? bid.adomain : []
Expand All @@ -116,6 +113,13 @@ export const spec = {
ttl: 360
};

if (resbid.mediaType === "video") {
resbid.vastXml = bid.party_tag;
resbid.vastImpUrl = bid.iurl;
} else if (resbid.mediaType === "banner") {
resbid.ad = bid.party_tag;
};

bidResponses.push(resbid);
});
}
Expand Down
4 changes: 3 additions & 1 deletion test/spec/modules/admaticBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ describe('admaticBidAdapter', () => {
'type': 'banner',
'bidder': 'admatic',
'adomain': ['admatic.com.tr'],
'party_tag': '<div></div>'
'party_tag': '<div></div>',
'iurl': 'https://www.admatic.com.tr',
'type': "banner"
}
],
'queryId': 'cdnbh24rlv0hhkpfpln0',
Expand Down

0 comments on commit a5316e7

Please sign in to comment.