<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Analysis and Review &#187; adsense</title>
	<atom:link href="http://analysisandreview.com/tag/adsense/feed/" rel="self" type="application/rss+xml" />
	<link>http://analysisandreview.com</link>
	<description>Brain Dumps For All</description>
	<lastBuildDate>Thu, 26 Jan 2012 20:58:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Create a 336 ad block, adsense</title>
		<link>http://analysisandreview.com/wordpress/how-to-create-a-336-ad-block-adsense/</link>
		<comments>http://analysisandreview.com/wordpress/how-to-create-a-336-ad-block-adsense/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 15:37:57 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[adsense]]></category>

		<guid isPermaLink="false">http://analysisandreview.com/?p=697</guid>
		<description><![CDATA[In order to create a 336 ad block for fantasyknuckleheads.com 1) You sign in here https://www.google.com/adsense/login/en_US/ 2) Click Adsense Setup 3) Click Adsense for Content 4) Ad unit &#8211; scroll down click continue 5) Format &#8211; 336 x 280 Border &#8211; F1F1F1 Title &#8211; CF152A Background &#8211; F1F1F1 Text &#8211; 000000 Url &#8211; 000000 6) ]]></description>
			<content:encoded><![CDATA[<p>In order to create a 336 ad block for fantasyknuckleheads.com<span id="more-697"></span></p>
<p>1) You sign in here <a href="https://www.google.com/adsense/login/en_US/" target="_blank">https://www.google.com/adsense/login/en_US/</a><br />
2) Click Adsense Setup<br />
3) Click Adsense for Content<br />
4) Ad unit &#8211; scroll down click continue<br />
5) Format &#8211; 336 x 280<br />
Border &#8211; F1F1F1<br />
Title &#8211; CF152A<br />
Background &#8211; F1F1F1<br />
Text &#8211; 000000<br />
Url &#8211; 000000<br />
6) scroll down and click continue<br />
7) scorll down and click continue again<br />
 <img src='http://analysisandreview.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> click submit and get code<br />
9) email me the code</p>
<p>Fantasyknuckleheads.com is a group fantasy sports blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://analysisandreview.com/wordpress/how-to-create-a-336-ad-block-adsense/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to rotate adsense ads based on author name</title>
		<link>http://analysisandreview.com/wordpress/rotate-adsense-based-on-author-name-wordpress/</link>
		<comments>http://analysisandreview.com/wordpress/rotate-adsense-based-on-author-name-wordpress/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 20:25:00 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[revenue]]></category>

		<guid isPermaLink="false">http://analysisandreview.com/?p=470</guid>
		<description><![CDATA[So do you want to know how to add adsense to your wordpress blog based on the author of the post? Adding adsense based on user name or author is easy with a little PHP magic. Using this code your revenue sharing arrangement will work out so the writers AdSense code will be used only ]]></description>
			<content:encoded><![CDATA[<p>So do you want to know how to add adsense to your wordpress blog based on the author of the post? <span id="more-470"></span></p>
<div id="attachment_471" class="wp-caption alignright" style="width: 310px"><img class="size-medium wp-image-471" src="http://analysisandreview.com/wp-content/blogs.dir/5/files/uploads/2009/07/google-adsense-rotate-ads-based-on-author-300x248.jpg" alt="Share adsense with authors based on author name." width="300" height="248" /><p class="wp-caption-text">Share adsense with authors based on author name.</p></div>
<p>Adding adsense based on user name or author is easy with a little PHP magic.<br />
Using this code your revenue sharing arrangement will work out so the writers AdSense code will be used only on the articles with which they write. Revenue generated from articles that the authors have written is all applied to the users adsense ID. The actual java script that google AdSense produces when you generate an ad is what is used within the HTML produced buy the wordpress loop.</p>
<p>I like this form of revenue sharing because the AdSense revenue is based on pageviews and clicks for each author, the writer is getting exactly what he or she earned based on what they have written and the traffic it brings to your WordPress blog.</p>
<p>In order to add the adsense based on the author of the post you&#8217;ll need each author to sign up for adsense and email you a copy of a ad they generated for what ever size box (ad unit) you&#8217;re defaulting for your blog.</p>
<p>So lets say your authors email you this adsense code:</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;&lt;!&#8211;<br />
google_ad_client = &#8220;<span style="color: #ff0000">pub-1345304564559123</span>&#8220;;<br />
/* 336&#215;280, created 7/31/09 */<br />
google_ad_slot = &#8220;<span style="color: #339966">1237752456</span>&#8220;;<br />
google_ad_width = 336;<br />
google_ad_height = 280;<br />
//&#8211;&gt;<br />
&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;<br />
src=&#8221;http://pagead2.googlesyndication.com/pagead/show_ads.js&#8221;&gt;<br />
&lt;/script&gt;</p>
<p>The adsense revenue sharing script will be used to replace the &#8220;<span style="color: #ff0000">google ad client</span>&#8221; and &#8220;<span style="color: #339966">google ad slot</span>&#8221; based on author user name.</p>
<p>So you need to copy the &#8220;google ad client&#8221; ID and the &#8220;google ad slot&#8221; ID &#8211; above they are &#8220;<span style="color: #ff0000">pub-1345304564559123</span>&#8221; and &#8220;<span style="color: #339966">1237752456</span>&#8221;</p>
<p>Now insert all those google ID&#8217;s as seen below into the php script highlighted below as a quote.</p>
<p>You want to insert the entire below code snippet into your single.php file where ever you want the google adsense rotation code to show up. Usually if you want the adsense ad unit to show up at the bottom of the post just copy paste the below code directly above</p>
<p>&lt;?php the_tags(&#8216;&lt;span id=&#8221;tags&#8221;&gt;&lt;strong&gt;&#8217;.__(&#8216;Tagged as:&#8217;,).&#8217;&lt;/strong&gt; &#8216;, &#8216;, &#8216;, &#8216;&lt;/span&gt;&#8217;); ?&gt;</p>
<p><span style="text-decoration: underline"><strong>or above</strong></span></p>
<p>&lt;?php comments_template(); ?&gt;</p>
<p>Single.php is located in wp-content/wp-themes/&#8221;your-theme&#8221;/single.php</p>
<p>In order to get your adsense code to rotate based on author you need to replace the &#8220;<span style="color: #339966">green</span>&#8221; item below with your Author name as seen in the wordpress admin panel.</p>
<p>Replace the &#8220;<span style="color: #ff0000">red</span>&#8221; item below with your Author&#8217;s google pub-ID that they sent you via email.</p>
<p>Replace the &#8220;<span style="color: #ff00ff">pink</span>&#8221; item below with your Author&#8217;s google ad slot ID that they sent you via email.</p>
<blockquote><p>&lt;?php function get_ad_client($author) {<br />
if($author == &#8216;<span style="color: #008000">username1</span>&#8216;)<br />
return &#8216;pub-<span style="color: #ff0000">userspubIDhere</span>&#8216;;<br />
elseif ($author==&#8217;<span style="color: #008000">username2</span>&#8216;)<br />
return &#8216;pub-<span style="color: #ff0000">userspubIDhere</span>&#8216;;<br />
else // default, no author found<br />
return &#8216;pub-<span style="color: #ff0000">DefaultPubIDhere</span>&#8216;;<br />
} ?&gt;<br />
&lt;?php function get_ad_slot($author) {<br />
if($author == &#8216;<span style="color: #008000">username1</span>&#8216;)<br />
return &#8216;<span style="color: #ff00ff">put-ad-slot-number-here</span>&#8216;;<br />
elseif ($author==&#8217;<span style="color: #008000">username2</span>&#8216;)<br />
return &#8216;<span style="color: #ff00ff">put-ad-slot-number-here</span>&#8216;;<br />
else // default, no author found<br />
return &#8216;<span style="color: #ff00ff">put-ad-slot-number-here</span>&#8216;;</p>
<p>} ?&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;&lt;!&#8211;<br />
google_ad_client = &#8220;&lt;?php echo get_ad_client(get_the_author());?&gt;&#8221;;<br />
/* 336&#215;280, top fantasy football */<br />
google_ad_slot = &#8220;&lt;?php echo get_ad_slot(get_the_author());?&gt;&#8221;;<br />
google_ad_width = <span style="color: #333399">336</span>;<br />
google_ad_height = <span style="color: #333399">280</span>;<br />
//&#8211;&gt;<br />
&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;<br />
src=&#8221;http://pagead2.googlesyndication.com/pagead/show_ads.js&#8221;&gt;<br />
&lt;/script&gt;<br />
&lt;br&gt;&lt;br&gt;</p></blockquote>
<p>The final results will look like this &#8211; use this code if you&#8217;re pasting it into your single.php file</p>
<pre class="brush: php; title: ; notranslate">

&amp;lt;!--
google_ad_client = &amp;quot;&quot;;
/* BLOG 336 BIG BOX */
google_ad_slot = &quot;&quot;;
google_ad_width = 336;
google_ad_height = 280;
//--&amp;gt;
</pre>
<p>That&#8217;s all folks! You now will have google adsense show up on your post page in wordpress based on the <strong>Author</strong> name of the user. The author name is set in the admin panel for each user name. Let me know if you have issues or questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://analysisandreview.com/wordpress/rotate-adsense-based-on-author-name-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

