I've got a site called http://www.manglebracket.com. It's a handy little web app for converting Word documents to HTML.
I want to monetize it with Adsense-style ads, but the standard "paste this JavaScript into your site" won't work for my use case. Basically, the user uploads a Word doc and goes to a "workspace" page where they choose options and tweak the HTML just how they like it. I'd love to show an ad on that page which is relevant to the the document they just uploaded, but the page is short-lived and session-protected, so relying on search engine indexing won't fly at all.
If there were an advertising API that allowed me to send over "relevance content" and get back an ad, which I then slapped on the site, that would be great. But I have no idea if such a thing exists. Doesn't seem to for Google Adsense. The Yahoo Publisher Network says they offer "Advanced ad targeting and display capabilities can improve the relevance of your results" but I can't find any more info about that.
Anyone know about a publisher advertising platform with a server-side (hopefully REST) API I could just grab an ad from, and get paid when the user clicks it?
I guess the larger issue here is, how do people show relevant advertising on web applications where everything is dynamic and private?
Edit
I haven't found what I'm looking for yet, but after Googling around I have a better idea of what I'm looking for. Essentially I need a
dynamic real-time contextual ad web service for publishers.
Proximic.com looks promising. Perhaps the real-time part is what makes this difficult. All the services I've found rely on spidering, which is done relatively infrequently. Real-time dynamic would be a lot more server-intensive.
Update 1/14/2010
I've given up, I believe no such thing exists. That's OK, I can just use generic display advertising, but it's a shame because context exists right there in a server-side variable, if only some ad service would receive it.