myAdPod.ads.append(newAd)
myAdPod.duration += newAd.duration
adBreak = invalid
for each url in urls
raf.setAdUrl(url)
adPods = raf.getAds()
if adPods <> invalid and adPods.Count() > 0
if adBreak = invalid
adBreak = adPods
else ' assuming VAST, only 1 pod '
adBreak[0].ads.append(adPods[0].ads)
adBreak[0].duration += adPods[0].duration
end if
end if
next
if adBreak <> invalid
shouldPlayContent = raf.showAds(adBreak)
end if