Text ad serving without scripts
So I’ve just been tasked with developing a quick application to serve some text ads to a third-party website. The catch is that this third-party site has nothing available. No PHP. No CFM. No ASP. No JavaScript allowed. So now what’s a guy to do? Well the search is definitely on. I’ll be developing the application on a platform of PHP & MySQL…this is the easy part. The challenging part now is to serve it and I’m not seeing a lot of viable options.
Option 1: Use an IFRAME. Not my preferred choice but perhaps the only real viable option. The IFRAME can contain a JavaScript snippet to resize the opening as required to accommodate the text, and of course the page will also display the text and style the IFRAME. A challenging implementation, but definitely a solution.
Option 2: Use an image and dynamically create the text ad as an image. The issue with this comes around the fact that the text will not be selectable and more importantly font styles and formats may not match. It violates aspects of CSS.
Option 3: Simply have the client place the text and links on their own to the website and just use an outbound tracking link that will record the hit. No way to track impressions, just outbound clicks. This option just came to me and a hybrid of this option and option 2 might work with creating a transparent 1×1 GIF and having it record the impression. The only issue doing it this way is there is NO control over deployment, expiration or randomization.
Option 4: Screw it. Tell the client there’s no way it will happen!
OK, so those four options (with number 3 coming after 4 in all honesty) are my plausible solutions. What are your thoughts? Oh, and I only have a 24 hour time frame to get this done as well…I knew there was something I forgot to mention! Thanks in advance.
February 24th, 2009 at 3:15 pm
OK, here’s the solution that I’ve come up with. Let me know your thoughts.
The outbound link tracker
The image for impressions:
And the MySQL structure:
And finally what the client adds to their site:
This is the side that serves it up. It seems to make sense to me in implementation and theory and seems to actually track the impressions and clicks. It sucks there’s no way to randomize off the top of my head (though I could probably somehow figure out how to include the link and text alongside the image or something as a random aspect…but that’s a latter project).
So, what are your thoughts?