<?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>Mobile Sentience</title>
	<atom:link href="http://www.mobilesentience.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mobilesentience.com</link>
	<description>Making smartphones smarter!</description>
	<lastBuildDate>Thu, 21 Jul 2011 17:16:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Even Easier Automatic Insertion of Advertisements in WordPress Posts</title>
		<link>http://www.mobilesentience.com/2011/05/14/even-easier-automatic-insertion-of-advertisements-in-wordpress-posts/</link>
		<comments>http://www.mobilesentience.com/2011/05/14/even-easier-automatic-insertion-of-advertisements-in-wordpress-posts/#comments</comments>
		<pubDate>Sun, 15 May 2011 00:28:20 +0000</pubDate>
		<dc:creator>maxj</dc:creator>
				<category><![CDATA[Manifesto]]></category>

		<guid isPermaLink="false">http://www.mobilesentience.com/?p=629</guid>
		<description><![CDATA[var _gaq = _gaq &#124;&#124; []; _gaq.push(['_setAccount', 'UA-22288663-1']); _gaq.push(['_trackPageview']); _gaq.push(['_setDomainName', '.mobilesentience.com']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_setAllowHash', false]); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s &#8230; <a class="more-link" href="http://www.mobilesentience.com/2011/05/14/even-easier-automatic-insertion-of-advertisements-in-wordpress-posts/">More</a>]]></description>
			<content:encoded><![CDATA[<div><div style="width:160px;height:600px;float:left;padding: 9px 9px 9px 9px;"><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22288663-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setDomainName', '.mobilesentience.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setAllowHash', false]);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<a href="http://www.tkqlhce.com/click-5080261-10732388" target="_top"><img src="http://www.awltovhc.com/image-5080261-10732388" width="160" height="600" alt="3 months FREE Hosting with FREE Domain Name" border="0"/></a>
</div><p><a title="The Situation" name="situation"></a></p>
<h4>The Situation</h4>
<p>You read through the primer on <a title="Getting Started with Advertwhirl" href="http://www.mobilesentience.com/2011/05/02/campaigns-allocations-and-rules-oh-my/">campaigns, allocations and rules</a>, and have set up an ad campaign for <a title="Simple Two Affiliate Ad Rotation Tutorial" href="http://www.mobilesentience.com/2011/05/03/simple-two-affiliate-ad-rotation/">two affiliate ad rotation</a> or perhaps an <a title="Sharing Ad Slots With Guest Bloggers Tutorial" href="http://www.mobilesentience.com/2011/05/08/sharing-ad-slots-with-a-guest-blogger/">ad campaign to share ad slots with a guest blogger</a>.  You&#8217;d like to take advantage of <a title="Automatic Insertion of Advertisements in WordPress Posts Tutorial" href="http://www.mobilesentience.com/2011/05/01/automatic-insertion-of-advertisements-in-wordpress-posts/">automatic placement of advertisements</a> but after reading the tutorial you still aren&#8217;t comfortable editing the template files for your WordPress theme.</p>
<p><span style="color: #000000; line-height: 23px;">The Solution</span><a title="Getting Started with Advertwhirl" href="http://www.mobilesentience.com/2011/05/02/campaigns-allocations-and-rules-oh-my/"></a></p>
<p>As of version 1.0.8 of the <a title="Advertwhirl Plugin Page" href="http://wordpress.org/extend/plugins/advertwhirl/">Advertwhirl Advertising Manager and Ad Rotator for WordPress</a> you can automatically place ads in posts and pages with nothing more but clicking a check-box.</p>
<p><a title="The Nuts and Bolts" name="nutsandbolts"></a></p>
<h4>The Nuts and Bolts</h4>
<p>While modification of a themes template file as in the <a title="Automatic Insertion of Advertisements in WordPress Posts Tutorial" href="http://www.mobilesentience.com/2011/05/01/automatic-insertion-of-advertisements-in-wordpress-posts/">automatic placement of advertisements tutorial</a> can give you very precise control over ads placement, for 99% of sites that level of control is unnecessary.  And, <a title="Advertwhirl Plugin Page" href="http://wordpress.org/extend/plugins/advertwhirl/">Advertwhirl&#8217;s</a> built-in advertisement placing is a simple and quick way to get your ads into your blog posts.</p>
<p><a title="==Setup your Campaign and Ad Sources" name="setup"></a></p><div style="width:160px;height:600px;float:right;padding: 9px 9px 9px 9px;"><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22288663-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setDomainName', '.mobilesentience.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setAllowHash', false]);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6722014080569043";
/* Manifesto - Wide Skyscraper */
google_ad_slot = "5584216083";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<h5>Setup your Campaign and Ad Sources</h5>
<p>The first step is getting your advertising campaign ready to roll.  &#8221;The Situation&#8221; assumes you already have this done.  But just in case you don&#8217;t now is the time to do it.  Here are a few tutorials to get you started.  The first two will walk you through setting up an ad campaign for two of the more popular uses for <a title="Advertwhirl Plugin Page" href="http://wordpress.org/extend/plugins/advertwhirl/">Advertwhirl</a>.  The last has the gory details of what each bit means, that the first two tutorials don&#8217;t get into.</p>
<ul>
<li><a title="Sharing Ad Slots With a Guest Blogger" rel="bookmark" href="http://www.mobilesentience.com/2011/05/08/sharing-ad-slots-with-a-guest-blogger/">Sharing Ad Slots With a Guest Blogger</a></li>
<li><a title="Simple Two Affiliate Ad Rotation" rel="bookmark" href="http://www.mobilesentience.com/2011/05/03/simple-two-affiliate-ad-rotation/">Simple Two Affiliate Ad Rotation</a></li>
<li><a title="Campaigns, Allocations and Rules oh my!" rel="bookmark" href="http://www.mobilesentience.com/2011/05/02/campaigns-allocations-and-rules-oh-my/">Campaigns, Allocations and Rules oh my!</a></li>
</ul>
<p><a title="==Tell Advertwhirl Where to Place the Ads" name="place-the-ads"></a></p>
<h5>Tell Advertwhirl Where to Place the Ads</h5>
<p>Alright, you got the campaign and ad sources configured and are ready to place your ads.  Automatic placement of ads is now so trivial in the <a title="Advertwhirl Plugin Page" href="http://wordpress.org/extend/plugins/advertwhirl/">Advertwhirl Advertising Manager and Ad Rotator for WordPress</a> that I almost feel bad writing about it.  As of version 1.0.8 you can find controls for automatic ad placement of an ad campaign right in the edit window for that ad campaign.</p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/ad-placement.png"><img class="alignnone size-thumbnail wp-image-632" title="ad-placement" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/ad-placement-150x150.png" alt="" width="150" height="150" /></a></p>
<p><a title="===Locations for Ad Placement" name="locations"></a></p>
<h6>Locations for Ad Placement</h6>
<p>There are three sets of controls for automatics ad placement.  They control the placement of ads on your home page, other pages and in posts.</p>
<p>The controls for <em><strong>&#8220;Home Page&#8221;</strong></em> effect ad placement on the front page of your blog when <strong>Settings-&gt;Reading-&gt;Front page displays</strong> is set to &#8220;Your latest posts&#8221;, or when it is set to &#8220;A static page&#8221; and the front page is the current page being displayed.</p>
<p>The controls for &#8220;Pages&#8221; effect ad placement on static pages.  If <strong>Settings-&gt;Reading-&gt;Front page displays</strong> is set to &#8220;A static page&#8221;.  The static page used as the front page will instead use the settings for the <em><strong>&#8220;Home Page&#8221;</strong></em>.</p>
<p>The controls for &#8220;Posts&#8221; effect ad placement in posts.</p>
<p><a title="===The Controls" name="controls"></a></p>
<h6>The Controls</h6>
<p>Each grouping of controls is the same with the only difference being which page type they effect.  The controls for each group are broken up into 2 rows.  The first row of controls effect placement of ads in headers, footers, before content and after content.  The second row of controls all effect placement of ads in the content of a page or post.</p>
<p><em><strong>Place in header</strong></em> &#8211; places an ad in the header of a page or post.  In technical terms that is between the &lt;head&gt; and &lt;/head&gt; tags of the pages html.  The exact location in the pages header isn&#8217;t configurable and is dependent on your theme and what plugins you have installed.  This is only appropriate for javascript based ads such as you get from adsense.  Where the ad shows up in the actual page depends on the javascript itself, for adsense it will be at the very top of the page.</p>
<p><em><strong>Place in footer</strong></em> &#8211; places an ad in the footer of the page.  In technical terms this is immediately before the &lt;/body&gt; tag of the page.  Like &#8220;Place in header&#8221; the exact placement is dependent on your theme and what plugins are installed.  This will place the ad at the bottom of the page and is suitable for html and javascript ads.</p>
<p><em><strong>Place before content</strong></em> &#8211; places an advertisement right before the content of a page.  The content of a page is everything you enter in the WordPress editor when you edit a page or post through the admin interface.  In technical terms this is immediately before <strong><em>&#8220;the_content();&#8221;</em></strong> in your themes template files.  Other plugins that filter <strong><em>&#8220;the_content&#8221;</em></strong> can effect the exact order that the ad gets placed.  This is suitable for all types of ads, html and javascript.</p>
<p><em><strong>Place after content</strong></em> &#8211; places an advertisement right after the content of a page and works exactly like <strong><em>&#8220;Place before content&#8221;</em></strong> just it places the add after &#8220;the_content()&#8221; not before.  This is suitable for all types of ads, html and javascript.</p>
<p><strong><em>Place in content</em></strong> &#8211; places advertisements(1 or more) in the middle of a pages content, this is the exact same ad placement as the <strong><em>&#8220;Advanced Method&#8221;</em></strong> in the <a title="Automatic Insertion of Advertisements in WordPress Posts Tutorial" href="http://www.mobilesentience.com/2011/05/01/automatic-insertion-of-advertisements-in-wordpress-posts/">automatic placement of advertisements</a> tutorial only it doesn&#8217;t require any editing of your theme template files.</p>
<p style="padding-left: 30px;">The first drop-down lets you limit how many ads will be displayed in any one post so you don&#8217;t overwhelm your readers.  Ads lose potency the further down the post they appear and t0o many can annoy readers.  The default is to show a maximum of 2 ads.  If you don&#8217;t want to limit the number of ads that will be shown you can set it to &#8220;no limit&#8221;</p>
<p style="padding-left: 30px;">The second drop-down controls how many paragraphs of content are between each ad.  The default is to show one ad every 4 paragraphs.</p>
<p style="padding-left: 30px;">The third drop-down controls which paragraph the first ad is placed before.</p>
<p style="padding-left: 30px;">The fourth and last drop-down controls where in the content the ad is placed.</p>
<p style="padding-left: 60px;"><strong><em>On the left</em></strong> &#8211; the ads are aligned to the left of the page and the page content wraps around it on the right.</p>
<p style="padding-left: 60px;"><em><strong>On the right</strong></em> &#8211; the ads are aligned to the right of the page and the page content wraps around it on the left.</p>
<p style="padding-left: 60px;"><em><strong>Alternating on the left then on the right</strong></em> &#8211; the ads are alternate which side they are aligned to.  First on the left then on the right.  The page content wraps around and between the alternating ads.</p>
<p style="padding-left: 60px;"><em><strong>Alternating on the right then on the left</strong></em> &#8211; the same as on <strong><em>&#8220;Alternating on the left then the right&#8221;</em></strong> but it starts on the right.  The page content wraps around and between the alternating ads.</p>
<p><span style="color: #000000; font-size: 13px; line-height: 19px;">Download Advertwhirl</span></p>
<p><a href="http://www.mobilesentience.com/downloads/advertwhirl.1.0.13.zip" title="Downloaded 129 times">Download Advertwhirl</a></p>
<p><a title="References" name="reference"></a></p>
<h5>References</h5>
<p><a title="Advertwhirl plugin page - Mobile Sentience" href="http://www.mobilesentience.com/software/oss/advertwhirl/">Mobile Sentience Advertwhirl page</a><br />
<a title="Advertwhirl plugin page - WordPress Gallery" href="http://wordpress.org/extend/plugins/advertwhirl/">Advertwhirl in the WordPress gallery</a><br />
<a title="Install Instructions" href="http://www.mobilesentience.com/2011/04/24/reseller-branding-of-your-wordpress-site/">Tutorial with instructions for installing Advertwhirl Plugin</a><br />
<a title="WordPress Hack – How to Insert Ads in the Middle of Your Content!" href="http://zedomax.biz/blog/make-money-online/wordpress-hack-how-to-insert-ads-in-the-middle-of-your-content/">Original advanced method code</a>
<div class="tweetthis" style="text-align:left;">
<p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/share?url=http://www.mobilesentience.com/2011/05/14/even-easier-automatic-insertion-of-advertisements-in-wordpress-posts/&text=custom+-+%5BCUSTOM%5D&via=MobileSentience&related=richardxthripp%2Ctweetthisplugin" title="Post to Twitter"><img class="nothumb" src="http://www.mobilesentience.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro2.png" alt="Post to Twitter" /></a></p>
</div>
</p></div>]]></content:encoded>
			<wfw:commentRss>http://www.mobilesentience.com/2011/05/14/even-easier-automatic-insertion-of-advertisements-in-wordpress-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharing Ad Slots With a Guest Blogger</title>
		<link>http://www.mobilesentience.com/2011/05/08/sharing-ad-slots-with-a-guest-blogger/</link>
		<comments>http://www.mobilesentience.com/2011/05/08/sharing-ad-slots-with-a-guest-blogger/#comments</comments>
		<pubDate>Mon, 09 May 2011 04:17:07 +0000</pubDate>
		<dc:creator>maxj</dc:creator>
				<category><![CDATA[Advertwhirl]]></category>
		<category><![CDATA[Manifesto]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.mobilesentience.com/?p=529</guid>
		<description><![CDATA[var _gaq = _gaq &#124;&#124; []; _gaq.push(['_setAccount', 'UA-22288663-1']); _gaq.push(['_trackPageview']); _gaq.push(['_setDomainName', '.mobilesentience.com']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_setAllowHash', false]); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s &#8230; <a class="more-link" href="http://www.mobilesentience.com/2011/05/08/sharing-ad-slots-with-a-guest-blogger/">More</a>]]></description>
			<content:encoded><![CDATA[<div><div style="width:160px;height:600px;float:left;padding: 9px 9px 9px 9px;"><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22288663-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setDomainName', '.mobilesentience.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setAllowHash', false]);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<a href="http://www.tkqlhce.com/click-5080261-10732388" target="_top"><img src="http://www.awltovhc.com/image-5080261-10732388" width="160" height="600" alt="3 months FREE Hosting with FREE Domain Name" border="0"/></a>
</div><p><a title="The Situation" name="situation"></a></p>
<h4>The Situation</h4>
<p>You&#8217;ve installed the Advertwhirl ad management plugin for WordPress, perhaps using the <a title="Install Instructions" href="http://www.mobilesentience.com/2011/04/24/reseller-branding-of-your-wordpress-site/">installation instructions in this tutorial</a>.  You powered through the <a title="Inserting Ads in Posts" href="http://www.mobilesentience.com/2011/05/02/campaigns-allocations-and-rules-oh-my/">campaigns, allocations and rules</a> tutorial and setup your first campaign.  You modified your blogs theme to <a title="Inserting Ads in Posts" href="http://www.mobilesentience.com/2011/05/01/automatic-insertion-of-advertisements-in-wordpress-posts/">automatically insert advertisements</a> from your campaign in your blog posts.</p>
<p>The world is good, you&#8217;re successfully monetizing your blog and getting ready to make a big push to expand your viewership.  And then a pesky guest blogger asks for a share of the ad slots for any posts she writes.  She&#8217;s made a compelling argument, and your only ﻿retort is &#8220;er&#8230;durrr&#8230; But, I don&#8217;t know how to do that.&#8221;</p>
<p><a title="The Solution" name="solution"></a></p>
<h4>The Solution</h4>
<p>Advertwhirl is quite flexible and lets you manage your advertising campaigns as simply or complexly as you require.  Ad sharing for guest bloggers is one of the easiest configurations you can do with Advertwhirl.</p>
<p><a title="The Nuts and Bolts" name="nutsandbolts"></a></p>
<h4>The Nuts and Bolts</h4>
<p>The steps are pretty straight forward and not all that different then the <a title="Simple Two Affiliate Ad Rotation Tutorial" href="http://www.mobilesentience.com/2011/05/03/simple-two-affiliate-ad-rotation/">&#8220;Simple Two Affiliate Ad Rotation&#8221; tutorial</a>.  Setup your ads, create a campaign with two allocations, one for posts written by your guest blogger and on for any other posts.  Set the weights and ad a rule and you&#8217;re good to go.</p><div style="width:160px;height:600px;float:right;padding: 9px 9px 9px 9px;"><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22288663-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setDomainName', '.mobilesentience.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setAllowHash', false]);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6722014080569043";
/* Manifesto - Wide Skyscraper */
google_ad_slot = "5584216083";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p><a title="=Setup the Advertisements" name="setup-ads"></a></p>
<h5>Setup the Advertisements</h5>
<p>Setting up the ads is only slightly more complicated then in the <a title="Simple Two Affiliate Ad Rotation Tutorial" href="http://www.mobilesentience.com/2011/05/03/simple-two-affiliate-ad-rotation/">&#8220;Simple Two Affiliate Ad Rotation&#8221; tutorial</a>.  You need to ad your ads and your guest bloggers ad.</p>
<p>First lets setup your ads using adsense.  If you don&#8217;t use adsense you can follow the steps for setting up a local ad source for your guest blogger to setup a local ad source for yourself.</p>
<p>Here is a recap of configuring Adsense from the <a title="Simple Two Affiliate Ad Rotation Tutorial" href="http://www.mobilesentience.com/2011/05/03/simple-two-affiliate-ad-rotation/">&#8220;Simple Two Affiliate Ad Rotation&#8221; tutorial</a>.  All you will need is your Adsense username and your Adsense password.</p>
<ol>
<li>Go to your WordPress blogs admin page</li>
<li>In the admin &#8220;Settings&#8221; menu go to the Advertwhirl entry<a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/admin-settings.png"><img class="alignnone size-thumbnail wp-image-584" title="admin-settings" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/admin-settings.png" alt="" width="92" height="150" /></a></li>
<li>Go to the Advertwhirl Settings tab<a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/adsense-settings.png"><img class="alignnone size-thumbnail wp-image-585" title="adsense-settings" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/adsense-settings-e1304447353619-150x150.png" alt="" width="150" height="150" /></a></li>
<li>Go to the &#8220;Adsense Settings&#8221; panel right below &#8220;General Settings&#8221; and fill in your username and password for Adsense and hit Update.
<ul>
<li>For security reasons your Adsense password will not be displayed and the field will remain blank if you come back to the settings page in the future.  Don&#8217;t worry it&#8217;s still there.</li>
</ul>
</li>
<li>You can leave the other settings alone for now, they won&#8217;t effect anything you are doing in this tutorial.</li>
</ol>
<p>Now that Adsense is setup lets get a local ad setup for you guest blogger.</p>
<p>Adding an advertisement for your guest blogger is just as easy as setting Advertwhirl up to use Ad Sense.  There are two options at this time.  If your guest blogger provided you with html or javascript code use option one, if she gave you a url option two is what you&#8217;ll want.</p>
<p>Option one to create a local ad from html or javascript code.</p>
<ol>
<li>Go to the &#8220;Local Ads&#8221; tab next to the &#8220;Settings&#8221; tab on the left.</li>
<li>Click on the &#8220;Ad Source&#8221; Button<br />
<a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/ad-local-source.png"><img class="alignnone size-thumbnail wp-image-589" title="ad-local-source" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/ad-local-source-150x70.png" alt="" width="150" height="70" /></a></li>
<li>Fill in a name for your guest bloggers advertisement, this is what will appear in the dropdown list when you go to add it to your Allocation later.</li>
<li>Fill in any notes to yourself in the Description field.</li>
<li>Change the type from Ad Type from &#8220;URL&#8221; to &#8220;Inline Code&#8221;</li>
<li>Paste the html/javascript code your guest blogger gave you into the Inline Code textarea</li>
<li>Click &#8220;Add Source&#8221; to save your changes<br />
<a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/create-local-source.png"><img class="alignnone size-thumbnail wp-image-590" title="create-local-source" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/create-local-source-e1304448555429-150x96.png" alt="" width="150" height="96" /></a></li>
</ol>
<p>Option two to create a local ad from a url.</p>
<ol>
<li>Go to the &#8220;Local Ads&#8221; tab next to the &#8220;Settings&#8221; tab on the left.</li>
<li>Click on the &#8220;Ad Source&#8221; Button<br />
<a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/ad-local-source.png"><img class="alignnone size-thumbnail wp-image-589" title="ad-local-source" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/ad-local-source-150x70.png" alt="" width="150" height="70" /></a></li>
<li>Fill in a name for your guest bloggers advertisement, this is what will appear in the dropdown list when you go to add it to your Allocation later.</li>
<li>Fill in any notes to yourself in the Description field.</li>
<li>Leave the Ad Type set to &#8220;URL&#8221;</li>
<li>Check &#8220;wrap in iframe&#8221;</li>
<li>Paste the url your guest blogger gave you into the url textarea</li>
<li>Click &#8220;Add Source&#8221; to save your changes<br />
<a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/create-local-source.png"><img class="alignnone size-thumbnail wp-image-590" title="create-local-source" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/create-local-source-e1304448555429-150x96.png" alt="" width="150" height="96" /></a></li>
</ol>
<p>That is it, your ads and your guest bloggers ads are now setup and you are ready to rock onto the next step.</p>
<p><a title="=Create the Campaign" name="campaign"></a></p>
<h5>Create the Campaign</h5>
<p>Creating an ad campaign for guest bloggers takes only slightly longer then setting up<a title="Simple Two Affiliate Ad Rotation Tutorial" href="http://www.mobilesentience.com/2011/05/03/simple-two-affiliate-ad-rotation/">&#8220;Simple Two Affiliate Ad Rotation&#8221;</a> and is really no more difficult.  You will need at least two allocations.  One allocation for each of your guest bloggers and one allocation for all posts not written by a guest blogger.</p>
<ol>
<li>Go to the &#8220;Campaigns&#8221; tab next to the &#8220;Local Ads&#8221; tab on the left.</li>
<li>Click on the &#8220;Ad Campaign&#8221; Button</li>
<li>Give the Campaign a name.  This is how you will identify which Campaign you wish to use to fill an Ad Slot.The name shouldn&#8217;t have any spaces or special characters.</li>
<li>Put any notes which will help you remember what the purpose of this Campaign is in the Description field</li>
<li>There is already an Allocation created for you, use this one for your guest blogger.</li>
<li>Fill in a Description for the Allocation if you want.  It&#8217;s just a way for you to keep track of what is what in complex configurations.  For this simple one it won&#8217;t really be helpful and you can leave it blank if you want.</li>
<li>Select the Adsense Ad unit that you wish to use for your share of the ads in any of your guest bloggers posts.</li>
<li>Click &#8220;Add Advertisement Source&#8221;</li>
<li>Select your guest bloggers ad.</li>
<li>Set your weights to match the agreement you have with your guest blogger.</li>
<li>Click &#8220;Add Rule Set&#8221;</li>
<li>Select &#8220;Match an author&#8221; and click &#8220;Add Rule&#8221;</li>
<li>In the newly added rule select the name of the guest blogger from the drop down list.</li>
<li>Click &#8220;Add Allocation&#8221;</li>
<li>Use this allocation for any posts not written by your guest bloggers.</li>
<li>Fill in a Description for the Allocation if you want.</li>
<li>Select the Adsense Ad unit that you wish to use for any posts not written by your guest bloggers.</li>
<li>Click &#8220;Save Campaign&#8221; and you are done</li>
</ol>
<p><span style="font-size: small;"><span style="line-height: 24px;"><a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/create-campaign.png"><img class="alignnone size-thumbnail wp-image-600" title="create-campaign" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/create-campaign-e1304452557820-150x150.png" alt="" width="150" height="150" /></a><br />
</span></span></p>
<p>Thats it.  Any posts written by the guest blogger will rotate ads based on the weights you configured.  Any other post will serve only your ad unit.  If you have multiple guest bloggers the process is the same.  Just add an allocation for each that is configured the same as Allocation 1, just change the weights, the authors ad unit and who the author is.  Make sure to leave the Allocation with no rules and only your Ad Unit as the last allocation.</p>
<p><a title="Download Advertwhirl" name="download"></a></p>
<h5>Download Advertwhirl</h5>
<p><a href="http://www.mobilesentience.com/downloads/advertwhirl.1.0.13.zip" title="Downloaded 129 times">Download Advertwhirl</a></p>
<p><a title="References" name="reference"></a></p>
<h5>References</h5>
<p><a title="Advertwhirl plugin page - Mobile Sentience" href="http://www.mobilesentience.com/software/oss/advertwhirl/">Mobile Sentience Advertwhirl page</a><br />
<a title="Advertwhirl plugin page - WordPress Gallery" href="http://wordpress.org/extend/plugins/advertwhirl/">Advertwhirl in the WordPress gallery</a><br />
<a title="Install Instructions" href="http://www.mobilesentience.com/2011/04/24/reseller-branding-of-your-wordpress-site/">Tutorial with instructions for installing Advertwhirl Plugin</a><br />
<a title="Inserting Ads in Posts" href="http://www.mobilesentience.com/2011/05/01/automatic-insertion-of-advertisements-in-wordpress-posts/">Automatic Insertion of Advertisements in WordPress Posts</a><br />
<a title="Inserting Ads in Posts" href="http://www.mobilesentience.com/2011/05/02/campaigns-allocations-and-rules-oh-my/">Campaigns, Allocations and Rules oh my!</a>
<div class="tweetthis" style="text-align:left;">
<p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/share?url=http://www.mobilesentience.com/2011/05/08/sharing-ad-slots-with-a-guest-blogger/&text=custom+-+%5BCUSTOM%5D&via=MobileSentience&related=richardxthripp%2Ctweetthisplugin" title="Post to Twitter"><img class="nothumb" src="http://www.mobilesentience.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro2.png" alt="Post to Twitter" /></a></p>
</div>
</p></div>]]></content:encoded>
			<wfw:commentRss>http://www.mobilesentience.com/2011/05/08/sharing-ad-slots-with-a-guest-blogger/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Simple Two Affiliate Ad Rotation</title>
		<link>http://www.mobilesentience.com/2011/05/03/simple-two-affiliate-ad-rotation/</link>
		<comments>http://www.mobilesentience.com/2011/05/03/simple-two-affiliate-ad-rotation/#comments</comments>
		<pubDate>Tue, 03 May 2011 19:56:14 +0000</pubDate>
		<dc:creator>maxj</dc:creator>
				<category><![CDATA[Advertwhirl]]></category>
		<category><![CDATA[Manifesto]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.mobilesentience.com/?p=582</guid>
		<description><![CDATA[var _gaq = _gaq &#124;&#124; []; _gaq.push(['_setAccount', 'UA-22288663-1']); _gaq.push(['_trackPageview']); _gaq.push(['_setDomainName', '.mobilesentience.com']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_setAllowHash', false]); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s &#8230; <a class="more-link" href="http://www.mobilesentience.com/2011/05/03/simple-two-affiliate-ad-rotation/">More</a>]]></description>
			<content:encoded><![CDATA[<div><div style="width:160px;height:600px;float:left;padding: 9px 9px 9px 9px;"><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22288663-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setDomainName', '.mobilesentience.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setAllowHash', false]);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<a href="http://www.tkqlhce.com/click-5080261-10732388" target="_top"><img src="http://www.awltovhc.com/image-5080261-10732388" width="160" height="600" alt="3 months FREE Hosting with FREE Domain Name" border="0"/></a>
</div><p><a title="The Situation" name="situation"></a></p>
<h4>The Situation</h4>
<p>You&#8217;ve installed the Advertwhirl ad management plugin for WordPress, You&#8217;ve taken a quick look at <a title="Campaigns, Allocations and Rules Tutorial" href="http://www.mobilesentience.com/2011/05/02/campaigns-allocations-and-rules-oh-my/">Campaigns, allocations and rules</a> still feel a little daunted.  All you want to do is rotate ads between adsense and a local banner you have setup for one of your products.  You&#8217;re not quite sure you want to be messing with rules and regular expressions and that other mumbo jumbo.</p>
<p><a title="The Solution" name="solution"></a></p>
<h4>The Solution</h4>
<p>Advertwhirl is quite flexible and lets you manage your advertising campaigns as simply or complexly as you require.  If you just want to rotate between a few different ad sources Advertwhirl will help you do that with out the need for any complex configuration.</p>
<p><a title="The Nuts and Bolts" name="nutsandbolts"></a></p>
<h4>The Nuts and Bolts</h4>
<p>The steps are pretty simple configure Advertwhirl to connect to your Adsense account, add a local ad source for the banner, create an ad campaign with a single allocation that has two ad source(an Adsense Ad Unit and your banner) and no rules.  Thats it and this tutorial will walk you through it step by step in less just a couple minutes, unless you are one of those people that tweets everything you do or take a break to become Mayor of this tutorial.</p>
<p><a title="==Configure Adsense" name="configure-adsense"></a></p><div style="width:160px;height:600px;float:right;padding: 9px 9px 9px 9px;"><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22288663-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setDomainName', '.mobilesentience.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setAllowHash', false]);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6722014080569043";
/* Manifesto - Wide Skyscraper */
google_ad_slot = "5584216083";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<h5>Configure Adsense</h5>
<p>Configuring Adsense is super easy.  Your Adsense username and your Adsense password are all you need.  Lets do it!</p>
<ol>
<li>Go to your WordPress blogs admin page</li>
<li>In the admin &#8220;Settings&#8221; menu go to the Advertwhirl entry<a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/admin-settings.png"><img class="alignnone size-thumbnail wp-image-584" title="admin-settings" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/admin-settings.png" alt="" width="92" height="150" /></a></li>
<li>Go to the Advertwhirl Settings tab<a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/adsense-settings.png"><img class="alignnone size-thumbnail wp-image-585" title="adsense-settings" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/adsense-settings-e1304447353619-150x150.png" alt="" width="150" height="150" /></a></li>
<li>Go to the &#8220;Adsense Settings&#8221; panel right below &#8220;General Settings&#8221; and fill in your username and password for Adsense and hit Update.
<ul>
<li>For security reasons your Adsense password will not be displayed and the field will remain blank if you come back to the settings page in the future.  Don&#8217;t worry it&#8217;s still there.</li>
</ul>
</li>
<li>You can leave the other settings alone for now, they won&#8217;t effect anything you are doing in this tutorial.</li>
</ol>
<p>That is it.  You can now access your Adsense ads directly in Advertwhirl, as well as your Adsense Statistics.</p>
<p><a title="==Add the Banner" name="add-the-banner"></a></p>
<h5>Add the Banner</h5>
<p>Adding your own banner is just as easy as setting Advertwhirl up to use Ad Sense.</p>
<ol>
<li>Go to the &#8220;Local Ads&#8221; tab next to the &#8220;Settings&#8221; tab on the left.</li>
<li>Click on the &#8220;Ad Source&#8221; Button<br />
<a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/ad-local-source.png"><img class="alignnone size-thumbnail wp-image-589" title="ad-local-source" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/ad-local-source-150x70.png" alt="" width="150" height="70" /></a></li>
<li>Fill in a name for your banner, this is what will appear in the dropdown list when you go to add it to your Allocation later.</li>
<li>Fill in any notes to yourself in the Description field.</li>
<li>Change the type from Ad Type from &#8220;URL&#8221; to &#8220;Inline Code&#8221;</li>
<li>Paste the html for your banner into the Inline Code textarea</li>
<li>Click &#8220;Add Source&#8221; to save your changes<br />
<a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/create-local-source.png"><img class="alignnone size-thumbnail wp-image-590" title="create-local-source" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/create-local-source-e1304448555429-150x96.png" alt="" width="150" height="96" /></a></li>
</ol>
<p><span style="font-size: small;"><span style="line-height: 24px;">The code I use in the the image consists of two parts, you can use to get you started if html is not your thing-diggity.</span></span></p>
<p>The first bit is only appropriate if you have Google Analytics setup for your site.  If so you can paste your GA code in place of mine or you could modify mine.  I am using Asynchronous Tracking.  If you don&#8217;t have Google Analytics setup for your site or you don&#8217;t want to track the banner you can go ahead and skip this part and go onto the next bit.</p>
<p>If you use the Asynchronous Tracking code below you need to replace UA-XXXXX-X with your web property id.  You can find it by logging into your Google Analytics Account, the web property id for each of your web profiles is listed to the right of the profiles name.</p>
<p>You will also need to replace &#8220;.YOURDOMAIN.COM&#8221; with the domain for your web profile.  The stuff to the left of the &#8220;www&#8221;, don&#8217;t forget the first &#8220;.&#8221;!</p>
<pre class="qoate-code">&lt;script type="text/javascript"&gt;
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setDomainName', '.YOURDOMAIN.COM']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setAllowHash', false]);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
&lt;/script&gt;
</pre>
<p>The second bit of code in my local ad is for the banner itself.  Again, if you have your own html you wish to use go ahead.  This is just here for those needing a hand getting started.</p>
<p>The following code will display a banner image and open a link when the visitor clicks the image.</p>
<p>Use this one if you want the link to open in the same window/tab as the one where the image is displayed.  This will take the visitor away from the post where the ad is displayed.</p>
<pre class="qoate-code">&lt;a href="LINK_WHERE_YOU_WANT_BANNER_TO_GO"&gt;&lt;img src="LINK_WHERE_THE_BANNER_IMAGE_LIVES" alt="" /&gt;&lt;/a&gt;</pre>
<p>Use this one if you want the link to open in a new window or tab and leave the visitor on the post where the ad is displayed.</p>
<pre class="qoate-code">&lt;a href="LINK_WHERE_YOU_WANT_BANNER_TO_GO" target="_blank"&gt;&lt;img src="LINK_WHERE_THE_BANNER_IMAGE_LIVES" alt="" /&gt;&lt;/a&gt;</pre>
<p>Which either one you choose to use there are two parts that need to be changed.  The instructions are exactly the same for both.</p>
<ol>
<li>Change &#8220;LINK_WHERE_YOU_WANT_BANNER_TO_GO&#8221; to the URL for the web page you wish to open when the banner is clicked.  In the example image I the banner for Advertwhirl open the plugin page for Advertwhirl (&#8220;http://wordpress.org/extend/plugins/advertwhirl/&#8221;)</li>
<li>Change &#8220;LINK_WHERE_THE_BANNER_IMAGE_LIVES&#8221; to the location of the banner image on your website, or whatever site it is located on.  In the example image the banner is located on the Mobile Sentience website(&#8220;http://www.mobilesentience.com/banners/advertwhirl-take-charge-468&#215;60.png&#8221;)</li>
</ol>
<p><span style="font-size: small;"><span style="line-height: 24px;">Don&#8217;t forget to leave the quotes.</span></span></p>
<p><span style="font-size: small;"><span style="line-height: 24px;">That&#8217;s it.  Time to create the campaign.</span></span></p>
<p><a title="==Create the Ad Campaign" name="create-the-ad-campaign"></a></p>
<h5>Create the Ad Campaign</h5>
<p>Adding your own banner is just as easy as setting Advertwhirl up to use Ad Sense.</p>
<ol>
<li>Go to the &#8220;Campaigns&#8221; tab next to the &#8220;Local Ads&#8221; tab on the left.</li>
<li>Click on the &#8220;Ad Campaign&#8221; Button</li>
<li>Give the Campaign a name.  This is how you will identify which Campaign you wish to use to fill an Ad Slot.The name shouldn&#8217;t have any spaces or special characters.</li>
<li>Put any notes which will help you remember what the purpose of this Campaign is in the Description field</li>
<li>There is already an Allocation created for you and all you will be needing is the one.</li>
<li>Fill in a Description for the Allocation if you want.  It&#8217;s just a way for you to keep track of what is what in complex configurations.  For this simple one it won&#8217;t really be helpful and you can leave it blank if you want.</li>
<li>Select the Adsense Ad unit that you wish to use</li>
<li>Click &#8220;Add Advertisement Source&#8221;</li>
<li>Select your banner ad.</li>
<li>Set your weights.  By default the weights are both 1, meaning every other Ad Slot will be filled either with an Adsense ad or your banner.  In the example photo I set a weight of 3 for the Adsense ad and 1 for the banner ad.  So 3 Ad Slots would be filled from the Adsense Ad Sourcce then 1 from the local banner Ad Source.  Another way to look at it is with a 1-1 weight 50% of the Ad Slots are filled from each source and with a 3-1 75% are filled with the Adsense Ad Source and 25% with the local banner Ad Source.</li>
<li>Click &#8220;Save Campaign&#8221; and you are done</li>
</ol>
<p><span style="font-size: small;"><span style="line-height: 24px;"><a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/create-campaign.png"><img class="alignnone size-thumbnail wp-image-600" title="create-campaign" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/create-campaign-e1304452557820-150x150.png" alt="" width="150" height="150" /></a><br />
</span></span></p>
<p><a title="==Displaying Your Ads" name="displaying-your-ads"></a></p>
<h5>Displaying Your Ads</h5>
<p>Everything is configured and done, but I suppose you&#8217;re interested in using what you setup.</p>
<p>You have a few options</p>
<p>If you just want to get going with as little hassle as possible you can put a shortcode in your posts where ever you want ads from your new Campaign to appear.  The shortcode is listed below, you will need to change YOUR_CAMPAIGN to the name you gave the Campaign in step 3 of <a href="#create-the-ad-campaign">creating the campaign</a>.</p>
<pre class="qoate-code">[advertwhirl campaign=YOUR_CAMPAIGN]</pre>
<p>If you don&#8217;t want to display the ads in your posts but would rather put them in your sidebar you can use the Advertwhirl widget.  Just add it to a sidebar or anywhere else in your theme where widgets are enabled and select the campaign you which it to display ads from.</p>
<p>Or, if you are adventurous you can read the more advanced tutorial &#8220;<a title="Inserting Ads in Posts" href="http://www.mobilesentience.com/2011/05/01/automatic-insertion-of-advertisements-in-wordpress-posts/">Automatic Insertion of Advertisements in WordPress Posts</a>&#8221; on how to modify your theme template files to automatically insert your ads from your new Campaign in your posts.</p>
<p><a title="Download Advertwhirl" name="download"></a></p>
<h5>Download Advertwhirl</h5>
<p><a href="http://www.mobilesentience.com/downloads/advertwhirl.1.0.13.zip" title="Downloaded 129 times">Download Advertwhirl</a></p>
<p><a title="References" name="reference"></a></p>
<h5>References</h5>
<p><a title="Advertwhirl plugin page - Mobile Sentience" href="http://www.mobilesentience.com/software/oss/advertwhirl/">Mobile Sentience Advertwhirl page</a><br />
<a title="Advertwhirl plugin page - WordPress Gallery" href="http://wordpress.org/extend/plugins/advertwhirl/">Advertwhirl in the WordPress gallery</a><br />
<a title="Install Instructions" href="http://www.mobilesentience.com/2011/04/24/reseller-branding-of-your-wordpress-site/">Tutorial with instructions for installing Advertwhirl Plugin</a><br />
<a title="Inserting Ads in Posts" href="http://www.mobilesentience.com/2011/05/01/automatic-insertion-of-advertisements-in-wordpress-posts/">Automatic Insertion of Advertisements in WordPress Posts</a><br />
<a title="Inserting Ads in Posts" href="http://www.mobilesentience.com/2011/05/02/campaigns-allocations-and-rules-oh-my/">Campaigns, Allocations and Rules oh my!</a>
<div class="tweetthis" style="text-align:left;">
<p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/share?url=http://www.mobilesentience.com/2011/05/03/simple-two-affiliate-ad-rotation/&text=custom+-+%5BCUSTOM%5D&via=MobileSentience&related=richardxthripp%2Ctweetthisplugin" title="Post to Twitter"><img class="nothumb" src="http://www.mobilesentience.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro2.png" alt="Post to Twitter" /></a></p>
</div>
</p></div>]]></content:encoded>
			<wfw:commentRss>http://www.mobilesentience.com/2011/05/03/simple-two-affiliate-ad-rotation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Campaigns, Allocations and Rules oh my!</title>
		<link>http://www.mobilesentience.com/2011/05/02/campaigns-allocations-and-rules-oh-my/</link>
		<comments>http://www.mobilesentience.com/2011/05/02/campaigns-allocations-and-rules-oh-my/#comments</comments>
		<pubDate>Tue, 03 May 2011 00:37:25 +0000</pubDate>
		<dc:creator>maxj</dc:creator>
				<category><![CDATA[Advertwhirl]]></category>
		<category><![CDATA[Manifesto]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.mobilesentience.com/?p=535</guid>
		<description><![CDATA[var _gaq = _gaq &#124;&#124; []; _gaq.push(['_setAccount', 'UA-22288663-1']); _gaq.push(['_trackPageview']); _gaq.push(['_setDomainName', '.mobilesentience.com']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_setAllowHash', false]); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s &#8230; <a class="more-link" href="http://www.mobilesentience.com/2011/05/02/campaigns-allocations-and-rules-oh-my/">More</a>]]></description>
			<content:encoded><![CDATA[<div><div style="width:160px;height:600px;float:left;padding: 9px 9px 9px 9px;"><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22288663-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setDomainName', '.mobilesentience.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setAllowHash', false]);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<a href="http://www.tkqlhce.com/click-5080261-10732388" target="_top"><img src="http://www.awltovhc.com/image-5080261-10732388" width="160" height="600" alt="3 months FREE Hosting with FREE Domain Name" border="0"/></a>
</div><p><a title="The Situation" name="situation"></a></p>
<h4>The Situation</h4>
<p>You&#8217;ve downloaded Advertwhirl from <a title="Advertwhirl plugin page - WordPress Gallery" href="http://wordpress.org/extend/plugins/advertwhirl/">WordPress plugin gallery</a> after reading its quite impressive description and being blown away by its screenshots.  You go to the settings and are at a loss as to where to even begin.</p>
<p>The vast list of what you can do with Advertwhirl also can make getting started a daunting task.  Most of the settings are fairly intuitive but the meat of Advertwhirl is Ad Campaigns which ironically enough is also the part that gives people the most trouble, ok maybe not so ironic.</p>
<p><a title="The Solution" name="solution"></a></p>
<h4>The Solution</h4>
<p>Read this tutorial.  Seriously, thats it.  It also wouldn&#8217;t hurt any to make a test campaign and a test post add an ad slot to the test post with a the short code and play around with the rules and allocations until you have a grasp of things.  If you still have any problems or usage questions you can ask them on the <a title="Advertwhirl Support Forum" href="http://www.mobilesentience.com/support/?mingleforumaction=viewforum&amp;f=12.0 ">Advertwhirl Support Forum</a>.</p>
<p><a title="The Nuts and Bolts" name="nutsandbolts"></a></p>
<h4>The Nuts and Bolts</h4>
<p><a title="==Terms" name="terms"></a></p><div style="width:160px;height:600px;float:right;padding: 9px 9px 9px 9px;"><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22288663-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setDomainName', '.mobilesentience.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setAllowHash', false]);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6722014080569043";
/* Manifesto - Wide Skyscraper */
google_ad_slot = "5584216083";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<h5>Terms</h5>
<p>Below are a few terms you should be familiar with before diving into the different sections.</p>
<ul>
<li>Ad Campaign &#8211; A collection of ads and rules which are assigned to ad spots.</li>
<li>Ad Slot &#8211; a spot in a blog page or post where an ad is displayed.</li>
<li>Ad Source &#8211; A source of ad units to fill ad slots with.  This could be a static local banner, Adsense ads, Groupon ads etc&#8230;</li>
<li>Ad Unit &#8211; The ad that fills an ad slot during a particular view of a page or post</li>
<li>Allocation &#8211; a collection of ad sources paired with weights which determine the ratio of how the ad sources are rotated to fill an ad slot with an ad unit.</li>
<li>Rules &#8211; rules determine which allocation is selected to fill an ad slot</li>
<li>RuleSets &#8211; Rules are grouped together in rule sets to form complex logic for selecting an allocation</li>
</ul>
<p><a title="==Understanding Campaigns" name="understanding-campaigns"></a></p>
<h5>Understanding Campaigns</h5>
<p>Campaigns are a collection of ad allocations which share an ad slot(or slots) in your blog.   An example would be a campaign for your Blog with allocations setup for your posts and for each of your guest bloggers.</p>
<p><a title="==Understanding Allocations" name="understanding-allocations"></a></p>
<h5>Understanding Allocations</h5>
<p>An allocation is composed of two parts, Rules and Ad Sources.</p>
<p>An allocations rules determine whether it matches a particular view of a blog post or page and whether or not that allocation should be used to determine which add will fill an Ad Slot for that view.</p>
<p>If an allocations Rules match and the allocation is used to fill an ad slot the allocations Ad Sources are used to fill the slot.  The Ad sources are rotated based on their weight.  The rules for rotation are fairly straightforward</p>
<ol>
<li>If twenty ads have been filled (across all campaigns) since the last sponsor ad has filled an ad slot the slot is filled with one of the sponsor ads.</li>
<li>If the first Ad Source has filled fewer ads then its weight it is used to fill the ad slot.</li>
<li>If the first Ad Source has filled its weight in ads check the next Ad Source as in step 2</li>
<li>If all the Ad Sources have filled their weight reset their counters to zero and fill the slot with an ad from the first ad source.</li>
</ol>
<p>See pretty simple.  There are a few notes to be aware of but they don&#8217;t really change the process.</p>
<ul>
<li>If there is only one Ad Source it will be used to fill every ad slot for that allocation, excepting of course the sponsor ads.</li>
<li>You can specify the weight for an Ad Source by weight or percent</li>
<li>If you mix weights and percents in a single Allocation the total of all percent weights must be less then 100% to allow for the Ad Sources with non-percent weights</li>
<li>If you use only percentage weights in an Allocation then the total of weights must be 100% no more, no less. 100% shall be the total weight, and the number of the weighting shall be 100%. 101% shalt not be the weight, neither 99%, excepting that thou then proceed to 100%.  105% shall be right out.</li>
<li><strong>MATH WARNING</strong> scary I know.  If you mix weights and percentage weights the weight used in the above rotation algorithm is determined by totaling the percentage weights and totaling the straight weights.  The calculated total weight of all the Ad Sources is the total of the straight weights divided by  1 &#8211; (the total of the percentage weights divided by 100) .  The calculated weight for any Ad Source with a percentage weight is the calculated total weight multiplied by the Ad Sources percentage weight divided by 100.
<ul>
<li><em>Example:</em> you have an allocation with 3 Ad Sources.  The first has a weight of 2, the second a weight of 5 and the third a weight of 30%.  The third Ad Source will have its ads rotated using a weight of 3.  <strong>MORE MATH</strong> <em>2 + 5 / (1 &#8211; .3) = 7 / .7 = 10.  10 * .3 = 3</em></li>
<li>The actual math used is a little come complicated to keep the calculated weights for Ad Sources with percentage weights accurate(odd percents can lead to a weight of 2.7 for instance and how exactly you fill .7 of an Ad Slot is beyond me) by adjusting the order of magnitude for all weights to eliminate non-repeating decimal weights and then factoring the weights so the first Ad Source doesn&#8217;t have to fill 1000 slots before the second Ad Source is used.  I won&#8217;t go into the exact math though as the Euclidean algorithm for finding the Greatest Common Factor is beyond the scope of this tutorial.</li>
</ul>
</li>
</ul>
<p><a title="==Understanding Rules" name="understanding-rules"></a></p>
<h5>Understanding Rules</h5>
<p>Rules are simple and powerful, just not 100% self explanatory.  An Allocation can have zero or more rules grouped together in RuleSets.  An Allocations rules determine whether or not an the Allocation is used to fill an Ad Slot or not.  When an Advertwhirl tries to fill an Ad Slot the Allocations for the campaign assigned to that Ad Slot are checked to see if the Allocation matches.  Starting with the Allocation 1 and working its way down.  Once an Allocation matches it is used to fill the Ad Slot and no further checking is performed.  The method used to determine if an Allocation should fill an Ad Slot or not is below.</p>
<ol>
<li>If the Allocation has no RuleSets it matches.  (To insure that a campaign always fills its Ad Slots ad an Allocation at the end of all the others with no rules.  If nothing else matches it will)</li>
<li>If the Allocation has 1 or more RuleSets check each RuleSet to see if the RuleSet matches.</li>
<li>A RuleSet matches if all if its Rules match</li>
<li>If any RuleSet matches the Allocation matches and no further checking is performed.</li>
<li>If no RuleSets match the Allocation doesn&#8217;t match and Advertwhirl moves on to checking the next Allocation</li>
<li>If no Allocations match Advertwhirl checks to see if you have &#8220;fill empty ad slots&#8221; checked in settings and fills the slot with your default ad source</li>
<li>if &#8220;fill empty ad slots&#8221; isn&#8217;t enabled or you don&#8217;t have a default ad source defined the Ad Slot remains empty (in other words no Ad Unit is displayed there for that view)</li>
</ol>
<p>The simplified version</p>
<ol>
<li>An Allocation matches if <strong>ANY</strong> of its RuleSets match</li>
<li>A RuleSet matches if <strong>ALL</strong> of its rules match</li>
</ol>
<p>For those of you with programming experience or math logic experience the RuleSets are compared with the equivalent of an OR and the rules in each as with an AND.</p>
<p>Here are the Rules</p>
<p><a title="===Author Rule" name="author-rule"></a></p>
<h6>Author Rule</h6>
<p>The author rule lets you select an allocation based on the author of post or page.  If the post or page containing the Ad Slot needing to be filled was written by the selected author the rule matches.  If not, well it doesn&#8217;t.</p>
<p>&nbsp;</p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/author_rule.png"><img class="alignnone size-thumbnail wp-image-554" title="author_rule" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/author_rule-e1304368710835-150x15.png" alt="" width="150" height="15" /></a></p>
<p><a title="===Post Type Rule" name="posttype-rule"></a></p>
<h6>Post Type Rule</h6>
<p>The post type rule lets you select an allocation based on the type of the post/page containing the Ad Slot.  If you want an Allocation to only be displayed on posts add a Post Type rule set to Post.  Want to only display the Allocation to be fill slots on page set the rule to Page.</p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/posttype_rule-e1304369194526.png"><img class="alignnone size-thumbnail wp-image-557" title="posttype_rule" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/posttype_rule-e1304369987481-150x15.png" alt="" width="150" height="15" /></a></p>
<p><a title="===Category Rule" name="category-rule"></a></p>
<h6>Category Rule</h6>
<p>The category rule matches post/page categories in a little more advanced way than the author and post type rules.  The Allocation will fill the ad slot if the post <em>&#8220;is a&#8221;</em> or <em>&#8220;is not a&#8221;</em> category.  If you select <em>&#8220;is a&#8221;</em> the Allocation matches if the post has the selected category set or child, grandchild category set.  The drop down to select category shows the relationship between categories.  Child categories are below and indent from their parent.  In other words the indented categories are considered to be <em>&#8220;is a&#8221;</em> of their parent/grandparent categories.  If you select <em>&#8220;is not a&#8221;</em> it works the same only the Allocation will fill a post if it doesn&#8217;t have the category or any of its descendants set.</p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/category_rule.png"><img class="alignnone size-thumbnail wp-image-561" title="category_rule" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/category_rule-e1304376653646-150x15.png" alt="" width="150" height="15" /></a></p>
<p><a title="===Tag Rule" name="tag-rule"></a></p>
<h6>Tag Rule</h6>
<p>The tag rule works just like the category rule, only since tags don&#8217;t have parent/child hierarchies <em>&#8220;is a&#8221;</em> matches if the post has the tag set and <em>&#8220;is not a&#8221;</em> matches if the post does not have the tag set.</p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/tag_rule.png"><img class="alignnone size-thumbnail wp-image-562" title="tag_rule" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/tag_rule-e1304376958630-150x15.png" alt="" width="150" height="15" /></a></p>
<p><a title="===Location Rule" name="location-rule"></a></p>
<h6>Location Rule</h6>
<p>The location rule matches the visitors location.  To use the location rule you need a free api key from the IP Info Database. You can <a href="http://www.ipinfodb.com/register.php" target="_blank">request your key here</a> it is a simple form and they will email the key in a few minutes time.  Once you have the key enter it in the &#8220;IP Info Database Key&#8221; field in General Settings.</p>
<p>Location rules have 3 settings.  The first sets which part of the visitor&#8217;s location you are trying to match.  It is possible to match the visitor&#8217;s Country, State/Region, City or Postal Code.</p>
<p>The next setting is the type of match you want to perform.  The types of matches are <em>&#8220;is&#8221;</em>, <em>&#8220;is not&#8221;</em>,<em> &#8220;matches regular expression&#8221;</em>, <em>&#8220;does not match regular expression&#8221;</em>.</p>
<p>The third field is the value you are trying to match.</p>
<p>If you made the following location rule <em>&#8220;Country&#8221; &#8220;is&#8221; &#8220;United States&#8221;</em> the rule would match if the visitor is located in the United States otherwise it would not match.</p>
<p>If you made the following location rule <em>&#8220;City&#8221; &#8220;is not&#8221; &#8220;Denver&#8221;</em> the rule would match if the visitor is not located in the Denver otherwise it would not match.</p>
<p>Regular expressions are an advanced way of matching a pattern, such as <em>&#8220;802[0-9][0-9]&#8220;</em> is a regular expression that would match a 5 digit number(looks like a postal code, doesn&#8217;t it?) that begins with 802 and ends with any two digits.</p>
<p>Regular expressions are a complex and advanced subject the surface of which can&#8217;t even be scratched here.  There are a ton of source that our good friend <a title="Friendly Mr Google" href="http://www.google.com">Mr Google</a> can point you to.  Or if there is a particular pattern you want to match for one of your rules you can ask on the <a title="Advertwhirl Support Forum" href="http://www.mobilesentience.com/support/?mingleforumaction=viewforum&amp;f=12.0">Advertwhirl support forum</a>.</p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/location_rule.png"><img class="alignnone size-thumbnail wp-image-564" title="location_rule" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/location_rule-e1304378825340-150x16.png" alt="" width="150" height="16" /></a></p>
<p><a title="===Link Argument Rule" name="link-argument-rule"></a></p>
<h6>Link Argument Rule</h6>
<p>The link argument rule matches get arguments encoded in a URL.  It is used mainly for external ads to allow you to differentiate external ad slots.  Get arguments are the part of the link that follow the page.  The page and get arguments are separated by a question mark.  The following example link has 2 get arguments</p>
<p><em>http://www.yourdomain.com/advertwhirl/your_campaign?argument1=some_value&amp;argument2=another_value</em></p>
<p>the two arguments are <em>&#8220;argument1&#8243;</em> and <em>&#8220;argument2&#8243;</em> and have the values <em>&#8220;some_value&#8221;</em> and <em>&#8220;another_value&#8221;</em>.</p>
<p>Like the location rule the link argument rule has three parts.  The name of the get argument you want to test, the type of test and the value you want to test against.</p>
<p>the test types are <em>&#8220;is equal to&#8221;</em>, <em>&#8220;is not equal to&#8221;</em>, <em>&#8220;is greater than&#8221;</em>, <em>&#8220;is less than&#8221;</em>, <em>&#8220;is greater than or equal to&#8221;</em>, <em>&#8220;is less than or equal to&#8221;</em>,  <em>&#8220;matches regular expression&#8221;</em>, <em>&#8220;doesn&#8217;t match regular expression&#8221;</em></p>
<p>All of the equality tests (everything but the 2 regular expression tests) do a normal numerical compare if the link argument contains a numeric value.  ie.. 1 is less than 5, 4 is greater than 3 etc&#8230;</p>
<p>If the link argument does not contain a numeric value the equality tests do an alphabetic test.  Greater than means the value comes the argument value comes alphabetically after the test value.  <em>&#8220;apple&#8221; &#8220;is less than&#8221; &#8220;banana&#8221;</em>, &#8220;dog&#8221; <em>&#8220;is greater than&#8221; &#8220;cat&#8221;</em> (and not just because dogs are awesome and cats are snobby little creeps).</p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/link_arguments.png"><img class="alignnone size-thumbnail wp-image-566" title="link_arguments" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/link_arguments-e1304381345632-150x15.png" alt="" width="150" height="15" /></a></p>
<p><a title="===Virtual Path Rule" name="virtual-path-rule"></a></p>
<h6>Virtual Path Rule</h6>
<p>The virtual path rule is only enabled if you have the <a title="Virtual Theme WordPress Plugin" href="http://www.mobilesentience.com/software/oss/virtual-theme/">Virtual Theme</a> plugin installed.  The virtual path rule has 2 settings, the test type and the test value.  The test types are <em>&#8220;is&#8221;</em>, <em>&#8220;is not&#8221;</em>, <em>&#8220;matches regular expression&#8221;</em>, <em>&#8220;does not match regular expression&#8221;</em>.</p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/virtual_path_rule.png"><img class="alignnone size-thumbnail wp-image-568" title="virtual_path_rule" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/virtual_path_rule-e1304382276797-150x15.png" alt="" width="150" height="15" /></a></p>
<p><a title="===Custom Variable Rule" name="custom-variable-rule"></a></p>
<h6>Custom Variable Rule</h6>
<p>The custom variable rule is only enabled if you have the <a title="Virtual Theme WordPress Plugin" href="http://www.mobilesentience.com/software/oss/virtual-theme/">Virtual Theme</a> plugin installed and works exactly like the link argument rule but instead of matching get arguments it matches <a title="Virtual Theme WordPress Plugin" href="http://www.mobilesentience.com/software/oss/virtual-theme/">Virtual Theme</a> custom variables.</p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/virtual_path_variable_rule.png"><img class="alignnone size-thumbnail wp-image-569" title="virtual_path_variable_rule" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/virtual_path_variable_rule-e1304382467934-150x15.png" alt="" width="150" height="15" /></a></p>
<p><a title="Download Advertwhirl" name="download"></a></p>
<h5>Download Advertwhirl</h5>
<p><a href="http://www.mobilesentience.com/downloads/advertwhirl.1.0.13.zip" title="Downloaded 129 times">Download Advertwhirl</a></p>
<p><a title="References" name="reference"></a></p>
<h5>References</h5>
<p><a title="Advertwhirl plugin page - Mobile Sentience" href="http://www.mobilesentience.com/software/oss/advertwhirl/">Mobile Sentience Advertwhirl page</a><br />
<a title="Advertwhirl plugin page - WordPress Gallery" href="http://wordpress.org/extend/plugins/advertwhirl/">Advertwhirl in the WordPress gallery</a><br />
<a title="Install Instructions" href="http://www.mobilesentience.com/2011/04/24/reseller-branding-of-your-wordpress-site/">Tutorial with instructions for installing Advertwhirl Plugin</a>
<div class="tweetthis" style="text-align:left;">
<p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/share?url=http://www.mobilesentience.com/2011/05/02/campaigns-allocations-and-rules-oh-my/&text=custom+-+%5BCUSTOM%5D&via=MobileSentience&related=richardxthripp%2Ctweetthisplugin" title="Post to Twitter"><img class="nothumb" src="http://www.mobilesentience.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro2.png" alt="Post to Twitter" /></a></p>
</div>
</p></div>]]></content:encoded>
			<wfw:commentRss>http://www.mobilesentience.com/2011/05/02/campaigns-allocations-and-rules-oh-my/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Automatic Insertion of Advertisements in WordPress Posts</title>
		<link>http://www.mobilesentience.com/2011/05/01/automatic-insertion-of-advertisements-in-wordpress-posts/</link>
		<comments>http://www.mobilesentience.com/2011/05/01/automatic-insertion-of-advertisements-in-wordpress-posts/#comments</comments>
		<pubDate>Mon, 02 May 2011 01:16:32 +0000</pubDate>
		<dc:creator>maxj</dc:creator>
				<category><![CDATA[Advertwhirl]]></category>
		<category><![CDATA[Manifesto]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.mobilesentience.com/?p=496</guid>
		<description><![CDATA[var _gaq = _gaq &#124;&#124; []; _gaq.push(['_setAccount', 'UA-22288663-1']); _gaq.push(['_trackPageview']); _gaq.push(['_setDomainName', '.mobilesentience.com']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_setAllowHash', false]); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s &#8230; <a class="more-link" href="http://www.mobilesentience.com/2011/05/01/automatic-insertion-of-advertisements-in-wordpress-posts/">More</a>]]></description>
			<content:encoded><![CDATA[<div><div style="width:160px;height:600px;float:left;padding: 9px 9px 9px 9px;"><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22288663-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setDomainName', '.mobilesentience.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setAllowHash', false]);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<a href="http://www.tkqlhce.com/click-5080261-10732388" target="_top"><img src="http://www.awltovhc.com/image-5080261-10732388" width="160" height="600" alt="3 months FREE Hosting with FREE Domain Name" border="0"/></a>
</div><p><a title="The Situation" name="situation"></a></p>
<h4>The Situation</h4>
<p>You&#8217;ve been adding advertisements to your blog posts with a short code using the built-in editor ie&#8230; <strong><em></em></strong>.  It was a simple solution to get started and didn&#8217;t require any editing of your theme templates.  But, you&#8217;ve decided the best way to monetize your blog is to put ads in every post and remembering to insert the short code sometimes just doesn&#8217;t happen.</p>
<p>If you&#8217;re having problems getting your first campaign setup check out this primer ona<a title="Getting Started with Advertwhirl" href="http://www.mobilesentience.com/2011/05/02/campaigns-allocations-and-rules-oh-my/">Campaigns, Allocations and Rules</a>.</p>
<p><a title="The Solution" name="solution"></a></p>
<h4>The Solution</h4>
<p>Modify your theme&#8217;s single.php template file to easily insert an ad campaigns ads automatically in each post.  Use allocation rules to determine which ads get inserted into which post while insuring that every post gets an appropriate ad and maintaining the consistency of your advertising campaign.</p>
<p><a title="The Nuts and Bolts" name="nutsandbolts"></a></p>
<h4>The Nuts and Bolts</h4>
<p>While the modification of a themes template files isn&#8217;t for the faint of heart and is generally reserved for advanced users inserting and Advertwhirl ad into your post automatically is a pretty straightforward endeavor that can be accomplished by most anyone if they only have a little confidence.</p><div style="width:160px;height:600px;float:right;padding: 9px 9px 9px 9px;"><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22288663-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setDomainName', '.mobilesentience.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setAllowHash', false]);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6722014080569043";
/* Manifesto - Wide Skyscraper */
google_ad_slot = "5584216083";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p><a title="==Using the Built-in Theme Editor" name="using-the-theme-editor"></a></p>
<h5>Using the Built-in Theme Editor</h5>
<p>WordPress has a theme editor that lets you edit your themes template files right through your blogs admin control panel.  To get to the theme editor go to the <strong><em>&#8220;Appearance&#8221;</em></strong> menu and select <em><strong>&#8220;Editor&#8221;</strong></em></p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/appearance-edit-theme-menu.png"><img class="alignnone size-thumbnail wp-image-504" title="appearance-edit-theme-menu" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/appearance-edit-theme-menu-150x150.png" alt="" width="150" height="150" /></a></p>
<p>Once you have the theme editor open go to the upper right hand corner and select the theme you want to edit.  This should match the theme you are using for your WordPress site.  For this demo we will be editing the default &#8220;Twenty Ten&#8221; theme.</p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/select-theme.png"><img class="alignnone size-thumbnail wp-image-506" title="select-theme" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/select-theme-150x150.png" alt="" width="150" height="150" /></a></p>
<p>Right below where you selected your theme you will find a list of templates for the theme.  Click on single.php, this is the template file for single posts.</p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/05/select-template.png"><img class="alignnone size-thumbnail wp-image-507" title="select-template" src="http://www.mobilesentience.com/wp-content/uploads/2011/05/select-template.png" alt="" width="102" height="150" /></a></p>
<p><a title="==Find the_content()" name="find-the-content"></a></p>
<h5>Find the_content()</h5>
<p>Time to put on your brave face and do a little poking around.  You are looking for a line that reads<strong><em> &#8220;the_content()&#8221;</em></strong> in many themes you will find it directly in single.php.  In some, such as &#8220;Twenty Ten&#8221; single.php will load another template part that contains <strong><em>&#8220;the_content&#8221;</em></strong>.</p>
<p>Here is the line you are looking for</p>
<pre class="qoate-code">&lt;?php the_content(); ?&gt;</pre>
<p>If your template for posts is loading a template part which contains the_content you will find a line that has <strong><em>&#8220;get_template_part(&#8216;some_value&#8217;, &#8216;some_other_value&#8217;);&#8221;</em></strong> and you won&#8217;t find a line with <em><strong>&#8220;the_content();&#8221;</strong></em>.  If single.php does have a line that says <strong><em>&#8220;the_content();&#8221;</em></strong> and also <strong><em>&#8220;get_template_part(&#8216;some_value&#8217;, &#8216;some_other_value&#8217;);&#8221;</em></strong> don&#8217;t worry about the get_template_part line, you can just ignore it.  If you don&#8217;t find <strong><em>&#8220;the_content()&#8221;</em></strong> you will want to open the template part.  The template part you want to open will be composed of the two parts in get_template_part.</p>
<pre class="qoate-code"> &lt;?php get_template_part('loop', 'single') ?&gt;</pre>
<p>In the &#8220;Twenty Ten&#8221; theme single.php loads a template part named <strong><em>loop-single.php</em></strong></p>
<p>If your theme has <strong><em>&#8220;the_content();&#8221;</em></strong> you are ready to go, if not open the template part.  In the case of the &#8220;Twenty Ten&#8221; theme you want to open loop-single.php.</p>
<p>Once you find the content you can insert the ad campaign at the beginning or end of the post content.  Or if you are a particularly brave soul you can insert the add in the middle of the content.</p>
<p><a title="==Beginners method" name="beginners-method"></a></p>
<h5>Insert advertisement before or after post content &#8211; Beginners method</h5>
<p>The easy method is to insert the <strong><em>&#8220;advertwhirl_print_ad();&#8221;</em></strong> function before or after <strong><em>&#8220;the_content();&#8221;</em></strong> The example below will add an advertisement from the <strong><em>&#8220;Your_Campaign&#8221;</em></strong> ad campaign before and after the post content.  You will want to change <strong><em>&#8220;Your_Campaign&#8221;</em></strong> to match the name of your campaign.  If you don&#8217;t want to immediatly print the ad to the visitors browser but need to do something more with it first you can save the ad to a string with <strong><em>&#8220;advertwhirl_get_ad()&#8221;</em></strong><br/></p>
<pre class="qoate-code">&lt;?php

advertwhirl_print_ad('Your_Campaign');  // This advertisement will be before your post content

the_content();

advertwhirl_print_ad('Your_Campaign');  // This ad will be after your post content

?&gt;</pre>
<p><br/></p>
<pre class="qoate-code">&lt;?php

$ad = advertwhirl_get_ad('Your_Campaign');  // The content of the advertisement will be saved to $ad as a string

$ad = str_replace($what_you_are_looking_for, $what_you_want_it_to_be, $ad); // Change the ad content somehow, prehaps customize it for the visitor

$echo $ad;  // This will actually place the customized ad

the_content();

echo advertwhirl_get_ad("Your_Campaign"); //  This is exactly the same as advertwhirl_print_ad('Your_Campaign');  and placed the ad after your post content

?&gt;</pre>
<p><br/></p>
<p><a title="==Advanced method" name="advanced-method"></a></p>
<h5>Insert advertisement in the middle of your post content &#8211; Advanced method</h5>
<p>The advanced method really isn&#8217;t so difficult, it just has a few more steps then the beginners method.  The code that Mobile Sentience is using to insert ads in the middle of its posts is a variation of the <a title="Reference Post" href="http://zedomax.biz/blog/make-money-online/wordpress-hack-how-to-insert-ads-in-the-middle-of-your-content/">code found in this excellent post at zedomax.biz</a>.</p>
<p>The first step is to make sure you place all the code between the &lt;?php and ?&gt; tags that are surrounding <strong><em>the_content();</em></strong>.  If your theme has them all on one line break them up now, also comment out <strong><em>the_comment();</em></strong> command while you are at it by putting <strong><em>//</em></strong> before it.  Make this</p>
<pre class="qoate-code">&lt;?php the_content(); ?&gt;</pre>
<p>look like this</p>
<pre class="qoate-code">&lt;?php
//the_content();
?&gt;</pre>
<p>Now add the code to insert your advertisement in the middle of the post content.</p>
<p>This is what you want to end up with</p>
<pre class="qoate-code">&lt;?php
//the_content();
$adsEvery = 4;      // How many blocks between each of your ads.  The smaller the number the more ads, the larger the fewer
$maxAds = 2;       // The maximum number of ads to put in a post.  There is no maximum if $maxAds is -1

$content = apply_filters('the_content', $post-&gt;post_content);  //get the post content store in $content
$paragraphs = explode("&lt;/p&gt;", $content);  //Separate the content into blocks
echo '&lt;div&gt;';

$blockCount = 0;    //this is count for number of blocks
$adCount = 0;      //this is a variable to keep track of how many ads have been put in the post
foreach($paragraphs as $paragraph) {
if(preg_match('/&lt;p&gt;/',$paragraph) == 0 &amp;&amp; $blockCount % $adsEvery == 0 &amp;&amp; ($adCount &lt; $maxAds || $maxAds == -1)){
$float = $adCount % 2 == 0?"float:left":"float:right";
echo ' &lt;div style="width: 300px; height: 250px; padding: 9px 9px 9px 9px;"&gt;';
advertwhirl_print_ad('Manifesto');  // This is what places the Advertwhirl advertisement
echo '&lt;/div&gt;';
$adCount++;
}
echo $paragraph;  //print the block
echo '&lt;/div&gt;';
$blockCount++;
}
echo '&lt;/div&gt;';
?&gt;</pre>
<p>Thats all it takes.  If you want the two lines immediately following <strong><em>//the_content();</em></strong> can be adjusted to configure how your ads appear.</p>
<p><strong><em>&#8220;$adsEvery&#8221;</em></strong> controls how many paragraphs of content are between each ad.  The default is to show one ad every 4 paragraphs.</p>
<pre class="qoate-code">$adsEvery = 4;</pre>
<p><strong><em>&#8220;$maxAds&#8221;</em></strong> lets you limit how many ads will be displayed in anyone post so you don&#8217;t overwhelm your readers.  Ads lose potency the further down the post they appear and to many can annoy readers.  The default is to show a maximum of 2 ads.  If you don&#8217;t want to limit the number of ads that will be shown you can set $maxAds to -1.</p>
<pre class="qoate-code">$maxAds = 2;</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a title="Download Advertwhirl" name="download"></a></p>
<h5>Download Advertwhirl</h5>
<p><a href="http://www.mobilesentience.com/downloads/advertwhirl.1.0.13.zip" title="Downloaded 129 times">Download Advertwhirl</a></p>
<p><a title="References" name="reference"></a></p>
<h5>References</h5>
<p><a title="Advertwhirl plugin page - Mobile Sentience" href="http://www.mobilesentience.com/software/oss/advertwhirl/">Mobile Sentience Advertwhirl page</a><br />
<a title="Advertwhirl plugin page - WordPress Gallery" href="http://wordpress.org/extend/plugins/advertwhirl/">Advertwhirl in the WordPress gallery</a><br />
<a title="Install Instructions" href="http://www.mobilesentience.com/2011/04/24/reseller-branding-of-your-wordpress-site/">Tutorial with instructions for installing Advertwhirl Plugin</a><br />
<a title="WordPress Hack – How to Insert Ads in the Middle of Your Content!" href="http://zedomax.biz/blog/make-money-online/wordpress-hack-how-to-insert-ads-in-the-middle-of-your-content/">Original advanced method code</a>
<div class="tweetthis" style="text-align:left;">
<p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/share?url=http://www.mobilesentience.com/2011/05/01/automatic-insertion-of-advertisements-in-wordpress-posts/&text=custom+-+Automatically+Insertion+%23Advertisements+in+%40WordPress+Posts+-+http%3A%2F%2Fwww.mobilese...&via=MobileSentience&related=richardxthripp%2Ctweetthisplugin" title="Post to Twitter"><img class="nothumb" src="http://www.mobilesentience.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro2.png" alt="Post to Twitter" /></a></p>
</div>
</p></div>]]></content:encoded>
			<wfw:commentRss>http://www.mobilesentience.com/2011/05/01/automatic-insertion-of-advertisements-in-wordpress-posts/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Reseller branding of your WordPress site</title>
		<link>http://www.mobilesentience.com/2011/04/24/reseller-branding-of-your-wordpress-site/</link>
		<comments>http://www.mobilesentience.com/2011/04/24/reseller-branding-of-your-wordpress-site/#comments</comments>
		<pubDate>Mon, 25 Apr 2011 00:50:56 +0000</pubDate>
		<dc:creator>maxj</dc:creator>
				<category><![CDATA[Manifesto]]></category>

		<guid isPermaLink="false">http://www.mobilesentience.com/?p=458</guid>
		<description><![CDATA[var _gaq = _gaq &#124;&#124; []; _gaq.push(['_setAccount', 'UA-22288663-1']); _gaq.push(['_trackPageview']); _gaq.push(['_setDomainName', '.mobilesentience.com']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_setAllowHash', false]); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s &#8230; <a class="more-link" href="http://www.mobilesentience.com/2011/04/24/reseller-branding-of-your-wordpress-site/">More</a>]]></description>
			<content:encoded><![CDATA[<div><div style="width:160px;height:600px;float:left;padding: 9px 9px 9px 9px;"><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22288663-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setDomainName', '.mobilesentience.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setAllowHash', false]);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<a href="http://www.tkqlhce.com/click-5080261-10732388" target="_top"><img src="http://www.awltovhc.com/image-5080261-10732388" width="160" height="600" alt="3 months FREE Hosting with FREE Domain Name" border="0"/></a>
</div><p>This is the first in a series of short tutorials designed to help you turn your WordPress blog into a money making monster.  These tutorials will be more of a nuts and bolts of how to use Advertwhirl(its complex I know) and won&#8217;t impart any specific marketing how-to.  Like a good accountant what they lack in charm they&#8217;ll make up for in increased ad revenue.<br />
<a title="The Situation" name="situation"></a><br />
<h4>The Situation</h4>
<p>(I just know I am now going to have a few Guido&#8217;s or *shudder* a Snooki show up on my front lawn.)</p>
<p>You&#8217;ve got something to sell and you heard you needed a blog.  After burning the midnight oil for months(tell me about it), tweaking, refining and finalizing your blog it is finally done and ready for the sales folks to start pimping.  Only your resellers want a cut of any ad revenue.  Oh is there anyway their lead&#8217;s can see a different logo?</p>
<p><a title="The Solution" name="solution"></a><br />
<h4>The Solution</h4>
<p>A combination of Mobile Sentience&#8217;s Virtual Theme plugin for WordPress and our Advertwhirl advertising campaign manager for WordPress is the perfect solution.  Mobile Sentience&#8217;s Virtual Theme plugin for WordPress will do the heavy lifting for the reseller branding, while Mobile Sentiences Advertwhirl ad manager for WordPress offers highly configurable ad rotation/sharing that can accommodate even the most complex revenue sharing agreements.</p>
<p><a title="The Nuts and Bolts" name="nutsandbolts"></a><br />
<h4>The Nuts and Bolts</h4>
<p><a title="=Setup affiliate branding" name="brand-the-site"></a>First things first re-branding is going to require you install the Virtual Theme plugin for WordPress if you haven&#8217;t already.  There are three ways to install the Virtual Theme plugin for WordPress.  This tutorial will only cover the WordPress preferred method, which also happens to be the easiest.  You can read the <a title="Full Virtual Theme Installation Instructions" href="http://wordpress.org/extend/plugins/virtual-theme/installation/" target="_blank">Virtual Theme plugin for WordPress installation instructions</a> if you&#8217;re interested in the other two methods.<br />
<a title="==Installing Virtual Theme" name="installing-virtual-theme"></a><br />
<h5>Installing Virtual Theme</h5>
<p>1. Login to your WordPress blog as an admin</p>
<p>2. Go to the “Plugins” menu and click “Add New”</p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/04/plugins-menu.png"><img class="alignleft" title="plugins-menu" src="http://www.mobilesentience.com/wp-content/uploads/2011/04/plugins-menu.png" alt="" width="145" height="98" /></a></p>
<p>&nbsp;</p><div style="width:160px;height:600px;float:right;padding: 9px 9px 9px 9px;"><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22288663-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setDomainName', '.mobilesentience.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setAllowHash', false]);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6722014080569043";
/* Manifesto - Wide Skyscraper */
google_ad_slot = "5584216083";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p style="text-align: left;">3. Enter “Virtual Theme” in the search terms and click “Search”</p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/04/install-plugins-virtual-theme.png"><img class="alignnone size-thumbnail wp-image-480" title="install-plugins-virtual-theme" src="http://www.mobilesentience.com/wp-content/uploads/2011/04/install-plugins-virtual-theme-150x150.png" alt="" width="150" height="150" /></a></p>
<p>4. Click “Install Now”</p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/04/install-now-virtual-theme.png"><img class="alignnone size-thumbnail wp-image-481" title="install-now-virtual-theme" src="http://www.mobilesentience.com/wp-content/uploads/2011/04/install-now-virtual-theme-150x115.png" alt="" width="150" height="115" /></a></p>
<p>5. When prompted “Are you sure you want to install this plugin” click “Ok”</p>
<p>6. Fill out your “Connection Information” and click “Proceed” (if you&#8217;ve installed a plugin before this is likely already filled out for you)</p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/04/ftp-virtual-theme.png"><img class="alignnone size-thumbnail wp-image-482" title="ftp-virtual-theme" src="http://www.mobilesentience.com/wp-content/uploads/2011/04/ftp-virtual-theme-150x150.png" alt="" width="150" height="150" /></a></p>
<p>7. When WordPress is finished installing the plugin click “Activate”</p>
<p><a href="http://www.mobilesentience.com/wp-content/uploads/2011/04/activate-virtual-theme-e1304024814372.png"><img class="alignnone size-thumbnail wp-image-483" title="activate-virtual-theme" src="http://www.mobilesentience.com/wp-content/uploads/2011/04/activate-virtual-theme-e1304025677908-150x70.png" alt="" width="150" height="70" /></a></p>
<p>&nbsp;</p>
<p>Thats it.  Pretty standard plugin install. Now onto setting up Virtual Theme for your affiliate branding<br />
<a title="==Configure Virtual Theme" name="configure-virtual-theme"></a><br />
<h5>Configuring Virtual Theme</h5>
<p><a title="=Setup the affiliate ad campagin" name="setup-ad-campaign"></a><br />
<h4>Setup Your Ad Campaign</h4>
<p><a title="==Install Advertwhirl" name="install-advertwhirl"></a><br />
<h5>Install Advertwhirl</h5>
<p>Pretty much the same process as Virtual theme.  Go ahead and <a href="#configure-advertwhirl">skip the walk through</a> for it if want</p>
<p><a title="==Configure Advertwhirl" name="configure-advertwhirl"></a><br />
<h5>Configure your Advertwhirl Ad Campaign</h5>
<p><a title="=Update your theme" name="setup-theme"></a><br />
<h4>Setup Your Theme</h4>
<p>Setup your theme to use new branding config and ad campaign
<div class="tweetthis" style="text-align:left;">
<p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/share?url=http://www.mobilesentience.com/2011/04/24/reseller-branding-of-your-wordpress-site/&text=custom+-+%5BCUSTOM%5D&via=MobileSentience&related=richardxthripp%2Ctweetthisplugin" title="Post to Twitter"><img class="nothumb" src="http://www.mobilesentience.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro2.png" alt="Post to Twitter" /></a></p>
</div>
</p></div>]]></content:encoded>
			<wfw:commentRss>http://www.mobilesentience.com/2011/04/24/reseller-branding-of-your-wordpress-site/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
