Add preroll tag vast cloudflare stream

Hello,
Can you tell me where to place and how to write my dsp tag on my integration in order to display vast advertisements at the beginning of the video?

The VAST response controls the ad placement, but just pass it using the ad-url parameter. The VAST URL needs to be urlencoded, like this:

https://watch.videodelivery.net/<video id>?ad-url=https%3A%2F%2Fpubads.g.doubleclick.net%2Fgampad%2Fads%3Fsz%3D640x480%26iu%3D%2F124319096%2Fexternal%2Fad_rule_samples%26ciu_szs%3D300x250%26ad_rule%3D1%26impl%3Ds%26gdfp_req%3D1%26env%3Dvp%26output%3Dvmap%26unviewed_position_start%3D1%26cust_params%3Ddeployment%253Ddevsite%2526sample_ar%253Dpremidpostoptimizedpod%26cmsid%3D496%26vid%3Dshort_onecue%26correlator%3Dd

You configure the precise placement (pre, mid or post roll) on your ad server.

2 Likes

Like that?

Yes, but in my testing you need to URLencode the VAST URL, as in my example above.

2 Likes

I didn’t quite understand what should I withdraw?

How should the final html be?

You have too many symbols in that ad-url URL. They need to be replaced with their % equivalents. This tool should do it:

https://www.urlencoder.net/

2 Likes

Thank you very much.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.