PDA

View Full Version : Adsense for Feed code in external.php. How?


Black_Widow
04-11-2008, 11:40 PM
Hello
I'm running vbulletin ver. 3.5 and I'm trying to put adsense code for feed into external.php

<![CDATA[<p><map name="google_ad_map_<$MTEntryDate format="%y%m%d%H%M%S"$>">
<area shape="rect" href="http://imageads.googleadservices.com/pagead/imgclick/<$MTEntryDate format="%y%m%d%H%M%S"$>?pos=0" coords="1,2,367,28"/>
<area shape="rect" href="http://services.google.com/feedback/abg" coords="384,10,453,23"/></map>
<img usemap="#google_ad_map_<$MTEntryDate format="%y%m%d%H%M%S"$>" border="0" src="http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=CLIENTIDXXX&amp;chann el=&amp;output=png&amp;cuid=<$MTEntryDate format="%y%m%d%H%M%S"$>&amp;url=<$MTEntryPermalink encode_url="1" archive_type="Individual"$>"/></p>]]>

Anyone has been able to perform successfully this modification to external.php?

I've tried changing RSS2 code in external in this way:

case 'RSS2':
echo "\r\n\t<item><![CDATA[<p><map name=\"google_ad_map_<" .vbdate($vbulletin->options['dateformat'], $thread['dateline']) . " format=\"%d%m%y\"$>\">
<area shape=\"rect\" href=\"http://imageads.googleadservices.com/pagead/imgclick/<" .vbdate($vbulletin->options['dateformat'], $thread['dateline']) . " format=\"%d%m%y\"$>?pos=0\" coords=\"1,2,367,28\"/>
<area shape=\"rect\" href=\"http://services.google.com/feedback/abg\" coords=\"384,10,453,23\"/></map>
<img usemap=\"#google_ad_map_<" .vbdate($vbulletin->options['dateformat'], $thread['dateline']) . " format=\"%d%m%y\"$>\" border=\"0\" src=\"http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=CLIENTIDXXXXX&amp;cha nnel=&amp;output=png&amp;cuid=<" .vbdate($vbulletin->options['dateformat'], $thread['dateline']) . " format=\"%d%m%y\"$>&amp;url=<$MTEntryPermalink encode_url=\"1\" archive_type=\"Individual\"$>\"/></p>]]>\r\n";

where CLIENTIDXXXXX is my adsense code.
But it doesn't work.

Have some of you been able to use adsense for feed with vbulletin?

Thanks

Black_Widow
04-13-2008, 10:01 PM
Uhm noone is using adsense for feed? :-(

Marco van Herwaarden
04-14-2008, 06:05 AM
I even doubt it is allowed according to their TOS.

Dismounted
04-14-2008, 06:10 AM
I don't think you understand what RSS feeds are. RSS feeds are used as a standard for other sites to fetch data (usually news) from yours. Even if you did use such advertisement HTML, any good programmer would filter out bad HTML (ie. Javascript).

Black_Widow
04-14-2008, 09:01 AM
I even doubt it is allowed according to their TOS.
Uhm..I've received that code from google staff. I can us it to display announces in feed.

RSS feeds are used as a standard for other sites to fetch data (usually news) from yours

Yes, but RSS are also used by simply rss readers (single users) and not only by webmasters.

MadK
08-15-2008, 04:16 PM
I found this thread while searching on Google, I have the same exact question. I have enabled AdSense Feeds and was wondering how to edit the feeds URL on my boards? Thank you!

dethfire
08-27-2008, 05:27 PM
new adsense for feeds feature, anyone adding it to their vb rss and how?

David_R
08-28-2008, 10:36 AM
What I dont like about adsense for feeds is we require a feedburner account in order for our feeds getting adsense units :/

David_R
09-04-2008, 11:36 AM
anyone has adsense for feeds enbled for there forums ?
please share how it looks.

SIINSI
09-19-2008, 03:40 AM
I'm trying to figure this out to...

Google gives this code for .htaccess to redirect to the new feed but, that's if our feed ended in index.xml which it does not.

Ours is external.php?type=RSS2

Here's the code they give....

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !FeedBurner
RewriteRule ^index\.xml$ http://feedproxy.google.com/YOURFEEDADDRESS [R,L]

how do we make it so this works for vb?

Thanks,
Miguel

Brandon Sheley
09-19-2008, 04:07 AM
I even doubt it is allowed according to their TOS.

Google Launches AdSense for Feeds (http://googlesystem.blogspot.com/2008/08/google-tests-adsense-for-feeds.html)


I would be interested in seeing someone implement this as well :)

Kaelon
09-19-2008, 01:27 PM
Adsense for Feeds is misleading. What it requires you to do is feed your feeds through Feedburner, a service that Google purchased. Then when users review feeds on the web, they are displayed Adsense ads. So you have to manually create each and every feed on Feedburner, and then re-direct your website's reader traffic to the Feedburner page to display your feeds with Adsense in-line.

It's just not feasible for how external.php works, which generates feeds dynamically based upon your forums. So unless you have very static forums (that won't change their layout, names, configuration, numbers, etc.), then this won't really work for active vB communities.

Brandon Sheley
09-19-2008, 03:42 PM
I guess they should say
"adsense for blog feeds"

David_R
09-22-2008, 01:16 PM
There is a 2nd dawback to adsense for feeds system, feeds which are ready only in Google Reader can show adsense units..

lol.. google show adsense units if you use there service = feedburner
google adsense is displayed only if you use googles service = google reader.

so only use google and boycott rest.
Not interested in adsense for feeds now.