You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
utils.logWarn('Rubicon video bid requested using legacy `adUnit.mediaType = `video``\nThis is deprecated\nPlease move towards the PBJS standard using mediaTypes object!');
utils.logError('Rubicon bid adapter needs params.video.size_id to be declared and an integer in order to process a legacy video request using mediaType == video');
785
-
}
786
-
return;
777
+
utils.logError('Rubicon bid adapter requires mediaTypes.video.context to be one of outstream or instream');
787
778
}
779
+
return;
788
780
}
781
+
789
782
// we require playerWidth and playerHeight to come from one of params.playerWidth/playerHeight or mediaTypes.video.playerSize or adUnit.sizes
790
783
if(parseSizes(bid,'video').length<2){
791
784
if(log){
@@ -873,10 +866,31 @@ export function getPriceGranularity(config) {
873
866
}
874
867
}
875
868
869
+
// Function to validate the required video params
870
+
exportfunctionhasValidVideoParams(bid){
871
+
letisValid=true;
872
+
// required params and their associated object type
873
+
varrequiredParams={
874
+
mimes: '[object Array]',
875
+
protocols: '[object Array]',
876
+
maxduration: '[object Number]',
877
+
linearity: '[object Number]',
878
+
api: '[object Array]'
879
+
}
880
+
// loop through each param and verify it has the correct
utils.logError('Rubicon Bid Adapter: mediaTypes.video.'+param+' is required and must be of type:'+requiredParams[param].substring(requiredParams[param].indexOf(' '),requiredParams[param].indexOf(']')));
0 commit comments