How do I add Google AdSense to my RSS feed?
Hi Dave. From reading your earlier postings, I see that you too have been approved by Google for their new AdSense for Feeds program. What I don't get, however, is how to actually add their adverts in my RSS feed. I'm running Movable Type: can you help me figure this out?
While Google is the master of nifty new programs, I also find that I have to spend a lot of time trying to figure out exactly what they're doing, partially just because their programmers seem to know more about how to make my Web browser jump through hoops than anyone else on the Web!
To get started, you'll want to log in to your AdSense account, then click on the Ad Settings tab. The first section is labelled "Ad Type" and you should see this:
Click on the new "AdSense for feeds unit" and select the type of Weblog program you're running out of the choices (Blogger or Movable Type/Typepad).
In the "Your AdSense code" box you'll see the code you should add to your feed, but don't do that yet. You want to create a unique channel for your RSS advertising first, so you can track impressions and click thru rate. In the middle of this same page, there's a section that lets you work with channels:
Click on "manage channels", then type in the name of the channel you want to create (I used "RSS Feed") and click "create new channel". It'll look like this:
Now, click on the "Continue to Ad Layout >>" link at the bottom of the Channels page and you'll be back to your original page, but now you can select the new channel!
Now in the "Your AdSense code" box is a bunch of obscure looking HTML that you'll want to copy and paste into your RSS template. Let's look at that part next.
If your browser supports tabs, I'd recommend that you create a new tab before you move to your Weblog configuration page, so you can flip back to the Google information with ease.
If your Movable Type configuration is like mine, you'll have a "Templates" link on the left side of the main page, which, once you click on, will reveal all your templates, including both an RSS 0.91 and RSS 1.0 index page.
Click on the first one, "index.xml", and you'll be looking at your template, which is about as scary as a file gets in the blogging world!
Somewhere in that jumble is a code section that looks like this:
Position your cursor just before the </description> tag, insert a few blank lines, then back up one and paste in the code from the Google AdSense page. Click on SAVE then click on the bottom REBUILD button and you'll be able to quickly rebuild just the target file.
You'll want to do a similar thing to the "index.rdf" file too. The XML that's shown therein is a wee bit different, but the same basic technique will apply.
Now, to test it, subscribe to your RSS feed from within you favorite RSS Aggregator (I like NewsGator Online, personally). Your ads should show up pretty much instantly!
Congratulations, you now have adverts in your RSS feed. Good luck with them. Me? I think you should only have adverts in full text feeds, as I talk about at length in the following article about Ads in RSS Feeds? Corrupting the idea of information syndication.
More Useful Blogs and Blogging Articles:
✔ Get my shopping cart plugin to work with WordPress?
We've put in a shopping cart for a client that's not working, and we need some help! The cart is currently using the...✔ Embed an audio player on a blog or web page?
I have some mp3 audio files I've recorded and would like to have people who visit my site be able to listen to...✔ Can I write a guest review for AskDaveTaylor.com?
Hi Dave. I'm a big fan of your site and love that you're doing so many reviews now. I've noticed, however, that there...✔ Change author on WordPress blog post?
I have two accounts set up for my WordPress blog and I'd like to be able to have all my posts from a...✔ How do I restructure my Wordpress blog without losing SEO?
I have a wordpress blog that was using categories in the url structure like this: /category_name/post_name/ Then I had read somewhere that if...
Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
I do have a comment, now that you mention it!
Check This Out Too...
Look for Answers
All Our Categories
Apple iPad Help
Articles and Reviews
Auctions and Online Shopping
Blogs and Blogging
Building Web Site Traffic
Business and Management
Computer and Internet Basics
d) None of the Above
Google Gmail Help
Google Plus Help
Industry News and Trade Shows
iPhone and Cell Phone Help
iPod, Sony PSP and MP3 Player Help
Kindle Fire Help
Mac OS X Help
Pay Per Click (PPC) Advertising
Search Engine Optimization (SEO)
Shell Script Programming
Tech Support Video Help
The Writing Business
Twitter, LinkedIn and Social Network Help
Unix and Linux Help
Video Game Tips and Help
Windows PC Help
Find Me on Google+
ADT on G+