We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5316e7 commit 38fd7abCopy full SHA for 38fd7ab
modules/admaticBidAdapter.js
@@ -113,7 +113,10 @@ export const spec = {
113
ttl: 360
114
};
115
116
- if (resbid.mediaType === "video") {
+ if (resbid.mediaType === "video" && isUrl(bid.party_tag)) {
117
+ resbid.vastUrl = bid.party_tag;
118
+ resbid.vastImpUrl = bid.iurl;
119
+ } else if (resbid.mediaType === "video") {
120
resbid.vastXml = bid.party_tag;
121
resbid.vastImpUrl = bid.iurl;
122
} else if (resbid.mediaType === "banner") {
@@ -127,6 +130,15 @@ export const spec = {
127
130
}
128
131
129
132
133
+function isUrl(str) {
134
+ try {
135
+ new URL(str);
136
+ return true;
137
+ } catch (error) {
138
+ return false;
139
+ }
140
+};
141
+
142
function enrichSlotWithFloors(slot, bidRequest) {
143
try {
144
const slotFloors = {};
0 commit comments