<?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>Fri, 13 Apr 2012 12:51:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</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 You sign in here https://www.google.com/adsense/login/en_US/ your going to create two ads &#8211; one at a time - Click My ads The New Ad Unit &#160; Now select 336 x 280 &#8211; Large Rectangle and click the &#8220;Use Custom Settings&#8221; Button &#8211; see image below. Copy ]]></description>
			<content:encoded><![CDATA[<p>In order to create a 336 ad block for fantasyknuckleheads.com<span id="more-697"></span></p>
<p>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></p>
<p>your going to create two ads &#8211; one at a time -</p>
<ol>
<li>Click My ads</li>
<li>The New Ad Unit</li>
</ol>
<p><a href="http://analysisandreview.com/files/2010/02/Capture.jpg"><img class="aligncenter size-full wp-image-936" title="Capture" src="http://analysisandreview.com/files/2010/02/Capture.jpg" alt="" width="475" height="312" /></a></p>
<p>&nbsp;</p>
<p>Now select<strong> 336 x 280 &#8211; Large Rectangle</strong> and click the &#8220;Use Custom Settings&#8221; Button &#8211; see image below.</p>
<p><a href="http://analysisandreview.com/files/2010/02/Capture1.jpg"><img class="aligncenter size-full wp-image-937" title="Capture1" src="http://analysisandreview.com/files/2010/02/Capture1.jpg" alt="" width="619" height="697" /></a></p>
<p>Copy paste the below hex numbers below into the style area&#8230;</p>
<ul>
<li>Border 222325</li>
<li>Title 354FFA</li>
<li>Background 212120Text 5f5f5f</li>
<li>URL 5f5f5f</li>
</ul>
<p><strong>click save and get code &#8211; copy the code and paste it into email.</strong></p>
<p>One more ad unit to go&#8230;. follow the step above again just this time you&#8217;ll make a 468 X 60 Banner</p>
<p>Now make a new ads again &#8211; this time select <strong>468 x 60 &#8211; Banner</strong> then enter the colors below.</p>
<ul>
<li>Border 222325</li>
<li>Title 354FFA</li>
<li>Background 212120</li>
<li>Text 5f5f5f</li>
<li>URL 5f5f5f</li>
</ul>
<p>click save and get code -</p>
<p>Then send me the code and all you ads will be live once I put them on the website.</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>

