<?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>Widgetbox Knowledgebase &#187; Including Ads</title>
	<atom:link href="http://docs.widgetbox.com/category/developing-widgets/including-ads/feed/" rel="self" type="application/rss+xml" />
	<link>http://docs.widgetbox.com</link>
	<description></description>
	<lastBuildDate>Sat, 14 Nov 2009 18:31:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ad Compliant Guidelines</title>
		<link>http://docs.widgetbox.com/developing-widgets/including-ads/ad-compliant-guidelines/</link>
		<comments>http://docs.widgetbox.com/developing-widgets/including-ads/ad-compliant-guidelines/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 17:51:22 +0000</pubDate>
		<dc:creator>Team Widgetbox</dc:creator>
				<category><![CDATA[Including Ads]]></category>

		<guid isPermaLink="false">http://docs.widgetbox.com/?p=724</guid>
		<description><![CDATA[Introduction
Widgetbox requires widgets that are registered in our gallery be Ad Compliant. The Ad Compliant program allows Widgetbox to display ads on widgets in circumstances where ads are allowed or should be displayed. Unfortunately, defining what is or isn’t an ad is not black and white. Below you will find the Widgetbox guidelines that that [...]]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>Widgetbox requires widgets that are registered in our gallery be Ad Compliant. The Ad Compliant program allows Widgetbox to display ads on widgets in circumstances where ads are allowed or should be displayed. Unfortunately, defining what is or isn’t an ad is not black and white. Below you will find the Widgetbox guidelines that that will help determine what is considered an ad and what is not.</p>
<p>The best practice would be to ask the Widgetbox support team for their opinion while you are building you widget, before you submit it to the gallery for items that you are not sure of. Our goal is to have a program that benefits all users of Widgetbox and we are happy to answer any questions you may have and we are also open to any input that you have which might make our program more successful for all.</p>
<h2>Guidelines</h2>
<p>Widgetbox buckets the Ad Compliant issues into three categories which are defined below:</p>
<h3>Attribution</h3>
<p>Widgetbox defines attribution as attributing credit to the author of the work. Attributions are not dynamic and do not change. Although the presentation and style may change, the attributed creator should not.  Attributions can be the individual or company that is promoting the widget or a third party that created the widget for an individual or company. Attributions that meet the Widgetbox guidelines will be considered Ad Compliant.</p>
<div class="help">
<strong>Examples:</strong><br />
                                    Powered by <a href="http://www.widgetbox.com/" target="_blank">Widgetbox</a><br />
                                    <a href="http://www.widgetbox.com/" target="_blank">Created by Widgetbox</a>
</div>
<h3>Promotion</h3>
<p>Widgetbox defines promotion as a general sponsorship of the widget by the widget creator or the individual or company that the widget  account is registered to. Promotions  are not considered advertisements and are considered Ad Compliant by Widgetbox.</p>
<h3>Ad</h3>
<p>Widgetbox defines ads as any promotion within the widget designed to increase consumption of products or services that are not produced by the makers of the content in the widget. Basically any third party ad such as Google Ad Sense, Mochi Media ad, or any overlay, pre roll, post roll, .jpeg, .gif, video or other format that is advertising third party products or services.</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.widgetbox.com/developing-widgets/including-ads/ad-compliant-guidelines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making Your Widget Ad Compliant</title>
		<link>http://docs.widgetbox.com/developing-widgets/including-ads/making-your-widget-ad-compliant/</link>
		<comments>http://docs.widgetbox.com/developing-widgets/including-ads/making-your-widget-ad-compliant/#comments</comments>
		<pubDate>Sat, 02 May 2009 18:29:46 +0000</pubDate>
		<dc:creator>Team Widgetbox</dc:creator>
				<category><![CDATA[Including Ads]]></category>

		<guid isPermaLink="false">http://docs.widgetbox.com/?p=587</guid>
		<description><![CDATA[Learn how to run your own ads in your developed widgets so they are ad compliant.]]></description>
			<content:encoded><![CDATA[<div id="sections">
<ul>
<li><a href="#intro">Introduction</a></li>
<li><a href="#html">JavaScript/HTML Widget</a></li>
<li><a href="#flash">Flash Widget</a></li>
<li><a href="#remote">Remote Widget</a></li>
<li><a href="#testing">Preview &amp; Testing</a></li>
</ul>
</div>
<p><a name="intro"></a></p>
<h2>Introduction</h2>
<p>If you are going to run your own ads in your widget and distribute it with Widgetbox you must make your widget ad compliant. We have agreements with different sites and users around advertising and we require widgets with ads to follow the same rules. Making your widget ad compliant is simple and will help us keep the Widgetbox experience more consistent.</p>
<p><a name="html"></a></p>
<h2>JavaScript/HTML Widget</h2>
<p>If you are making or made a hosted JavaScript/HTML widget, you only need to wrap your ad content between two new Widgetbox code snippets in the editor. The two new snippets are located in the “Insert Widget Setting” dropdown menu.</p>
<p><img class="alignnone size-full wp-image-593" title="Start Ad Code" src="http://docs.widgetbox.com/wp-content/uploads/2009/05/picture-2.png" alt="Start Ad Code" width="412" height="274" /></p>
<p>You place the ad content between the “start ad code” and “end ad code” snippets. The resulting code will look like this:</p>
<pre class="code">    ${wbx.startAdSnippet}
    //Your Ad Here
    ${wbx.endAdSnippet}</pre>
<div class="help">
<strong>Using Flash in a hosted JavaScript/HTML widget</strong><br />
If you are embedding Flash in your hosted JavaScript/HTML widget you need to be sure to set the &#8220;wmode&#8221; parameter to either &#8220;opaque&#8221; or &#8220;transparent&#8221;. For example:</p>
<pre class="code">&lt;param name="wmode" value="transparent" /&gt;</pre>
</div>
<h4>Here is a sample JavaScript/HTML widget…</h4>
<p>With Ads:<br />
<script type="text/javascript" src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js"></script><script>if (WIDGETBOX) WIDGETBOX.renderWidget('9a9f3082-eaff-4feb-b216-a9feea960b2e');</script><noscript>Get the <a href="http://www.widgetbox.com/widget/ad-compliant-jshtml-example">Ad Compliant JS/HTML Example</a> widget and many other <a href="http://www.widgetbox.com/">great free widgets</a> at <a href="http://www.widgetbox.com">Widgetbox</a>!</noscript></p>
<p>Without Ads:<br />
<script src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js" type="text/javascript"></script><script type="text/javascript"><!--
if (WIDGETBOX) WIDGETBOX.renderWidget('9a7d1b05-4366-415c-8b67-ec998962c17a');
// --></script><noscript>Get the &lt;a href=&#8221;http://www.widgetbox.com/widget/ad-compliant-jshtml-example&#8221; mce_href=&#8221;http://www.widgetbox.com/widget/ad-compliant-jshtml-example&#8221;&gt;Ad Compliant JS/HTML Example&lt;/a&gt; widget and many other &lt;a href=&#8221;http://www.widgetbox.com/&#8221; mce_href=&#8221;http://www.widgetbox.com/&#8221;&gt;great free widgets&lt;/a&gt; at &lt;a href=&#8221;http://www.widgetbox.com&#8221; mce_href=&#8221;http://www.widgetbox.com&#8221;&gt;Widgetbox&lt;/a&gt;!</noscript></p>
<p>This is the same widget running in two different environments, one with ads enabled and the other with ads disabled.</p>
<p><a name="flash"></a></p>
<h2>Flash Widget</h2>
<p>If you are making or made a Flash widget, the widget needs to check for the widget_isAdFriendly flash variable (FlashVar) parameter and only show ads when  widget_isAdFriendly is set to “true”.</p>
<h4>Here is some sample code…</h4>
<p>ActionScript 2:</p>
<pre class="code">    var showAds = _root.widget_isAdFriendly;
    if (showAds == "true")
    {
        //load and show an ad
    }
    else
    {
        //don't load and show an ad
    }</pre>
<p>ActionScript 3:</p>
<pre class="code">    *be sure to import LoaderInfo (import flash.display.LoaderInfo;)

    try
    {
        var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
        var widgetAdFriendly = String(paramObj["widget_isAdFriendly"]);

        if (widgetAdFriendly == "true")
        {
            //load and show an ad
        }
        else
        {
            //don't load and show an ad
        }
    }
    catch (err:Error)
    {
        //Something went wrong getting LoaderInfo
        trace (err);
    }</pre>
<h4>Here is a sample Flash widget…</h4>
<p>With Ads:<br />
<script type="text/javascript" src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js"></script><script>if (WIDGETBOX) WIDGETBOX.renderWidget('7ee63620-b49b-474a-b300-e5eac2fce53e');</script><noscript>Get the <a href="http://www.widgetbox.com/widget/ad-compliant-flash-example-widgetbox">Ad Compliant Flash Example</a> widget and many other <a href="http://www.widgetbox.com/">great free widgets</a> at <a href="http://www.widgetbox.com">Widgetbox</a>!</noscript></p>
<p>Without Ads:<br />
<script src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js" type="text/javascript"></script><script type="text/javascript"><!--
if (WIDGETBOX) WIDGETBOX.renderWidget('2b68afbb-4238-4528-b5bd-9edde3372fba');
// --></script><noscript>Get the &lt;a href=&#8221;http://www.widgetbox.com/widget/ad-compliant-flash-example-widgetbox&#8221; mce_href=&#8221;http://www.widgetbox.com/widget/ad-compliant-flash-example-widgetbox&#8221;&gt;Ad Compliant Flash Example&lt;/a&gt; widget and many other &lt;a href=&#8221;http://www.widgetbox.com/&#8221; mce_href=&#8221;http://www.widgetbox.com/&#8221;&gt;great free widgets&lt;/a&gt; at &lt;a href=&#8221;http://www.widgetbox.com&#8221; mce_href=&#8221;http://www.widgetbox.com&#8221;&gt;Widgetbox&lt;/a&gt;!</noscript></p>
<p>This is the same widget running in two different environments, one with ads enabled and the other with ads disabled.</p>
<p><a name="remote"></a></p>
<h2>Remote Widget</h2>
<p>If are you making or made a remote widget, the widget needs to check for widget.isAdFriendly on the query string and make sure widget.isAdFriendly is set to “true”. This will be different depending on what server-side scripting language you are using. You can also use JavaScript to parse the URL parameters if the widget is HTML.</p>
<h4>Here is some sample code for a Remote HTML Widget using JavaScript</h4>
<pre class="code">
*if you copy this example, be sure to place the javascript after the ad div and before the closing body tag

&lt;html&gt;
&lt;body&gt;
&lt;div id="myWidgetAds" style="display:none;"&gt;
&lt;!-- AD GOES BETWEEN THIS --&gt;
This is my ad
&lt;!-- AND THIS --&gt;
&lt;/div&gt;

&lt;script type="text/javascript"&gt;
function getQueryVar(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&#038;");

  for (var i = 0; i &lt; vars.length; i++) {
     var pair = vars[i].split("=");
     if (pair[0] == variable) {
        return pair[1];
     }
  }

  return null;
}

function controlAds(adElementId) {
  if (getQueryVar("widget.isAdFriendly") != "true") {
     var adElement = document.getElementById(adElementId);
     adElement.style.display = "none";
  } else {
     var adElement = document.getElementById(adElementId);
     adElement.style.display = "";
  }
}

controlAds("myWidgetAds");
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<h4>Here is a sample remote widget…</h4>
<p>With Ads:<br />
<script type="text/javascript" src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js"></script><script>if (WIDGETBOX) WIDGETBOX.renderWidget('53fcdd52-b1aa-4dc0-a6d4-7d7cd564aa48');</script><noscript>Get the <a href="http://www.widgetbox.com/widget/ad-compliant-remote-example">Ad Compliant Remote Example</a> widget and many other <a href="http://www.widgetbox.com/">great free widgets</a> at <a href="http://www.widgetbox.com">Widgetbox</a>!</noscript></p>
<p>Without Ads:<br />
<script src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js" type="text/javascript"></script><script type="text/javascript"><!--
if (WIDGETBOX) WIDGETBOX.renderWidget('bfecb740-0f0a-4f0d-8e3c-94aa5ea11863');
// --></script><noscript>Get the &lt;a href=&#8221;http://www.widgetbox.com/widget/ad-compliant-remote-example&#8221; mce_href=&#8221;http://www.widgetbox.com/widget/ad-compliant-remote-example&#8221;&gt;Ad Compliant Remote Example&lt;/a&gt; widget and many other &lt;a href=&#8221;http://www.widgetbox.com/&#8221; mce_href=&#8221;http://www.widgetbox.com/&#8221;&gt;great free widgets&lt;/a&gt; at &lt;a href=&#8221;http://www.widgetbox.com&#8221; mce_href=&#8221;http://www.widgetbox.com&#8221;&gt;Widgetbox&lt;/a&gt;!</noscript></p>
<p>This is the same widget running in two different environments, one with ads enabled and the other with ads disabled.</p>
<p><a name="testing"></a> </p>
<h2>Preview &amp; Testing</h2>
<p>As you create and edit your widget you can test your ad compliance there is a toggle underneath the configuration setting in the widget studio editor.</p>
<p><img class="alignnone size-full wp-image-594" title="Previewing Ads" src="http://docs.widgetbox.com/wp-content/uploads/2009/05/picture-3.png" alt="Previewing Ads" width="415" height="59" /></p>
]]></content:encoded>
			<wfw:commentRss>http://docs.widgetbox.com/developing-widgets/including-ads/making-your-widget-ad-compliant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
