• I installed the plugin and changed the adsense id to mine, but it shows a broken image in the rss feed and links to this page when I click on it: http://imageads1.googleadservices.com/pagead/imgclick/20?pos=0&r=1

    I am running WordPress 2.7.1

    Please help

    This is my plugin:

    /*
    Plugin Name: Google Adsense for Feeds
    Plugin URI: http://wordpress.org/extend/plugins/adsense-for-feeds/
    Description: This puts Google RSS Ads in your feed, make sure you fill in your publisher ID by editing the plugin file.
    Author: Matt Mullenweg
    Version: 1.1
    Author URI: http://photomatt.net/
    */
    
    $publisher = 'pub-8063102567425606';
    
    add_filter('the_content', 'adsense_for_feeds');
    
    function adsense_for_feeds( $content ) {
    	global $post, $id;
    	$blog_key = substr( md5( get_bloginfo('url') ), 0, 16 );
    	if ( ! is_feed() ) return $content;
    	$content = $content . "<p><map name='google_ad_map_{$id}_$blog_key'>
    <area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/$id?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_{$id}_$blog_key' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&client=$publisher&channel=&output=png&cuid=$id&url= " . urlencode( get_permalink() ) . "' /></p>";
    	return $content;
    }
    
    ?>

    As you can see if you click on the RSS link (http://feeds2.feedburner.com/security-exchange/PwAI) you can see the posts and the ads. Fine.

    But if you subscribe to the feed you don’t see the advertisements anymore. I have tried with Outlook 2007 and with Opera.

    Any suggestions?
    Please help

  • The topic ‘[Plugin: Google Adsense for Feeds] Broken Link, Links to Google’ is closed to new replies.