RSS Ads in Movable Type

Freshness Warning
This blog post is over 18 years old. It's possible that the information you read below isn't current and the links no longer work.

I’ve added a short ad for my consulting services to the RSS feed for Simplelinks. The problem with putting persistant content in RSS is that many news aggregators only show an item once unless it changes.

So your persistant item has to change regularly, but not too regularly. If the same item appears in the feed every day, people may get irritated and stop reading your feed. If the item only changes once a month, then the ad won’t have much impact.

I settled on changing the ad weekly. Then I had to figure out how to have content automatically changes once a week. My plan was to have link element use a query string that would be unique each week. Using the year and the week number for the current date would work fine.

MT’s date formatting commands will let me insert the day number (the tag <$MTDate format="%j"$> inserts 273), but not the week number. I considered writing a plugin to add a week number format command to MT (and I still might), but for a quick and dirty way of doing things I turned to the Regex plugin to convert the day number into a week number.

Here’s what ended up in my template, right after the final </MTEntries> tag.

<MTAddRegex name="weeknum">          s|(\d+)|int($1/7 + .9999)|e</MTAddRegex>    <item>        <title>Kalsey Consulting Group :: Web Sites With         Business Sense</title>        <description>Simplelinks is a product of Kalsey Consulting         Group. We build Web sites that solve real business problems.         To find out how we can help your business, ask for a         free quote at <a         href="http://kalsey.com?<MTDate  format="%Y">-        <MTDate format="%j" regex="weeknum">      ">http://www.kalsey.com/</a></description>        <link>http://kalsey.com?<MTDate format="%Y">-        <MTDate format="%j" regex="weeknum"></link>    </item>

Business Intelligence Software
September 12, 2003 5:47 AM

Thanks for the Inputs on RSS, it makes lot more business sense to me now.

Chad
December 19, 2003 11:14 AM

RSSAds - http://www.rssads.com is an ad network that makes it easy to sell advertising in RSS.

Kevin Donahue
August 9, 2004 12:39 AM

Adam - I know I"m a couple years late to the game, but how 'bout a full view of the code being used, that way we can see exactly how/where the insert goes in the template.

This discussion has been closed.

Recently Written

The Trap of The Sales-Led Product (Dec 10)
It’s not a winning way to build a product company.
The Hidden Cost of Custom Customer Features (Dec 7)
One-off features will cost you more than you think and make your customers unhappy.
Domain expertise in Product Management (Nov 16)
When you're hiring software product managers, hire for product management skills. Looking for domain experts will reduce the pool of people you can hire and might just be worse for your product.
Strategy Means Saying No (Oct 27)
An oft-overlooked aspect of strategy is to define what you are not doing. There are lots of adjacent problems you can attack. Strategy means defining which ones you will ignore.
Understanding vision, strategy, and execution (Oct 24)
Vision is what you're trying to do. Strategy is broad strokes on how you'll get there. Execution is the tasks you complete to complete the strategy.
How to advance your Product Market Fit KPI (Oct 21)
Finding the gaps in your product that will unlock the next round of growth.
Developer Relations as Developer Success (Oct 19)
Outreach, marketing, and developer evangelism are a part of Developer Relations. But the companies that are most successful with developers spend most of their time on something else.
Developer Experience Principle 6: Easy to Maintain (Oct 17)
Keeping your product Easy to Maintain will improve the lives of your team and your customers. It will help keep your docs up to date. Your SDKs and APIs will be released in sync. Your tooling and overall experience will shine.

Older...

What I'm Reading

Contact

Adam Kalsey

+1 916 600 2497

Resume

Public Key

© 1999-2021 Adam Kalsey.