1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Adding Adsense code to RSS files (Not how to set up Adsense for feeds!)

Discussion in 'HTML & Website Design' started by gavin watson, Apr 18, 2011.

  1. #1
    Hi all,

    Apologies if this is not the best part to post this request. I dont need help on how to set up Adsense for feeds, please read on!

    I have noticed that my rss.asp file is getting loads of visits despite the main RSS page beign advertised one that has been set up via feedburner. People seem to have just got hold of it.

    My question is, how do I add Adsense to the original rss.asp page?

    the code looks like this:
    
    xml = xml & "<item>" & vbNewLine
    		xml = xml & "<title>" & Topic_Subject & "</title>" & vbNewLine
    		xml = xml & "<author>" & Topic_Last_Post_Author & "</author>" & vbNewLine
    		xml = xml & "<link>" & strForumURL & DoLastPostLink & "</link>" & vbNewLine
    		xml = xml & "<category>" & Forum_Subject & "</category>" & vbNewLine 
    		xml = xml & "<pubDate>"& Date2RFC822(StrToDate(Topic_Last_Post)) &"</pubDate>" & vbNewLine
    		xml = xml & "<guid>" & strForumURL & "topic.asp?TOPIC_ID=" & Topic_ID & "</guid>" & vbNewLine
    		xml = xml & "<description>" & Body & "</description>" & vbNewLine
    		xml = xml & "</item>" & vbNewLine
    	next
    end if
    xml = xml & "</channel></rss>"
    Response.Clear
    Response.Expires = 0
    Response.ContentType = "text/xml"
    Response.Write xml 
    Code (markup):
    I've tried everything I can think of, but I can't seem to add anythign to it that works.

    Can anyone help?

    Thanks in advance!
     
    gavin watson, Apr 18, 2011 IP