wpCJ uses Zones and Templates. Some people get confused about them so we are going to try clarify both concepts.
A zone is a sort of “hot-spot” in your blog where you are going to put advertising on. It could be located in the header of your blog or the sidebars and even inside any posts or page.
A zone has a list of advertising units associated with it. These units could be Products or Links but you can never have a combination of both. It also has a template associated with it.
By definition, a zone should’t define the way HOW those advertising units will look, but it certainly does define WHERE they are going to be and WHAT they are going to have (however, you can allways do so by adding a small code before and after the whole template that is going to be shown ).
To define HOW those advertising units will look, wpCJ uses templates.
A template is a series of HTML/CSS tags that define its layout. Basically, it has two different parts:
A basic example of a template that shows 4 125×125 ad units, could be as follows:
Canvas Code:
<div style=”width:300px;”>[AD_CANVAS:4]</div>
Ad Unit Code:
<div style=”width:130px; padding: 5px;”>[AD_JSCODE]</div>
That’s it. wpCJ will search for 4 advertising units associated with the Zone in which this template is used, and it will use the Javascript code provided by Commission Junction to show the units to the final user (the visitor).
Leave a Reply