Sunsetting Flash in the IMA SDKs
private function initAdsLoader():void {
...
adsLoader.addEventListener(AdErrorEvent.AD_ERROR, adsLoadErrorHandler);
}
private function adsLoadErrorHandler(event:AdErrorEvent):void {
trace("warning", "Ads load error: " + event.error.errorMessage);
videoPlayer.play();
}
We strongly encourage all publishers still using the Flash SDK to migrate to the HTML5 SDK. As part of this sunset, we will also be removing the Flash SDK documentation from developers.google.com and removing the Flash samples from GitHub.As always, if you have any questions, feel free to contact us via the support forum.