I have followed the ads discussion on pre and post roll. This question is about boxed ads that would be based on which channel is selected. IF my videos had only one channel assigned, then when a viewer is watching the video a specific category would be known. Multiple ads could be placed on the page based on this channel information.

Many of us use the ad boxes and have code to access databases such as openx to deliver the ads. I would like the boxes to be intelligent enough to know which channel they are being displayed with. Then a corresponding category in the ad database could deliver a related ad.

Has anyone done this? If not can anyone program this and for how much?
I would imagine the simplest idea would be to add a line of code in the ad box function that says something like <get the channel, use that channel and send it to the ad program>