Access to XMLHttpRequest at 'https://video-ads.rubiconproject.com/video/xxxxx/vast.xml?tg_c.language=' from origin 'https://imasdk.googleapis.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://utip.io' that is not equal to the supplied origin.
google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.INSECURE);
and We have even added this
// Create ads loader.
adsLoader = new google.ima.AdsLoader(adDisplayContainer);
adsLoader.getSettings().setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.INSECURE);
// Listen and respond to ads loaded and error events.
adsLoader.addEventListener(
google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
this.onAdsManagerLoaded,
false);
adsLoader.addEventListener(
google.ima.AdErrorEvent.Type.AD_ERROR,
this.onAdError,
false);
Hi,
Thank you for reaching out to us. It seems that the CORS settings of the ad server is preventing the IMA SDK from accessing your VPAID. Were you able to reproduce the behavior running our VPAID against your IMA implementation and your VPAID against our VSI? When I run our VPAID against the VSI with VpaidMode.INSECURE, the ad plays fine. Can you share the ad tag you were using when you encountered the behavior? Please use the reply privately to the author button if you wanna share it privately.
Regards,
Arnaud Casame
IMA SDK Team
|
||||||