Andrew Powell

Into The Mind of A Solutions Architect

Andrew Powell

Using Google Mobile Advertisements In CF Apps

December 3, 2007 · 4 Comments

I went to my AdSense account the other day to create an ad to place on the Weight Watchers Points Calculator. Turns out that the only server-side options that are supported to generate the ads are PHP, CGI, JSP, or ASP. Hmmmm. Our favourite server-side language isn't on that list. However, we can leverage JSP Custom Tags within ColdFusion pages. Charlie has a great article on how to do this (Standard Sys-Con warnings apply). So, I went and did what any good developer would do, I created an easy way to re-use this functionality in ColdFusion. I created a custom JSP tag that you can use to generate Google Mobile Ads within your content. I've included JavaDocs in the zip so that you know what the default values of the attributes are, and how to use them. Included in the package are the class file with path, the JavaDocs, the TLD, and a sample usage file. Enjoy.

Tags: ColdFusion · General · Java · JRun · JSP

4 responses so far ↓

Leave a Comment