unindel / open-video-ads

Automatically exported from code.google.com/p/open-video-ads
0 stars 0 forks source link

url tags not being processed in non linear ad VAST responses #148

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
<url>image</url> isn't being processed if it's returned in a VAST response. 
<code>image_url</url> is being processed.

Original issue reported on code.google.com by paul.sch...@gmail.com on 5 Dec 2009 at 9:14

GoogleCodeExporter commented 9 years ago
Fixed - function updated as follows:

        public function getContent(nonLinearVideoAd:NonLinearVideoAd):String {
            if(nonLinearVideoAd != null) {
                if(nonLinearVideoAd.hasCode()) {
                    return nonLinearVideoAd.codeBlock;
                }
                else {
                    if(nonLinearVideoAd.url != null) {
                        return replace(_template, "code", nonLinearVideoAd.url.url);                
                    }
                    else return "";
                }
            }
            else return "Non-linear video ad not available";
        }

Original comment by paul.sch...@gmail.com on 5 Dec 2009 at 9:22

GoogleCodeExporter commented 9 years ago
An example of the new tag format is:

 <NonLinear id="overlay" width="450" height="50" resourceType="static" creativeType="application/x-
shockwave-flash">  
<URL>http://openx.openvideoads.org/openx-
2.8.2/www/images/fbe301cd8cbd6b53a8ee1bb62644f180.swf</URL>  
</NonLinear> 

Original comment by paul.sch...@gmail.com on 5 Dec 2009 at 9:24